Thursday, October 26, 2017

USB Debugging

The term "USB debugging" is very simple and I would like to share all about to know USB debugging".

What Is USB Debugging?

  • USB Debugging is a way for an Android device to communicate with the Android SDK (Software Developer Kit) over a USB connection. It allows an Android device to receive commands, files, and the like from the PC and allows the PC to pull crucial information like log files from the Android device. And all you have to do is tick a button to make it happen.


What’s USB Debugging Used for?


  • The most common reason for enabling USB Debugging is developers pushing apps to their devices to test.Without USB Debugging, you can’t send any advanced commands to your phone via a USB cable.
  • Whenever you create a new build of your app and want to test it, you can push it to your connected device with just a few clicks. After building, it will run and pop up on your device right away. This is way faster than downloading the APK file and installing it manually.
  • Non-developers commonly enable USB debugging to root their phones. Rooting varies by device, but most methods involve some program that you run from your desktop. Once you enable USB debugging and connect your phone, you can use a root tool to send the root instructions to your device without even touching it. Installing a custom ROM involves a similar process.

How Do you Enable USB Debugging?

- To Enable USB Debugging in MIUI you have to go to Setting.
  Tap 7 times on MIUI version, which will turn on USB Developer option.


- On the other case, You have to tap 7 times on Build number.
   In this way, you can enable this feature on that device which runs except MIUI.



Is USB Debugging Safe?
  • In theory, with USB Debugging enabled, plugging your phone into a public charging port could cause problems. If someone had access to the port, they could potentially steal information off your device or push malicious apps to it. This is why Android displays a confirmation prompt, so you don’t connect to a PC you don’t trust. However, an unsuspecting user could accept the prompt without realizing what it’s for.


  • Additionally, leaving USB Debugging enabled makes your device open to attack if you were to lose it. Someone who knew what they were doing could connect your device to their computer and issue commands to it over ADB without knowing your PIN. That’s scary, and a good reason you should have Android Device Manager set up so you can remotely wipe your device.


  • Unless you regularly use ADB and connect your Android device to your PC all the time, you shouldn’t leave USB Debugging enabled all the time. 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.


Some common reasons to Turn on Developer mode :
  • Rooting and installing other OSes
  • Speed up device animations
  • Fake your device’s GPS location
  • Speed up high-end games
  • Record screen activity


Courtesy : Device Team, Tech Class,Mi Community

No comments:

Post a Comment