samedi 24 janvier 2015

HOWTO: Prevent Oppo driver CD from mounting topic






It annoys the hell out of me when I plug the phone in by USB and it mounts a pointless virtual CD drive with the drivers on. You can disable it on your own PC, but when you plug in to someone else's having it pop up and autoplay the driver installer is often unwelcome. There's probably a better way to do this, but it works for me :)

Steps:

1) Have root, a working ADB, and backups (nandroid)
2) adb shell

Code:


su
mount -o remount,rw /system
cd /system/etc
cp init.qcom.post_boot.sh init.qcom.post_boot.sh.bak
echo setprop sys.usb.config mtp,adb >> init.qcom.post_boot.sh


If you need to get the drivers urgently, then from adb or a shell:

Code:


setprop sys.usb.config mtp,mass_storage,adb







Aucun commentaire:

Enregistrer un commentaire