Galaxy Note 2: Disable MTP/PTP When I connect my HTC Sensation (firmware: CM 10) to some PC I need to enter a passcode (to unlock the phone) and explicitly allow mounting as usb drive.
But when I connect SGN2 it enables MTP or PTP without confirmation so, for example, if I ask some guy to charge my phone from his laptop he will immediately gain access to all photos on the phone!

So I wonder how to disable this feature. The configuration dialog allows me to choose which mode to use, not to disable multimedia transfer.
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.