ADB命令
adb shell dumpsys activity top # 获取指定应用的包名和Activity名称
adb logcat| findstr START 出现相应的包名和类名
adb shell am start -n package/activity 命令启动APP,冷启动
app adb shell am force-stop package 命令关闭APP
adb shell pm path package 通过包名获取apk在手机中的存储路径
adb pull 路径 导出手机端文件到电脑
adb push 路径A 路径B 电脑端文件导入到手机端
adb shell input keyevent * 按下手机端某案件
adb shell input text "ANDROID"
手机端自动访问网址代码:
@echo off :loop adb shell am start -n com.android.browser/.BrowserActivity choice /t 1 /d y /n >nul adb shell input tap 532 155 choice /t 1 /d y /n >nul adb shell input text nanxuanlihe.cn choice /t 1 /d y /n >nul adb shell input tap 973 160 choice /t 5 /d y /n >nul adb shell am force-stop com.android.browser choice /t 1 /d y /n >nul goto loop

浙公网安备 33010602011771号