链接网易mumu浏览器
adb connect 127.0.0.1:7555
查看在安卓模拟器安装的第三方包进入cmd输入:
adb shell pm list packages -3
package:com.UCMobile.x86
package:com.tencent.mtt.x86
获取安装包的Activity名称
adb shell "dumpsys window |grep mCurrentFocus"
mCurrentFocus=Window{218143fc u0 com.mumu.launcher/com.mumu.launcher.Launcher}
打开qq浏览器
adb shell am start -n {包(package)名}/{包名}.{活动(activity)名称}
adb shell am start -n com.tencent.mtt.x86/com.tencent.mtt.x86.MainActivity
Starting: Intent { cmp=com.tencent.mtt.x86/.MainActivity }
打开qq浏览器:
adb shell am force-stop com.tencent.mtt.x86
-强制退出程序。
adb shell pm clear com.tencent.mtt.x86
-清除缓存退出
关闭UC浏览器:
adb shell am force-stop com.UCMobile.x86
-强制退出程序。
adb shell pm clear com.UCMobile.x86
-清除缓存退出
@echo off
echo 点击网页
set time = 20
echo %time%
for /l %%i in (1,1,10) do (
echo %%i
adb shell input tap 1045.0 150.0
ping 127.0.0.1 -n 2
adb shell input tap 921 570
ping 127.0.0.1 -n 2
adb shell input tap 648 320
)
pause
RTBASIA_2 14:08:11
[文件]
RTBASIA_2 14:19:50
@echo off
rasdial "VPN-aliyunbj_c01"
rem 外网IP
wget -O temp "http://ip.chinaz.com/getip.aspx"
cls
for /f "tokens=2 delims='" %%i in (temp) do set result=%%i
del temp
echo 外网IP是: %result%
adb connect 127.0.0.1:7555
echo 点击网页
set "aqq=http://www.caacbook.com/?qqbrowser_office_"
set "auc=http://www.caacbook.com/?ucbrowser_office_"
set "bqq=%aqq%%result%"
set "buc=%auc%%result%"
echo %b%
ping 127.0.0.1 -n 4 >nul
for /l %%i in (1,1,1000) do (
echo %%i
adb shell am start -n com.tencent.mtt.x86/com.tencent.mtt.x86.MainActivity
ping 127.0.0.1 -n 4 >nul
adb shell input tap 1024.0 76.0
ping 127.0.0.1 -n 4 >nul
adb shell input tap 400.0 120.0
ping 127.0.0.1 -n 2 >nul
adb shell input text %bqq%
ping 127.0.0.1 -n 2 >nul
adb shell input tap 1040 120
ping 127.0.0.1 -n 16 >nul
adb shell am force-stop com.tencent.mtt.x86
adb shell input keyevent 3
ping 127.0.0.1 -n 5 >nul
adb shell am start -n com.UCMobile.x86/com.uc.browser.InnerUCMobile
ping 127.0.0.1 -n 4 >nul
adb shell input tap 1026.0 82.0
ping 127.0.0.1 -n 1 >nul
adb shell input tap 437.0 1067.0
ping 127.0.0.1 -n 1 >nul
adb shell input tap 300.0 220.0
ping 127.0.0.1 -n 2 >nul
adb shell input text %buc%
ping 127.0.0.1 -n 2 >nul
adb shell input tap 1020 80
ping 127.0.0.1 -n 19 >nul
adb shell pm clear com.UCMobile.x86
ping 127.0.0.1 -n 5 >nul
)
rasdial "VPN-aliyunbj_c01" /disconnect