Debugging is one of the most important tasks in making reliable software programs. It's a well-known coding concept that everyone computer programmer is familiar with. The initial purpose of USB debugging on Android is to let Android programmers test the app they wrote on real Android device to find potential bugs before making its available on public.
USB debugging grants a much high priority to the computer to access advanced features provided by Android system, like flashing custom ROMs, kernels and recoveries. A certain number of Android app requires USB debugging enabled before proceeding to installation as it needs superuser privilege to make its full functional.
Before digging into the details, there are some preparations required to get started. The first thing we need is a functional USB cable. It makes a physic connection between a computer and an Android device. The second thing is USB driver for the proper device. USB driver guarantees the computer can send direct commands to the device to take certain actions. The driver is device-specific, so you need to find the proper one for installation. Luckily, Windows 7 and Mac OSX will install the driver automatically when the device is plugged to a computer.
1. Open your Android device and tap the "Setting "icon on the screen.
2. Scroll down the option list and click on "Application" , which will leads to a new screen.
3. On the Application screen, hit the "Development option".
Check "USB Debugging"
4. Backup your data if there are stored on your device already.
1. Locate the "Setting" icon on your screen and tap it for further operation.
2. Scroll down the list and Click "Developer Options" on the screen.
3. Tap on "USB Debugging"..
Unlike the minor changes between 2.x and 3.x, The process is entirely different when applying the same task to Android devices powered by 4.2 and later versions. This feature is hidden by default, so it takes additional steps to turn on USB debugging on Android Ice Cream, Jelly Bean and KitKat.
1. Tap "Setting" on the main screen.
2. Scroll down the bottom of the list and hit the option "About phone".
3. Now scroll to "Build Number" and tap it 7 times. After that, you will see popup message saying "You are now
a developer", it means developer mode has been enabled.
4. Back to "Setting", then "Developer Option" will be appeared and check "USB Debugging".
The above tutorials work for a vast majority of Android devices sold on the market. And it has been tested out from various of trusted resources. However, there are minor changes needed to be taken when the device is powered by a customized ROM or brand. Here are a few cases listed below, feel free to add more at the following comments:
1. Samsung Galaxy serial with Android 4.3: Settings> General> About
2. HTC : Open Settings> About> Software Information> More.
3. LG: Settings> About> Software Information