Issue
I am using the following command to uninstall application using adb, but keeping the sharedpreference data. So that after reinstallation of application i get the data back.
adb uninstall -k [package.name]
This works for me upto android 9.0. For the android 10 devices the sharedpreference data gets deleted.After reinstallation the sharedpreference data are not shown. Is there any solution for that?
Solution
add this code to AndroidMenifest.xml
file
<application
android:allowBackup="false"
>
</application>
Answered By - Praful Patel
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.