# !!!括号前面至少要有一个空格
@echo off
# 解决中文乱码
chcp 65001
:init
set /p option='选择操作项(1.安装 2.启动 3.回退 4.Home 5.Kill 6.设置 7.退出):'
if %option% == 1 (
goto flag_install
)else if %option% == 2 (
goto launch
)else if %option% == 3 (
adb shell input keyevent 4
goto init
)else if %option% == 4 (
adb shell input keyevent 3
goto init
)else if %option% == 5 (
adb shell am force-stop com.iland.os.childspace
goto init
)else if %option% == 6 (
adb shell am start com.android.settings/com.android.settings.Settings
goto init
)else if %option% == 7 (
exit
)else (
echo '输入错误,请重新选择'
goto init
)
:flag_install
adb devices
adb shell setenforce 0
adb remount
adb uninstall com.iland.os.childspace
adb install -t -r D:/WorkRoot/CodeSpace/Company-LianYou/as/standard/ProLanTu/ChildSpace/app/build/outputs/apk/debug/test.apk
adb shell am start -n com.iland.os.childspace/.ui.activity.MainActivity
goto init
:launch
adb shell am start -n com.iland.os.childspace/.ui.activity.MainActivity
goto init
分类: bat
0 条评论