记录一些比较长的adb命令,复制用

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

 

posted @ 2019-05-14 09:56  带狗狗带  Views(1253)  Comments(0Edit  收藏  举报