I am familiar with USB Mass Storage mode . How exactly is USB Debug mode different from it ?


An Android device in "Mass Storage" mode behaves just like a USB flash drive: It presents itself as a block device that can be mounted (i.e. "used") by the host PC. Just like a USB stick does.

Additionally "USB Debug Mode" can be enabled, which creates a new USB endpoint for the Android Debug Bridge (adb). This allows a user to get in-deep access to the connected Android device and furthermore it allows the debugging of apps. This is the reason why you should never attach an Android device with Debug Mode enabled to an untrustworthy PC. As USB is able to provide more than one endpoint per USB device, these "services", Mass Storage and adb, can be used simultaneously.

  • Thanks :) Can you elaborate a little on "endpoints" ? I do not know what they mean (in a technical context) . Does the concept of "USB Debug mode" exist for any USB device (like my ipod nano) ?
    – progammer
    Jan 5 '13 at 13:11
  • Debugging over USB is just a convenient way to do debug embedded devices of all types. But it's up to the device manufacturer how it's done (or if it all). A USB device can provide different "services" by announcing them on different endpoints.
    – Flow
    Jan 5 '13 at 13:16
  • Ohh .. In the Android world , does every device manufacturer provide a "USB Debug Mode" such that it can be accessed with "ADB" ?
    – progammer
    Jan 5 '13 at 13:22

USB Debug Mode is used by developers to test their apps. If they connect using USB Debug Mode, they will get debug information about how their app is working on the device.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.