按鍵精靈adb命令

http://www.360doc.com/content/22/0913/15/5983216_1047735349.shtml


shanhai.Execute ("setprop call.keyboard back") //keypress

shanhai.Execute ("setprop call.reboot com.tencent.mm")? //重啟模擬器,啟動指定包名

shanhai.Execute ("setprop call.input 文字") //輸入文字,支持中文

shanhai.Execute ("setprop call.network offline")? //斷網(wǎng)? 按鍵助手會斷開

shanhai.Execute ("setprop call.network connect")? //聯(lián)網(wǎng)

shanhai.Execute ("setprop call.shake null")? //搖一搖 測試微信可用

shanhai.Execute ("setprop call.locate 117,29") //修改定位

shanhai.Execute ("am start -n com.tencent.mm/.ui.LauncherUI") //打開包名組件

shanhai.Execute ("am force-stop com.tencent.mm") //關(guān)閉軟件 包名

shanhai.Execute ("input text 123") //輸入文字 不支持中文

shanhai.Execute ("input tap 119 203") //點擊坐標(biāo)

shanhai.Execute ("screencap -p /sdcard/pictures/screencap.png") //截屏

shanhai.Execute ("setprop phone.imei 865166023949731") //修改imei測試無效果,只針對getprop有效

TracePrint shanhai.Execute ("getprop phone.imei") //獲取imei

shanhai.Execute ("setprop phone.imsi 460000000000000") //imsi 有效

TracePrint shanhai.Execute ("getprop phone.imsi")? //獲取imsi

shanhai.Execute ("setprop phone.simserial 89860000000000000000") //修改sim卡id號

TracePrint shanhai.Execute ("getprop phone.simserial")? //獲取手機(jī)SIM卡id

shanhai.Execute ("setprop phone.linenum 13800000000") //設(shè)置手機(jī)號(重啟后自動回復(fù)原來的)

traceprint shanhai.Execute ("getprop phone.linenum")? //獲取手機(jī)號

shanhai.Execute ("setprop ro.product.manufacturer iPhone") //設(shè)置手機(jī)品牌 (重啟后自動回復(fù)原來的)

TracePrint shanhai.Execute ("getprop ro.product.manufacturer") //獲取手機(jī)品牌

shanhai.Execute ("setprop ro.product.model iPhone12") //設(shè)置手機(jī)型號 (重啟后自動回復(fù)原來的)

TracePrint shanhai.Execute ("getprop ro.product.model") //獲取手機(jī)型號

shanhai.Execute ("pm install /sdcard/pictures/com.chiachiplee_1.apk") //安裝app install 安裝包路徑

shanhai.Execute ("pm uninstall com.chiachiplee") //卸載APP uninstall 包名

shanhai.Execute ("pm clear com.chiachiplee")? //清除指定app 數(shù)據(jù)

TracePrint shanhai.Execute ("pm path com.tencent.mm") //獲取包名對應(yīng)的APK路徑

TracePrint shanhai.Execute ("pm list packages") //獲取所有包名

TracePrint shanhai.Execute ("pm list packages -f") //獲取模擬器所有包名并且包括APK路徑

TracePrint shanhai.Execute ("getprop phone.androidid") //獲取安卓id

TracePrint shanhai.Execute ("getprop ro.build.date.utc") //獲取時間戳

TracePrint shanhai.Execute ("getprop ro.build.date") //獲取日期

TracePrint shanhai.Execute ("getprop keyguard.no_require_sim") //獲取sim卡1的狀態(tài)

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 0、前言 在正式開始之前,按照套路,先得介紹點adb的基礎(chǔ)知識。學(xué)會了adb的使用,下面的大部分內(nèi)容其實基本不用看...
    netppp閱讀 3,757評論 0 0
  • 不同操作系統(tǒng)關(guān)鍵字: 版權(quán)聲明:本文為CSDN博主「熱愛學(xué)習(xí)的吉吉」的原創(chuàng)文章,原文鏈接:https://blog...
    呵呵豆閱讀 2,917評論 0 0
  • 注釋:()里面包名在命令行輸入命令時候只用輸出包名不用寫 () 有線連接:插上數(shù)據(jù)線,手機(jī)打開調(diào)試模式 輸入:ad...
    游蕩魂閱讀 6,148評論 0 2
  • //啟動與停止adb server命令adb start-serveradb kill-server //關(guān)機(jī)命令...
    肖塔塔閱讀 1,300評論 0 0
  • 1. 如何知道當(dāng)前Activity的包名: 運行命令:adb shell "dumpsys activity | ...
    sai_xu閱讀 768評論 0 0

友情鏈接更多精彩內(nèi)容