How to get / install back uninstalled Apps (APKs) with ADB.

27th January 2019 04:55 PM 25 Thanks
Vordx Senior Member
A lot of people searched for a way to uninstall bloat or APKs using ADB because a lot of OEMs don't allow uninstalling many of preinstalled apps.

Tested on Pie and Oreo.


BUT most of the articles if not all of them ( couldn't find any article saying otherwise ) say that after using the command "adb shell pm uninstall -k --user 0 <name of package here>" to uninstall an app, you have to factory reset your phone to get these packages back which Is NOT TRUE.


you can simply use "adb shell cmd package install-existing <package name>" in ADB and you'll get the package back .

Examples:-
adb shell pm uninstall -k --user 0 com.android.something
adb shell cmd package install-existing com.android.something



Tested and working on Android pie and Oreo on Samsung devices.

Seems like some people can't get it to work with no helpful information so we can't help much.
28th January 2019 12:34 PM 2 Thanks
Vordx Senior Member
24th February 2019 07:17 PM 0 Thanks
JaviLerma Senior Member
Hi, doesn't works

Code:
/system/bin/sh: cmd: not found
24th February 2019 08:55 PM 0 Thanks
alexander_sirakov Member
It does work. Thank you!
8th April 2019 06:35 AM 0 Thanks
jazzh Senior Member
Hi! Does this work on huawei p smart 2019 with android pie? Will ota work after that?
8th April 2019 07:20 PM 1 Thanks
Vordx Senior Member
Quote:
Originally Posted by jazzh

Hi! Does this work on huawei p smart 2019 with android pie? Will ota work after that?

Has nothing to do with OTA. That code only installs apk.

Quote:
Originally Posted by JaviLerma

Hi, doesn't works

I need a screenshot or I can't be sure what you did wrong.
8th April 2019 08:20 PM 0 Thanks
jazzh Senior Member
Quote:
Originally Posted by Vordx

Has nothing to do with OTA. That code only installs apk.

Gr8.
12th April 2019 08:49 PM 0 Thanks
jazzh Senior Member
I successfully applied this in p smart 2019.
14th April 2019 04:00 AM 1 Thanks
barjani Junior Member
it doesn't work
Attachments:
14th April 2019 09:23 AM 0 Thanks
jazzh Senior Member
Quote:
Originally Posted by barjani

it doesn't work

You typed install, not uninstall
close
Advanced Search
close