Skip to content

Instantly share code, notes, and snippets.

@UltraSabreman
Last active October 25, 2024 00:11
Show Gist options
  • Save UltraSabreman/cc649486e456f8bcdaaf34d6f80307ad to your computer and use it in GitHub Desktop.
Save UltraSabreman/cc649486e456f8bcdaaf34d6f80307ad to your computer and use it in GitHub Desktop.
Use this in combination with ADB to remove any and all apps from your device:
List packages:
adb shell pm list packages [-d|e|s|3|u] > packs.txt
The flags can be used to filter as follows:
-d: Disabled, -e: Enabled, -s: System, -3: 3d Party, -u: Uninstaled.
This will dump all currently installed packaged (including factory default system ones) into a text file called "packs.txt"
If the package you are looking for is named strangely, use the play store on your PC as it lists the package name in the URL.
Uninstall package:
adb shell pm uninstall -k --user 0 com.package.name.here
This will uninstall the package called "com.package.name.here" from the current user. This means everything can still
be recovered by a factory reset in case you mess up badly.
Reinstall package (that was removed with the above method):
adb shell pm install-existing com.package.name.here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment