ADB commands

Nothing really original here, just a reference for myself.

List attached devices

[ ~]$ adb devices -l
List of devices attached 
42f75e0a6f40bfbb       device usb:3-1.4 product:m3xx model:GT_I9305 device:m3

[ ~]$

Show device information

[ ~]$ adb pull /system/build.prop
96 KB/s (4476 bytes in 0.045s)
[ ~]$ 
[ ~]$ cat build.prop | grep ro.product.device
ro.product.device=m3
# ro.build.product is obsolete; use ro.product.device
[ ~]$

List installed third party packages (-3)

[ ~]$ adb shell pm list packages -3
package:de.blau.android
package:org.connectbot
package:org.geometerplus.zlibrary.ui.android
package:tv.condor.timecode
edited....

Get a screenshot and pull it to host computer

[ ~]$ adb shell screencap /sdcard/screen-18-10-16.png
[ ~]$ 
[ ~]$ adb pull /sdcard/screen-18-10-16.png
145 KB/s (6345 bytes in 0.042s)
[ ~]$
 
rbandroid/adbcommands.txt · Last modified: 2016/10/18 16:40 by andrew