Skip to content

Instantly share code, notes, and snippets.

@Kishanjvaghela
Last active May 8, 2022 06:57
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 Kishanjvaghela/ad13f05df7c8cbeeeffd66db293954c0 to your computer and use it in GitHub Desktop.
Save Kishanjvaghela/ad13f05df7c8cbeeeffd66db293954c0 to your computer and use it in GitHub Desktop.
ADB command
adb shell pm disable-user --user 0 <app.name.here>
# https://forum.xda-developers.com/t/pm-uninstall-failure-delete_failed_internal_error.4344193/?msclkid=5488eb75ce9b11eca254c0b58403ab10
first I find my platform-tools than I was using zshrc instead of bash_profile so I run this command first
echo 'export PATH=${PATH}:$HOME/Library/Android/sdk/platform-tools/' >> ~/.zshrc
next refresh terminal
source ~/.zshrc
Check if it worked
adb devices
result of this command must be something similar to this if so then it worked.
List of devices attached
emulator-5554 device
# https://stackoverflow.com/a/64889091/3758898
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment