In older versions of Android, when connected via USB the default behaviour was "Charge Only". This allowed the device to charge via USB without exposing its file system to the device providing power, often a computer.

In newer versions, this security feature seems to be missing, introducing a vulnerability whereby the file system is now exposed to the powering device.

Is there a way to re-implement this "Charge Only" security feature so that the Android's file system remains hidden or encrypted even when connected to a computer via USB for power?

1 Answer 1


I have found the answer to my own question on another stack question:


The Solution

  1. Go to Settings
  2. Select Storage under Device
  3. Select "USB computer connection" from the drop down menu
  4. Disable MTP and PTP

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .