Skip to content

Instantly share code, notes, and snippets.

@jmsaavedra
Last active March 19, 2025 14:57
Show Gist options
  • Save jmsaavedra/e485c7dd6253c235e32ec2a9a1bf6034 to your computer and use it in GitHub Desktop.
Save jmsaavedra/e485c7dd6253c235e32ec2a9a1bf6034 to your computer and use it in GitHub Desktop.
ADB commands

Useful ADB Commands

Connecting to Device:

  • adb start-server
  • adb connect <ip-address>:4321 or adb connect <ip-address>:5555
  • adb devices

Resolution Settings:

  • adb shell wm size
  • adb shell wm size 1920x1920
  • adb shell am display-size 1920x1920
  • adb shell wm size reset
  • adb shell wm density 420

Install APKs

  • adb install <file_path_to_the_apk>

APKs

@sembo
Copy link

sembo commented Mar 19, 2025

For Android 4.3 above, change screen resolution command will be
$ adb shell wm size 1280x800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment