The steps to enable USB debugging depend on the version of Android running on the target device, as indicated in the following table:
Android Device
Instructions
Android 4.0 and newer (Jelly Bean)
Enable the USB Debugging option under Settings > Developer options.
For Android 4.2 and newer, Developer options is hidden by default; use the following steps:
On the device, go to Settings > About .
Tap the Build number seven times to make Settings > Developer options available.
Then enable the USB Debugging option. Tip: You might also want to enable the Stay awake option, to prevent your Android device from sleeping while plugged into the USB port.
Kindle Fire devices
Select Settings > Security and set Enable ADB to On. For more information, see the Amazon documentation.
If you are running Android 4.2.2 or later, you may see the following dialog when you connect your device to your PC running RAD Studio:
Click OK to allow USB debugging on your PC. If you accidentally click Cancel, disconnect your device from your PC and connect it back to make the dialog show up again on your device.
Troubleshooting
If your Android device is not correctly detected by RAD Studio or the system Device Manager, follow the steps above to verify that USB debugging is enabled.
For general information about development setup for Android devices, see the Android documentation.
Источник
How To Enable USB Debugging Mode On Android Device
If you want to run an android app automation test using Appium on a physical Android device such as a phone or pad, you need to first enable USB debugging mode in your physical Android device and then connect it with your PC using a data line. Below are steps about how to do that.
1. Step-1: Enable Developer Options.
Below steps are the prerequisites before you can enable USB debugging mode on an android device. If you have already done this step before, then you can go to step 2 directly.
Click the Settings icon on the android OS main screen.
Scroll down in the Settings menu list, check whether there is a menu named ” Developer options ” at the bottom above the About phone menu item, if you can see that option you can type it to disable or enable it. If you can see that option, it also means you have done step-1 before, you can skip step-1 and go to step-2 directly. In my example, I can see that option because I had enabled it before.
If you can not see the ” Developer options ” menu, you should go to the ” About phone ” menu and tap it. The About phone menu is located at the bottom of the Settings menu list.
Scroll down to the ” Build number ” menu item in the ” About phone ” menu list.
You need totally tap seven times on the ” Build number ” menu item, after the first three-tap, it will popup message show you something like ” If you continue tap twice or more you will be a developer “, keep typing until you see another message like ” You are now a developer! “.
Then go back to the Settings menu list, you can see the ” Developer options ” menu item in it.
2. Step-2: Enable USB Debugging Mode.
After enabling the ” Developer options ” menu in step-1, you can enable USB debugging mode now. But what I want to remind you of is that do not make your android phone or pad in USB debugging mode always, just enable it when you needed. There are security risks in that mode because it permits high-level operation on your android device. So to make your android device ( phone or pad ) safe, you should disable this option immediately after you use it.
Type on the ” Developer options ” menu item in the Settings menu list.
Check the ” USB debugging (Debug mode when USN is connected)” checkbox to enable it.
It will prompt you to ask whether ” Allow USB debugging ” or not, click the OK button.
The detailed message of the Allow USB debugging? popup dialog is as below.
Now the USB debugging mode has been enabled completed successfully.
3. Step 3: Check Whether Device Is Connected With PC Properly.
Use a USB line to connect your android device with the PC, then you can run the below dos command to verify that the android device in USB debugging mode is connected with the PC properly.
Open dos window.
Execute command ” adb devices ” in the dos window. Then you can see the connected android devices list.
If you can not see any device, maybe it is because of a connection issue or you do not enable USB debugging mode correctly. The most possible reason is that you do not install your android device’s USB driver correctly on your PC. Below are some general android device’s USB driver provider links.
Click here to download the Samsung device USB driver, Click here to download the Lenovo device USB driver, Click here to download the HTC device USB driver. Otherwise, you can go to your phone’s manufacturer’s website to download related USB drivers.
4. Install Google USB Driver In Android SDK Manager.
If you really can not find the correct USB driver for your android device, you can install google’s default USB driver, it can be used to install some android devices.
Launch Android Studio, click the ” Tools —> Android —> SDK Manager ” menu item.
In the pop-up dialog, click Appearance & Behavior —> System Settings —> Android SDK on the left side, then click the SDK Tools tab on the right side, then check the ” Google USB Driver ” checkbox, click Apply button. Then click the Finish button in the next dialog to complete the install.
Click the Windows Start menu, input “device manager” in the windows command input box. Press Enter key.
In the Device Manager window, right-click your portable devices in the path Laptop —> Portable Devices —> Nexus 7 (your portable device).
Click the Properties menu item in the above popup menu list. It will open the detail properties dialog with the title Nexus 7 Properties. Click the Driver tab, then click the ” Update Driver… ” button.
Browse to the Google USB driver saved directory. Commonly you can find the driver in your android SDK installation directory like C:\Users\Jerry\AppData\Local\Android\sdk\extras\google\usb_driver .
After installing google provided USB driver, you can see the connected android device uses adb devices command in the command line.
Now you can run a native android app automation test in your physical android device using Appium and selenium webdriver, we will introduce that in later articles.
Источник
How to enable USB debugging in Android?
How do you enable USB debugging in the Nexus 7 (first generation)?
Edit: The accepted answer applies to other android devices also where Developer option is hidden .
3 Answers 3
Toggle on «USB Debugging» in the «Developer Options» area of Settings.
If you do not see «Developer Options», go into «About device» in Settings and tap on the «Build number» entry seven times, which will unlock «Developer Options».
1) go to settings
2) go to developers setting
3) enable developers setting by turning the switch on top of the page.
4) select Usb Debugging.
Note: if developer option is not available then Tap 7 times on the build version button to unlock developer options.
First of all, you have to check Do you have unlocked developer option or not? If not then you can unlock it by clicking on «Build number» 7 times where you can found this «Build number» option in Setting -> About Phone
After then open Developer option which is available second last option in setting page. Check in Usb Debuging. you will get dialog which show you approvance for Usb debuging for separate computer.
Steps For Usb Debuging
Open setting in Phone
Open Developer Option
Enable developers Option by Clicking 7 times on «Build Number»
Источник
How To Enable USB Debugging On Your Android Phone
Learning how to enable USB debugging mode is critical if you want to do anything useful with your Android Mobile Phone. This tutorial explains how to do it.
Are you interested in creating Android Apps, or maybe just running home diagnostics on your device? If so, one of the first things you’ll want to do is connect your phone to your computer. But to do this, it requires that you set up your phone and enable USB debugging mode accordingly. Let’s enable Debug Mode.
Note: Every manufacturer of Android devices varies. This article was written in 2010 and some things have changed but this should give you an idea of what to look out for.
Debugging Mode for Android
When paired with a computer running Android SDK (or another diagnostic program), Debug Mode can allow you to pull up all sorts of useful information about your phone. In the screenshot below I’m using the DDMS tool from the Android SDK to monitor where RAM is being used on my Samsung Galaxy S Android phone. But this is just one example of what you can do!
Enable USB Debugging Mode On Your Android Mobile Phone Device
Newer versions of Android (4.0+)
Step 1
Launch the Settings app on your phone. This app can be found in your App Drawer, or by pressing the menu button on the outside of your device.
Step 2
In the Ice Cream Sandwich (4.0+) or a newer version of the Android OS, the System USB Debugging is now located under Developer Options > Android Debugging.
Done! That’s all there is to enable USB debugging in the new version of Android.
Older versions of Android
The same as above, except after entering the Settings menu you’ll need to enter Applications options.
Next tapDevelopment.
Check the box for USB debugging.
You can also Enable, Stay Awake, and Allow mocklocations to make things easier when you are running tests.
Your phone should now be in Debug Mode. If you go into the notification bar, you’ll find an Ongoing alert stating USB debugging connected. Note that even while USB debug mode is enabled you can still Mount your Android phone to your computer to transfer files without causing any problems!
79 Comments
Awesome – Is there a simple way to backup your phone this way also?
Thanks man totally worked!!
Yes, if your phone is rooted, Titanium Backup Pro is by far the best backup utility out there
Thank you, awesome it is so simple super.
hello there…!!1 i need to know if there is other ways that makes my android phone get in to hard reset mode because the three combination key wont work for me and i even tried to connect to mobogenie but how could i enable usb debug mode please help…. 1??
Thank you so much! Was really helpful;-)
i am locked out and cannot enable debbuging. not linked with google account and have no 3 button combi. “/ HEEEEEEEEEELPPPP need to master reset but adb wont connect to device, odin connects but hangs at file analysis. newB but im sure ive done EVERYTHING
@tanny I have the exact same problem, did you manage to do anything? Send me a reply pls if you found any solution. Any help would be appreciated
YES! i have my galaxy S working perfectly now 🙂 Go to youtube and Search Galaxy usb jig. when in download mode odin WILL flash but i just chose to reset. the youtube video does no justice for how fiddly the thing is to make, but it does work so be patient. dont buy a jig kit its only like 50pence to get all the bits you need.
please help bro . your problem is now my problem any solution please contact me
Excellent Dennis! Thanks for the feedback. I’m glad the article helped out!
Nice,, Thanks a lot.
Thanks for this info! I am using EasyTether Pro and I have a question. Once I check the box for ‘USB Debugging’ do I (and should I) leave this box check alway? Or should I manually check this box every time I go to use my EasyTether Pro app? Is there any danger in leaving the box for ‘USB Debuggin’ always checked? Also, why wouldn’t something like USB Debugging be a default feature anyway? Thanks for any help and information!
@Aaron, Great feedback! To answer your question, once you check USB Debugging it should remain checked indefinitely. There are a few things that can disable it; certain apps, system updates, and total loss of battery life (in some cases).
There isn’t any danger in leaving USB debugging mode enabled, but the reason that it isn’t on by default is because it causes a lot of driver issues if you plug it into a computer. You’ll notice while USB debug mode is off that you can easily mount your phone as an external drive, enable (built-in subscription based) tethering, or just have it charge. With Debug mode on, you usually need to download/install an additional driver on your computer if you want to retain the same features.
USB debug mode also uses up more system resources on the phone, so if you need to use it while it is charging you might notice slower performance. But, most USB-based tethering apps need it enabled because it grants elevated access privileges.
Hope that helps. Thanks for the groovy question!
whenever i m trying to turn on USB debugging it restarts my phone & after the restart again debug mode is unchecked.. & same restarting thing is there… can’t connect my Phone to PC.. any solution
Can someone hack in your phone going through USB debugging. Is that what this is for. Do they need access to your phone to hack in it?
look at bet your bottom dollar on youtube the one with the guy in the mask
I have problem to log as debug mode even I have set the option to debug mode. It will still remain as USB storage, any advise on this? I am using Galaxy S, Android 2.3.3. Thanks.
Sir , Have you solved this problem ? Till now existing for me. If you got rid of this , pleaese show me the way.
i hope by now you have the issue resolved.two years down the line.
> i hope by now you have the issue resolved.two years down the line.
Yes – by buying a new phone with Android 4.1 (not because of the problem with USB debugging but because the old one had too small a memory and a lot of software doesn’t install on the SD card).
The new phone (Samsung Galaxy S II plus) has USB debugging switched OFF by default, which is what I want. Connecting it to the Win7-PC at home as a hard drive now works fine without having to switch off USB debugging manually every time.
Unfortunately, at work, where an old XP system without admin rights is installed, the PC does not find a driver for accessing the phone as a hard disk, so I cannot load pictures ONTO the phone (download of pictures still works with some XP-builtin camera app).
Older versions of Android like 2.3.3: Task the following: Enter the Settings menu you’ll need to click Application options. Then click on development;you’ll see debug mode. Click on it….You should get it right now.
Is there a way to enable USB debugging with a broken screen?
Hi, I don’t have the Development entry. What should I do ? Android 2.3.4, kernel 2.6.32.9 infotmic “flytouch 3”
Thanks 🙂 Good Help
nice post. its really help for my Android IP Webcam.
Thanx a million Sir. It worked for my Samsung Galazy Note. Was struggling for a week. Wroked as a breeze..Thanx again.
You bet! And welcome to the groovyPost community!
I need a help with my phone Motorola XT531. After its Rooted, i could move many apk files to SDcard and create a link file to place in the original folder. So using this method was great. But I dont remember exactly why, I guess I move motoswitch.apk from system/app and did not create de link to replace it. So now i can not access the home and the worst the usb debug is not selected. Does anybody know how can I enable it? Or use the Update.zip to restore just the system/app folder to the original place, because I’ve a original copy of it in the SDCard.
Thanks! Simple and easy to understand!
I have a Droid RAZR. Following your instructions it will not let me changer the USB debugging to USB charge. Can you help me.
Maybe you need to click some ones times on Adjust> About telephone> Compilation number
Just by switching off the USB debugging mode I resolved the issue tht had been driving me barmy.
Thanks for your help.
What issue were you having Geoff?
thanks for the post.
Like Geoff Berry, I need to switch *OFF* USB Debugging on my Samsung Galaxy Ace in order to connect it as a mass storage device to my PC.
The problem is that I have to do it every time again, which is a big hassle. Even when I have it switched off, as soon as I plug in the USB cable, it automatically switches on again, and I have to perform all the above steps again.
Do you know of a way of permanently switching OFF the USB debugging once and for all?
Thanks in advance.
Groooooveee Mannnnnnn! Yeah walked me right home, I love ya for this.
Thanks, was really helpful 🙂
NOT help Have any ideas? pls
Some time ago I was had a problem related some posts above tha was about I got blank screen after I had moved a system file. So I asked for help on how to enable the usb debug without use settings menu, off course that was because if I got a blank screen i could not use settings menu. So far I don’t know how to enable de usb debug, but the solution were this steps. 1 – Reset the cellPhone to default factory 2 – paste the missed file on the sdcard using a PC. 3 – using another phone send to you a sms and paste a link to an webmail. 4 – using a PC, send to yourself a link to the file posted on your sdcard described above using the webmail. 5 – turn on you phone, follow the initial setup screen. 6 – Your sms will be received and so click on the link, then the webmail will be launched. 7 – click on the link and select to install the missed file. Doing this steps I solve my problems, good look to you.
thaanx. you are great!
Just great. Thanks!!
Once again, you are amazing!
dude… you literally saved my life…
The best post I have seen so far about USB debugging.
Well thank you very much!
For the last few days I have looked at debugging an Android phone or any indormation to connect an android phone. I have an HTC Magic which I received last Christmas from my son. He knows I like gadgets and buttons, it was an introduction to touch phone. I used it until some time in February and then on and off the next couple of months. I have a very nice Nokia E5 which does GPS without going online and I can connect to the computer to transfer files and photos to my hearts content. Now my needs from a mobile are that I can TXT, phone, take pictures and use the GPS. Now the Magic, the camera pixels are less, the GPS you have to go online being Google, yes I can text and phone, but I cannot connect to the computer so I cannot upload Co-pilot which I bought. I have ticked the debug, and the phone tells me the software is up to date. I am tempted to do a factory reset, do you know how dangerous that is, should I have the sim card out, it is the same card I use on my Nokia when I am fed up with the Magic. By the way I live in rural France where mobile signals are optional, I am not a computer whiz but I get by and I am retired.
I’m not sure of what you’re tying to do. Co-pilot has a free android app which can be downloaded form the Google Play store. If you are trying to run the co-pilot Windows program on your phone that will not work, it only works on Windows computers.
If you purchased one of the area-specific premium Co-pilot apps from the Google Play Market, you don’t need USB debugging to transfer it to your phone. It should just be downloadable straight to your device. If the device isn’t listed as compatible, you can try forcing it by just transferring it to your device after mounting the SD.
Don’t forget to disable debug mode when its not in use. Leaving debug mode enabled is a security issue.