38

Go into settings > about phone Toward the bottom of the list, you'll see an entry for "Build Number" Tap it 5 times and you'll see toast pop-up letting you know that the Developer Options have been enabled. Go back to the main options menu and tap Developer Options and you'll see a tick box for USB Debugging about halfway down the list.


26

I have had this happen multiple times on multiple Android devices. Solved every time by putting the device in Photo transfer (PTP) mode. ADB will not work for me when my device is in MTP or any other mode.


16

I got it to work :) NOTE: This requires unlocked bootloader. Connect the device to Mac or PC in recovery mode. (I had to map the process in my mind as the screen was broken). Now open terminal/CMD in computer and go to platform-tools/. type and enter ./adb devices to check if the device is connected in recovery mode. Now type ./adb shell mount data and ./...


11

My SAMSUNG Galaxy S4 sometimes bothers me with this annoying offline status message too. I always fix it by trying options below: Try to revoke the USB Debugging authorization on Developer Options menu. Try using adb kill-server and the adb usb commands. Try to replug your device if none of above works. Try Restarting your device. Turn USB Debugging OFF and ...


11

The workaround was to set the desktop backup password under Developer settings. It seems there is a bug in backup process. If you didn't set a desktop backup password under the developer options settings the above problems occur and your backup will eventually be incomplete(empty backup file). However, I couldn't find an official source for this bug report ...


11

If the question is simply "using the command-line" Let it be simple (root possibly[1] required): settings put global development_settings_enabled 1 settings put global adb_enabled 1 And then you need to echo "mtp,adb" > /data/property/persist.sys.usb.config If you want to do this without touching your phone Then I'm feeling interesting because in ...


9

I found the missing pieces of the puzzle were installing the Java SDK & Android SDK. I came across this because I couldn't connect to the "adb interface" - the Android remote debugging instruction page never mentioned installing an SDK, so I Googled "how to set up adb interface", and I found this page on How To Geek. After installing the Java SDK & ...


9

