adb shell content query --uri content://settings/secure --projection value --where "name=\'android_id\'"
adb shell settings get secure android_id
查詢android id的兩種方式,第二個改成put可以設置android id
adb shell cat /sys/class/android_usb/android0/iSerial
adb shell getprop ro.serialno
手機序列號
adb shell
su service call iphonesubinfo 1
查看imei
adb shell cat /sys/class/net/wlan0/address
mac地址
adb shell pm clear <packagename>
清理應用數據
adb shell dumpsys package <packagename>
查看應用詳細信息
adb shell am start -n com.tencent.mm/.ui.LauncherUI
啟動應用,最后一個參數是packageName/activityName 例子里是微信
adb shell am broadcast -a android.intent.action.BOOT_COMPLETED
發送廣播
adb shell am force-stop com.qihoo360.mobilesafe
關閉應用
adb shell input tap 50 250
adb shell input keyevent 26
模擬點擊,模擬按下電源鍵
adb shell dmesg
內核日志
adb shell getprop ro.product.model
查看SystemProp
只記錄了一些自己常用的,更多請參考
https://blog.csdn.net/zhichaosong/article/details/88795440