Commit 03cebe9
committed
Try to preserve the app cache on uninstall.
Context #9259
Due to various reasons `adb` may not be able to preserve the app cache
on uninstall. To work around this we have to use the `-k` flag to
uninstall the app when using the `cmd package uninstall` call.
This will keep the app data and cache on the device.
However this might also fail. So in that case we need to completely
uninstall the app and then install it again.1 parent f2eea99 commit 03cebe9
File tree
1 file changed
+15
-1
lines changed- src/Xamarin.Android.Build.Tasks
1 file changed
+15
-1
lines changedLines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2988 | 2988 | | |
2989 | 2989 | | |
2990 | 2990 | | |
| 2991 | + | |
2991 | 2992 | | |
2992 | 2993 | | |
2993 | 2994 | | |
| |||
2999 | 3000 | | |
3000 | 3001 | | |
3001 | 3002 | | |
3002 | | - | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
3003 | 3017 | | |
3004 | 3018 | | |
3005 | 3019 | | |
| |||
0 commit comments