转载署源(By:KyleCe):http://blog.youkuaiyun.com/kyleceshen/article/details/50008185
之前做android root时,需要挂载sdcard,删应用,具体的批处理就不在这里做说明了
@d:
@cd \sdk\platform-tools
cmd
rem @adb push E:\projects4as\AdsPushPlus\build\outputs\apk\AdsPushPlus-hdx-release.apk /sdcard/ads.apk
rem @echo off
rem @adb shell su -c "mount -oremount,rw /system"
rem @adb shell su -c "rm /system/app/ads*.apk"
rem @adb shell su -c "cp /sdcard/ads.apk /system/app/ads.apk"
:: @adb shell su -c "chmod 777 /system/app/ads.apk"
:: @adb shell su -c "reboot"
rem echo su > temp.txt
rem echo su >> temp.txt
rem echo mount -oremount,rw /system > temp.txt
rem echo rm /system/app/ads*.apk >> temp.txt
rem echo cat /sdcard/ads.apk > /system/app/ads.apk >> temp.txt
rem echo chmod 777 /system/app/ads.apk >> temp.txt
rem echo reboot >> temp.txt
rem adb shell < temp.txt
rem del temp.txt
rem pause
转载署源:http://blog.youkuaiyun.com/kyleceshen/article/details/50008185
By:KyleCe