您的位置:首页 > 其它

系统apk替换(不用重启机器生效:启动服务类型)

2015-03-27 15:27 399 查看
echo off

set a="%cd%"

for %%a in (%a%) do set b=%%~da

for %%b in (%a%) do set c=%%~npb

echo on

adb wait-for-device

adb root

adb remount

echo adb pull system/app/Branch.apk ./Branch123.apk

adb shell "rm /system/app/Branch.apk"

adb shell "rm /system/app/Branch.odex"

adb shell "rm /system/app/Branch/Branch.apk"

adb shell "rm /system/app/Branch/Branch.odex"

adb shell "rm /system/priv-app/Branch.apk"

adb shell "rm /system/priv-app/Branch.odex"

adb shell "rm /system/priv-app/Branch/Branch.apk"

adb shell "rm /system/priv-app/Branch/Branch.odex"

adb shell sync system

adb shell am stopservice -n com.android.Branch/.BranchService;

adb shell am startservice -n com.android.Branch/.BranchService

adb push ./CP_ORI_51_Branch.apk /system/app/Branch.apk

pause

adb shell am stopservice -n com.android.Branch/.BranchService;

adb shell am startservice -n com.android.Branch/.BranchService

pause

@choice /c:YN /M "adb Reboot Yes,or No?"

@if errorlevel 2 goto endgo

adb reboot

%echo 1

@:endgo
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