Prevent ICS From Mounting USB Storage I have a Motorola Droid Razr Maxx running Android 4.0.4. I'd like to prevent ICS from mounting USB storage every time I plug it into a USB host. I just want it to charge by default. I am very dissatisfied that they took away this option in the upgrade from Gingerbread to ICS.

I am willing to do stuff in the terminal that requires root privilege to prevent this from happening, but I would be happier if there is an app for it. I want my phone to Charge Only when I plug it into a USB host.
If you enable USB Debugging Mode, the phone will connect to your computer and charge as usual, but you will not get any auto-mounting for the phone storage.



Enable USB Debugging in Android 4.0


Click your device home button;
Tap "Settings";
Scroll your way to "Developer options" and tap it;
Check "USB debugging".




Enable USB Debugging in Android 2.3


Click your device home button;
Tap on "Settings";
Tap on "Applications";
Scroll your way to "Development" and tap it;
Check "USB debugging".



This method works for me to charge my phone without mounting the storage.