Details for that can be found in our usb-debugging tag-wiki (where I've just added them): By default, USB debugging is disabled with stock ROMs (some custom ROMs however have it enabled by default). To toggle it on or off, you can find the corresponding switch in Settings › Development – a section originally hidden with Android 4.2 and up. You can make ...


9

Finally, I got a workaround - the Wi-Fi has to be turned off and then the installation over USB works as expected.


8

I am not sure if you ever solved this problem, but I ran into this problem, and tried out many many different procedures, each of which might have helped others, but this is 2016 and a summary might help. A brand new phone bought in 2016 didn't work when I installed Android Studio on Linux. A phone bought in 2015 worked without a problem. A new phone didn't ...


8

Here is the documentation on usage of the adb utility. Basically, adb connect is only needed if you are trying to connect to a device over TCP IP, i.e. wireless network. You don't need to issue any "connect" commands for a device connected via USB if it is already recognized in adb devices prompt. Just issue any other command, e.g. adb shell ls /sdcard/ ...


8

On production — user build of a ROM — you can't start adbd as root unless ROM or at least adbd binary is rebuilt with required modifications. Reason is the ALLOW_ADBD_ROOT build flag (1, 2). That's why adbd Insecure was developed, which replaced the adbd binary with a modified one. On a userdebug or eng build (or with insecure adbd binary extracted from any ...


7

You need to include the port number. adb -s 192.168.60.69:5555 shell If you're using a sensible shell with configurable tab-completion (i.e. not Windows), then you can type adb -sTab to get a list of devices.


6

According to this thread, this feature (Turn On MIUI Optimization) enables a plethora of MIUI based settings & optimizations as per the guidelines set by the MIUI developers. It helps to load the app and the app data in parallel reducing load times and ensuring a slicker user experience. However, this setting can sometimes cause a variety of issues on ...


6

You can see which devices were authorized by you on your phone to interact with it through adb. You would need root access though. Go into the directory /data/misc/adb/. There would be two files: adb_keys adb_temp_keys.xml adb_keys shows the public key of the other device followed by its user@machine name format. The user@machine should tell you which ...


5

Based on OP's clarification done in the comments below Izzy's answer, I propose the following solution if one's device is locked out and ADB is not enabled under Settings. Note that this method is tested on Stock Android 4.2.1 and Stock CM 12.0 (Android 5.0) , both devices having custom Recovery (ADB always enabled as default) . If your Stock Recovery ...


5

For the RSA verification that you asked to bypass, I don't know whether it would work in your device, but it worked in my little experiment. In Lollipop, the ADB keys (after authorization) are saved in /data/misc/adb/adb_keys. Your private key is saved in computer. In Linux the directory location is $HOME/.android/. On Windows that usually translates to %...


5

By deleting the adbkeys file found in C:\Users[Username].android folder the permission dialog appeared on my device.


5

Check adb devices. If no device shows up follow the steps below. First, check to make sure USB Debugging is enabled. On most devices: Go into 'About Phone', 'About Device', or 'About Tablet' Find 'Build Number'. It's location varies from devices to device, but look for menus such as 'Software Information' Tap 'Build Number' until you see a message saying '...


4

I had a similar issue with Huawei P Smart (today on Android Oreo). Revoking USB debug permissions enabling USB debugging and then re-attaching it with 'transfer files' option, followed by accepting the PC certificate fingerprint appeared to work - at least for the time being.


4

Starting with Android 5, the in-kernel logger driver is deprecated which exposed the ring buffers through /dev/log/* character devices. Instead a userspace logging daemon named logd manages buffers “main”, “system”, “radio”, “events”, and “crash”. Optional buffers “security” (e.g. for adb shell/push/pull logging) and on userdebug builds “kernel” (for klogd) ...


4

The user44860 answer is almost correct. Goto Settings, About Phone, Software Information: Click Build Number 7 times. You should see a message saying that now you're a developer. So, you can go back and enabe USB Debugging in the Development Settings. Maybe you've to detach the usb cable, enable the debug and re-plug the usb cable.


4

The PC Software setting is just for installing and using the LG PC software. Once your drivers are installed, enable USB Debugging, plug it in, change it from "charge only" to "MTP" and USB Debugging should work.


4

As it turns out, the issue was that my phone was no longer being recognised as a composite USB device by Windows, meaning only one of ADB, MTP or HTC Sync was capable of running at a given time. After the update, MTP was always recognised first. This explains both the 4.3 issue of MTP and ADB conflicting, and the 4.4 issue of no ADB. The solution was ...


4

Short answer is yes you can. Long answer is below but basically it depends on your device, your bootloader and if someone has figured out an exploid to unlock the bootloader yet. More information: From this link you can see the difference: What is bootloader and why unlock it? In literal terms, bootloader is code that is executed before any Operating System ...


4

install kies and connect your phone with usb cable. Then go to backup/restore and you can easily backup your important data from there.


4

I figured this out on my own. I solved this by installing Airdroid using an OTG USB adapter and a wired mouse. I then used the airmirror capability of the software to control a virtual mouse on the device. I do have root on the device, this may be significant to the operation of Airmirror. I could then accept the debug confirmation on the screen and complete ...


4

Actually Windows Experience Feature is the answer! I had the same problem and could not install usb drivers for a MotoG on a win2012 Server, but when I installed Desktop Experience feature, all runs flawlessly, drivers auto-installed and all! BUT it is a little weird to find it... Go to: Server Manager -> Open Add Roles and Features Wizard -> Features -> ...


4

Go to Settings-->Storage-->Menu(3 dots in the corner) and tap USB computer connection. When there, make sure MTP and PTP are both unchecked.


4

OK, here is I got the solution! there wasn't any bug or error in Android. It is because I have installed Samsung My Knox in my phone. Knox give an extra protection to device and also for some security reasons, Knox disabled USB debugging. according to Samsung My Knox : If you are using My KNOX, you cannot enable USB debugging mode while the container is ...


Only top voted, non community-wiki answers of a minimum length are eligible