CommonInstaller: when migrating from Play Store to Fake Store or vice versa and if it's a new installation of NanoDroid, also get rid of all app data related to the removed App Store

merge-requests/23/head
Christopher Roy Bratusek 6 years ago
parent 0b1954a94f
commit 029d51d5c0

@ -15,6 +15,7 @@
* CommonInstaller
* code simplifications
* don't set progressbar when flashing from Magisk Manager
* when migrating from Play Store to Fake Store or vice versa and if it's a new installation of NanoDroid, also get rid of all app data related to the removed App Store
* minor string change
### Updates

@ -849,6 +849,13 @@ install_store () {
for app in ${NANODROID_REM_STORE}; do
${NANODROID_BINDIR}/nanodroid-overlay --add ${app}
done
if [ "${NANODROID_UPGRADE}" -eq 0 ]; then
rm -rf /data/data/com.android.vending
rm -rf /data/user/*/com.android.vending
rm -rf /data/user_de/*/com.android.vending
rm -rf /data/app/com.android.vending-*
fi
fi
}

Loading…
Cancel
Save