adb得到系统属性
getprop
adb抓完全Log
adb logcat -b main -b system -b radio -b events -v time > /tmp/all.log
adb抓Kernel Log
adb shell cat /proc/kmsg > /tmp/kernel.log
pm相关
清除某包的数据:
adb shell pm clear pkgName
列出所有安装的包
adb shell pm list packages
列出所有安装包的apk路径
adb shell pm list packages -f
列出所有features
adb shell pm list features
列出所有服务
adb shell service list
am相关
发送广播
adb shell am broadcast -a com.Android.test
根据包名类名启动Activity
adb shell am start -n pkgName/className
杀死包名对应进程
adb shell am force-stop com.android.launcher3
根据包名卸载应用
adb uninstall com.android.launcher3
截屏
adb shell /system/bin/screencap -p /sdcard/screenshot.png
6.截屏
adb shell /system/bin/screencap -p /sdcard/screenshot.png
6.截屏
adb shell /system/bin/screencap -p /sdcard/screenshot.png
6.截屏
adb shell /system/bin/screencap -p /sdcard/screenshot.png
6.截屏
adb shell /system/bin/screencap -p /sdcard/screenshot.png
6.截屏
adb shell /system/bin/screencap -p /sdcard/screenshot.png
6.截屏
adb shell /system/bin/screencap -p /sdcard/screenshot.png
命令查看系统Service
查看帮助信息
>adb shell service
Usage: service [-h|-?]
service list
service check SERVICE
service call SERVICE CODE [i32 INT | s16 STR] ...
Options:
i32: Write the integer INT into the send parcel.
s16: Write the UTF-16 string STR into the send parcel.
查看Service列表
>adb shell service list
Found 1 services:
0 phone: [com.android.internal.telephony.ITelephony]
检查Service是否存在
>adb shell service check phone
Service phone: found
使用Service
>adb shell service call phone 2 s16 "10086"