Removing aliendalvik deletes all Android app-data
My Android apps weren't working anymore (due to a different problem) and I uninstalled and reinstalled Alien Dalvik, because that's what you do when you think, the install may be corrupted. It didn't help but now that I fixed the real problem all app data is gone. Explain that to my son who spent hours building digital railways there....
This is the culprit from rpm -q --scripts aliendalvik
:
#Remove all Alien and Android apps data - Keep only apk files
getent group alien >/dev/null && groupdel alien
for i in $(echo data dalvik-cache app-private misc property media sdcard)
#for i in $(echo data app app-private dalvik-cache local media misc property sdcard system user)
do
rm -rf /data/$i
done
This is terrible.
Related to https://together.jolla.com/question/2232/android-app-settings-lost-when-removing-alien-dalvik/
I think that's how it should be. I hoped it would work this way, but wasn't sure, so thanks for confirming it!
nodevel ( 2015-09-16 16:54:11 +0200 )edit@nodevel yes, but this case proofes again that it would be nice to be warned before the remorse timer kicks into action: https://together.jolla.com/question/43280/feature-request-alien-dalvik-deinstall-warning-in-store-all-android-userdata-will-be-lost-unless-backed-up/
mosen ( 2015-09-17 01:08:31 +0200 )editI don't understand why this is intended: Would you also expect uninstalling your IMAP server RPM to kill your email database? Should uninstalling mysql remove all databases too?
Rather, I think, purging Android app data should be an explicit separate step.
epsilonijk ( 2015-09-17 01:15:55 +0200 )editAnd also, if the app data is purged, why not just remove all those apks as well? They are really useless without the runtime.
epsilonijk ( 2015-09-17 01:17:07 +0200 )edit