【Android】adb mount挂载sdcard,删除垃圾app

来源:互联网 发布:oracle查询2列重复数据 编辑:程序博客网 时间:2024/06/08 19:28

转载署源(By:KyleCe):http://blog.csdn.net/kyleceshen/article/details/50008185

之前做android root时,需要挂载sdcard,删应用,具体的批处理就不在这里做说明了

@d:@cd \sdk\platform-toolscmdrem @adb push E:\projects4as\AdsPushPlus\build\outputs\apk\AdsPushPlus-hdx-release.apk /sdcard/ads.apkrem @echo offrem @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.txtrem echo su >> temp.txtrem echo mount -oremount,rw /system > temp.txtrem echo rm /system/app/ads*.apk >> temp.txtrem echo cat /sdcard/ads.apk > /system/app/ads.apk >> temp.txtrem echo chmod 777 /system/app/ads.apk >> temp.txtrem echo reboot >> temp.txtrem adb shell < temp.txtrem del temp.txtrem pause

转载署源:http://blog.csdn.net/kyleceshen/article/details/50008185
By:KyleCe

0 0
原创粉丝点击