Skip to content

Instantly share code, notes, and snippets.

@lamegaton
Last active August 4, 2020 17:54
Show Gist options
  • Save lamegaton/e447bc55949a106d90f37f50dc661051 to your computer and use it in GitHub Desktop.
Save lamegaton/e447bc55949a106d90f37f50dc661051 to your computer and use it in GitHub Desktop.
All useful adb commands

Common adb commands

Check cpu info

adb shell cat /proc/cpuinfo

Run an app via adb

Open cmd:

adb root
adb shell

Find that app (in Android linux terminal):

Pm is package manager

pm -l | grep "app that you're looking for"

PS is process status, it is similar to task manager in window:

ps -A | grep "something"

Another way to find an app is to look at logcat To clear logcat

logcat -c
https://developer.android.com/studio/command-line/logcat logcat

Personally, I prefer the logcat method although it takes more time.

Run an app:

AM is Activity manager

am start package/.something

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