Skip to content

Instantly share code, notes, and snippets.

@moehandi
Created October 16, 2018 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moehandi/cff8a397beb954fe53c87155b23dc78c to your computer and use it in GitHub Desktop.
Save moehandi/cff8a397beb954fe53c87155b23dc78c to your computer and use it in GitHub Desktop.
android-adb_list_and_remove_app
command:
pm list packages -f
pm list packages -f | grep "opera" // for specific apps name
pm uninstall -k --user 0 package_name
example:
1. first list package to uninstall, and example line apps
shell@grandpplte:/ $ pm list packages -f | grep "line"
result:
package:/data/app/jp.naver.line.android-1/base.apk=jp.naver.line.android
2. uninstall the package
shell@grandpplte:/ $ pm uninstall -k --user 0 jp.naver.line.android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment