Skip to content

Instantly share code, notes, and snippets.

@ThePredators
Last active February 7, 2023 01:59
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 ThePredators/be2b1b5796720e79657d9e0fe8d60d21 to your computer and use it in GitHub Desktop.
Save ThePredators/be2b1b5796720e79657d9e0fe8d60d21 to your computer and use it in GitHub Desktop.

Android (CheatSheet)

Developer Option

Huawei

Xiaomi

Settings -> About Phone -> All Specs -> MIUI version : (tap repeteadly to enable)

USB Debugging

Xiaomi

Settings > Additional Settings > Developer Options : enable (usb debugging & usb debuging security setting)

ADB

Reboot

adb shell reboot

Shutdown

adb shell reboot -p

List packages

pm list packages

Delete : googleassistant

adb shell pm uninstall -k --user 0 com.google.android.apps.googleassistant

Delete : Youtube

adb shell pm uninstall -k --user 0 com.google.android.youtube

Help :

list packages [-f] [-d] [-e] [-s] [-3] [-i] [-l] [-u] [-U] [--uid UID] [--user USER_ID] [FILTER]

Prints all packages; optionally only those whose name contains
the text in FILTER.
Options:
  -f: see their associated file
  -d: filter to only show disabled packages
  -e: filter to only show enabled packages
  -s: filter to only show system packages
  -3: filter to only show third party packages
  -i: see the installer for the packages
  -l: ignored (used for compatibility with older releases)
  -U: also show the package UID
  -u: also include uninstalled packages
  --uid UID: filter to only show packages with the given UID
  --user USER_ID: only list packages belonging to the given user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment