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.

  1. move system apk /system/priv-app/ /sdcard/

  2. adb uninstall

  3. reboot

  4. move system app /sdcard/ /system/priv-app/

  5. 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

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -