apk - How to uninstall updates of an android system app through adb? -
so there's system app , i've sideloaded apk on top of it. possible through adb uninstall sideloaded apk , have system app running?
i tried 2 methods failed. using 4.4
a. removed sideloaded app /data/app folder , rebooted. system app stayed in comatose state.
b. did adb uninstall (success) , rebooted. same result.
this convoluted approach did it.
move system apk /system/priv-app/ /sdcard/
adb uninstall
reboot
move system app /sdcard/ /system/priv-app/
reboot
my question is, there straightforward approach doing through adb?
since installed same package (app) on top, adb package manager removed old system app (same package name).
you can see list of current apps/pacakges adb shell pm list packages
if have old .apk , can reinstall adb install -r <apk>
again. http://developer.android.com/tools/help/adb.html
if see failed version downgrade, try -d
adb install -r -d <apk>
Comments
Post a Comment