I'm getting some weird behavior lately. It seems my share prefs are not getting deleted upon uninstall. When I reinstall my app after an uninstall, the shared prefs file still has the values from the previous install. This is very weird, I know. The only thing that blows away my shared prefs is using "Clear Data" in the settings app.
I've tried uninstalled both ways: by clicking uninstall in Settings and also adb uninstall
.
Steps:
- Uninstall my app from the Settings app.
- run
adb uninstall <package>
for good measure. - Install app again by launching it in debug mode.
- Hit initial breakpoint: shared prefs are still there.
I made sure my app isn't setting setting the prefs before it hits the breakpoint.
Note: My debug version is signed so I can test upgrades from the Google Play release version. However this problem happens on clean installs.
I'm running Oreo (8.1.0).
Has anyone else seen this very strange behavior?
Thanks in advance...