記錄一些比較長的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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM