Updating Android Apps do not clear the data. This is a general rule. However, if you have updated the Database Version or modified the tables, you need to implement Data Migration for it
Data in the SharedPreferences is not impacted when updating the app.
Also, as @tyg mentioned above, Your applications, package name, signed key should be the same.
I am assuming you are aware of increaing the version code and publishing on Google Play Store (if you are using it)