New answers tagged usb-connection-mode
I've probably found the solution: run the following command as root setprop persist.sys.usb.config adb and reboot the phone. Now my phone doesn't show an "usb connection" notification and "Android File Transfer" (an MTP implementation for MacOS) doesn't see the phone. In the same time adb works fine.
I know this might be late, so this is mainly for future reference. What I have: I am running CyanogenMod 10.1 M2 (Android 4.2.2) on a Galaxy Nexus, Latest Firmware / Band Updates, Using latest Samsung USB drivers. I had the issues: Will not connect to Windows 8 computer as mass storage device, or over ADB (However Android unit was charging). Solution: ...
I wasn't able to know what is the problem with my device. But after performing a factory data reset, it's now working. :)
Sometimes a damaged usb cable, low quality cable, or one that's too long can cause this as well. So perhaps make sure you're using the original cable that came with the device. Also if you're using a usb hub with a desktop computer try plugging the cable directly into the computer instead.
Go to Settings > Storage > Options > USB settings and select a desired USB connection mode.
It seems that the code is specific for Samsung devices. Therefore, if your device is made by another manufacturer, it doesn't work (if the manufacturer hasn't added it specifically).
Top 50 recent answers are included