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/Bra
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/Bra