ADB Cheat Sheet

Get Device Info

The device command gives you info about connected well devices

$adb devices -l
List of devices attached
LGD8559ea73a60 device product:g3_global_com model:LG_D855 device:g3 transport_id:2

Shell

$ adb shell

Services

shell@g3:/ $ service list
Found 132 services:
0 AtCmdFwd: [com.qualcomm.atfwd.IAtCmdFwd]
...

 

Device Properties

shell@g3:/ $ getprop
[DEVICE_PROVISIONED]: [1]
... 

Get CPU information

shell@g3:/ $ cat /proc/cpuinfo
Processor : ARMv7 Processor rev 1 (v7l)
processor : 0
BogoMIPS : 38.40
processor : 1
BogoMIPS : 38.40

processor : 2
BogoMIPS : 38.40

processor : 3
BogoMIPS : 38.40

Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x51
CPU architecture: 7
CPU variant : 0x2
CPU part : 0x06f
CPU revision : 1

Hardware : Qualcomm MSM8974PRO-AC
Revision : 000a
Serial : 0000000000000000

Get Camera Info

shell@g3:/ $ dumpsys media.camera
Camera module HAL API version: 0x100
Camera module API version: 0x100
Camera module name: QCamera Module
Camera module author: Qualcomm Innovation Center Inc
Number of camera devices: 2

Screen Resolution

shell@g3:/ $ wm size
Physical size: 1440x2560

Memory Info

shell@g3:/ $ cat /proc/meminfo
MemTotal: 1885184 kB
MemFree: 118380 kB