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

adb shell content query --uri content://settings/secure --projection value --where "name=\'android_id\'"
adb shell settings get secure android_id 73f67b4118c27778

查询android id的两种方式,第二个改成put可以设置android id

adb shell
su
service call iphonesubinfo 1

查看imei

adb shell pm clear <packagename>

清理应用数据

adb shell dumpsys package <packagename>

查看应用详细信息

adb shell am start -n com.tencent.mm/.ui.LauncherUI

启动应用,例子里是微信

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

猜你喜欢

转载自www.cnblogs.com/xirtam/p/10860596.html