- 출처: http://stackoverflow.com/questions/41808957/sharedpreferences-not-reset-on-reinstall -
In Android Marshmallow Google introduced the "Auto Backup" feature which is turned on by default if your targetSdkVersion is >=23.
This will back up your database and SharedPreferences by default and restore it when you re-install the application. To turn this feature off you have to add android:allowBackup="false"
to your AndroidManifest.xml
.
그러나 이렇게 allowBackup="false" 로 할 경우, 결과적으로 앱 업데이트시 사용자가 수정한 데이터가 리셋되므로 거의 안쓸 것 같긴 하다.