When you install a new version of the same app (with the same application ID), Android will preserve all your app data by default as long as the signing key is the same. This includes both your Room database and Preferences.