

The risks outweigh the benefits in that case. It's fine to leave on for a few days while you're working on something, but there's no need to have it enabled when you're not regularly using it. Unless you regularly use ADB and connect your Android device to your PC, you shouldn't leave USB Debugging enabled all the time. That's scary, and a good reason you should have Android Device Manager set up so you can factory reset your Android device remotely. Install Latest Version of Android SDK Platform Packages and Tools On the Android Studio landing page, select Configure > SDK Manager. Someone who knew what they were doing could connect your device to their computer and issue commands to it via ADB, without knowing your PIN or other lock screen security. However, an unsuspecting user could accept the prompt without realizing what it's for.Īdditionally, leaving USB Debugging enabled makes your device open to attack if you were to lose it. This is why Android displays a confirmation prompt, so you don't connect to a PC you don't trust. If someone had access to the port, they could potentially steal information off your device or push malicious apps to it.

If none of the above worked for you then its reason might be a faulty USB cable. Go to Settings -> Storage -> USB Computer Connection -> Check Media device (MTP) : It lets you transfer media files using Android File Transfer. Check if you have turned on USB Mass Storage (or Connect as media storage). In theory, with USB Debugging enabled, plugging your phone into a public charging port could open it up to risk. Check if the USB cable is well connected.
