adb devices doesn't show anything. I have tried it with linux and windows (with Motorola drivers installed), it doesn't work. I can access the phone when I have enabled MTP, but it just won't show in adb. I have killed and started adb server so many times, it's frustrating.
The thing is, the first time (yesterday) it worked! I could reboot into fastboot with adb but then nothing worked anymore.
Any ideas?
Maybe silly question, but: is USB debugging activated on the phone? If yes, try to switch between MTP and Camera (PTP) under "USB computer connection" option. You should get the authorization prompt on your phone when everything is fine.
Yes, USB debugging is activated. I already tried both MTP, PTP, and neither, but I don't get any authorzation prompts. I revoked all previos prompts, but still nothing. Thanks for the suggestion though!
Are you on bootloader or recovery or normally on os
I tried all three.
Try playing with the USB cable - change it, change the USB slot on the PC that it's connected to, etc.
I only have one USB cable, but I already tried it on several USB slots.
It worked! I had to put sudo in front of my adb commands! Yay! :victory:
My setup used to work
Windows 7
CM11S
MTP work just fine. Can browse OPO /sdcard from windows 7
adb device work just fine. I can run all adb commands without problem: devices, shell, push, pull, etc
Now that I have upgraded to CM12S
MTP still work. I can browse OPO /sdcard from windows 7
adb device does not work.
adb devices report nothing. No error, just nothing. As if the phone is not plugged into the computer [see attached screenshot].
But I already installed usb driver, both google's latest and koush's universal adb driver, and tried ADB Interface and ADB Composite Interface
Currently, phone is setup as follow
Setting -> Storage -> USB Computer Connection : MTP
Setting -> Developer Option -> Android Debugging : on
With Android Debugging on, adb device won't show my phone serial when USB Computer Connection is MTP or PTP
When USB Computer Connection is set to charge only, Android Debugging is disabled
With Android Debugging off, I can browse the whole /sdcard when USB Computer Connection is set to MTP
With Android Debugging off, I can browse only DCIM and Pictures from /sdcard when USB Computer Connection is set to PTP
Back in CM11S
When USB Computer Connection is set to MTP, and Android Debugging off, I can browse the whole /sdcard from PC
When USB Computer Connection has NOTHING selected (no MTP, no PTP), and Android Debugging is on, I can use adb.exe on command line: devices, shell, push, pull, etc all work just fine
On CM12S, one of these options MUST be selected in USB Computer Connection: MTP, PTP, Charge Only. This is changed from CM11S
Does anyone have any success with adb.exe on command line on Windows 7 and CM12S (stock kernel)?
If yes, what is your phone setup for adb.exe to work, and which usb driver you installed on your winodws 7?
Thanks!
EDIT: fastboot work just fine
When you're on CM12S you can't have MTP enabled if you want to use adb. Disable MTP temporarily and adb should work.
Transmitted via Bacon
timmaaa said:
When you're on CM12S you can't have MTP enabled if you want to use adb. Disable MTP temporarily and adb should work.
Transmitted via Bacon
Click to expand...
Click to collapse
timmaaa, this is what i could figure out
my only problem is: how do I disable MTP on CM12S?
On CM11S, I can
On CM12S, I must choose one of the options: MTP, PTP, Charge Only
If I am on MTP, and I press it again, the screen just grey out
and then I push back button to go back to main storage screen
and now I choose USB Computer Connection again, and MTP is still selected/enabled
Have you tried to do adb devices on windows on CM12S?
If you can, did you ever enable MTP or PTP?
Thanks
animefans said:
timmaaa, this is what i could figure out
my only problem is: how do I disable MTP on CM12S?
On CM11S, I can
On CM12S, I must choose one of the options: MTP, PTP, Charge Only
If I am on MTP, and I press it again, the screen just grey out
and then I push back button to go back to main storage screen
and now I choose USB Computer Connection again, and MTP is still selected/enabled
Have you tried to do adb devices on windows on CM12S?
If you can, did you ever enable MTP or PTP?
Thanks
Click to expand...
Click to collapse
Instead of pressing MTP again, select PTP.
Transmitted via Bacon
timmaaa said:
Instead of pressing MTP again, select PTP.
Transmitted via Bacon
Click to expand...
Click to collapse
I will try to reconfirm, but I believe I tried that already
regardless of MTP or PTP, adb devices does not find my phone
EDIT: yup, regardless of MTP or PTP, when adb debug is on in developer tools, adb device does not show serial number, so can't connect to phone via adb shell
Same exact problem here, adb worked fine until I turned on MTP now I can't turn it back off and thus adb not working.
No matter what I select or disable I always end up with MTP back on and no ADB working. Someone else who just got their OPO yesterday having same issue and what caused me to mess with MTP setting breaking my ability to ADB :/
Also another new behavior to me is that I cannot access "USB Computer Connection" screen unless I am plugged into PC. When not connected to PC it just rescans internal storage and go's nowhere.
Quick dirty screencast showing how MTP can't be turned off (sorry rushed and kid in background)
https://drive.google.com/file/d/0Bwwwt8cZbp9rYXRGa0Y1dFBfY1k/view?usp=sharing
Good to hear, in a way...
Good is that it's not just me
Bad is that this problem exist
BTW, created this problem in jira
https://jira.cyanogenmod.org/browse/BACON-3358
Hopefully this is a bug in the setting app where USB Computer Connection option is not required. Right now options are required
PS: and yes, I notice the same thing where USB Computer Connection is not even available until you plugged it into PC
PPS: I wonder what is the behavior of USB Computer Connection under OxygenOS and Stock Android (ie Nexus 5/6/etc). Having this data point can narrow down if issue is cyanogenmod OS specific issue, or it's a general Lollipop AOSP issue
is this can be problem why I couldn't install custom recovery?? I try install TWRP, device have unlocked bootloader
if running adb devices on your PC can not see the phone (ie phone serial), then yes you can't install TWRP this way
However, I believe there are other ways to install custom recovery onto your phone without PC
Try TWRP Manager on play store
I used this to update my TWRP recently in order to update to CM12S without going through OTA
Yeah I have the same issue as well and now i don't have Twerp or root . and i can confirm i never had the issue on my nexus 4 with stock LP and Dirty unicorns so it looks like a CM bug to me my phone feels incomplete without root
Solodude said:
Yeah I have the same issue as well and now i don't have Twerp or root . and i can confirm i never had the issue on my nexus 4 with stock LP and Dirty unicorns so it looks like a CM bug to me my phone feels incomplete without root
Click to expand...
Click to collapse
Thank you for the data Solodude!
Quick update on my current situation on this issue
http://forum.xda-developers.com/showpost.php?p=61975450&postcount=4
Can someone explain me how to get ADB working on my SGS8? I've tried everything: installing drivers, Java, Android SDK, 15 sec adb driver, universal ADB driver, minimal adb. I can't figure out how to do that.
Do what? Get an ADB shell with a pc?
Just install the samsung drivers from here, enable debugging in developer options on your phone and connect via usb
jaannnis said:
Do what? Get an ADB shell with a pc?
Just install the samsung drivers from here, enable debugging in developer options on your phone and connect via usb
Click to expand...
Click to collapse
Thanks, will try that
i was having one hell of a time as well. I tried everything on my laptop to no success. So i actually gave up. Than i thought well maybe its my laptop. So i ended up trying another one i had in the house and viola it worked like a charm. It seems like certain pc are just unable to connect to the samsung s8 via adb mode. Which is totally weird because I had been using adb mode on my pixel xl with no issues what-so-ever. So try a different pc if you can, it worked for me flawlessly.
Might be the USB port.
I had a similar problem connecting my Lenovo laptop to a Kindle Fire. I used a different USB port and everything worked.
9 bin
Hello,
I recently got a Pixel 2 on stock Android 11 with the intent of flashing LineageOS + rooting. But I haven't had any luck getting ADB to recognize the phone so far. I am using Windows 10 and Ubuntu Linux 20.04 LTS.
As a prerequisite, I enabled developer options, USB debugging, and OEM unlock.
I'm pretty sure the USB port of the phone is okay because the phone still fast charges.
Here's what I've tried:
- using Minimal ADB (device does not appear when adb devices is run)
- using platform-tools ADB (same as above)
- using wireless ADB (ADB is able to pair but the phone still doesn't appear when adb devices is run)
- checking Device Manager (device does not appear)
- Installing Google USB drivers
- using OEM cables from Samsung and other Android OEMs
- using a micro USB cable with a micro-to-C adapter
- using a USB hub
Am I missing something? What should I be doing to get my phone to be recognized by my computer?
Thank you in advance.
Hi, sounds like you've tried all the usual trouble shooting bits with cables, ports etc. Only other things I can think of at a stretch are to try enabling file transfer when you connect to a pc and see if that makes any difference or booting into bootloader via the button combo from powered off and then running fastboot devices from your adb and fastboot to see if it is recognised in fastboot mode?
windows 10 is showing
Unknown USB Device (Device Descriptor Request Failed ) in device manager​when I connect windows prompts this message -"the last usb device you connected to this computer malfunctioned and windows does not recognize it"
I enabled USB debugging and changed default USB config to MTP
installed drivers again and again in both Linux and windows
I switched operating systems (windows, ubuntu and kali )
I switched laptops and tried every single port of both laptops
I tried miui USB settings app from playstore
I tried using ADB commands from the terminal but no device detected
I entered fastboot mode on phone and then run fastboot devices but still no device found
I used GMTP in ubuntu which worked fine on another phone having somewhat similar issue but it also didn't work
I changed 4 USB cables (3 of them were original mi cables )
I tried using Pendrive using otg but it also didn't work
My laptop worked fine with other phone
I also hard reset my RN5 Pro
I basically tried every fix shown on youtube and XDA threads as well as random google search websites
Please help me what should I do ..
please ....
Download Miflash 2021 version.
Run it and install driver.
Then reboot PC.
pl1992aw said:
Download Miflash 2021 version.
Run it and install driver.
Then reboot PC.
Click to expand...
Click to collapse
are u saying should I flash the stock miui again in my phone using mi flash ??
shaurya_needs_help said:
are u saying should I flash the stock miui again in my phone using mi flash ??
Click to expand...
Click to collapse
No, the driver probably did not installed correctly.
Install the driver. Miflash has the driver needed.
shaurya_needs_help said:
windows 10 is showing
Unknown USB Device (Device Descriptor Request Failed ) in device manager​when I connect windows prompts this message -"the last usb device you connected to this computer malfunctioned and windows does not recognize it"
I enabled USB debugging and changed default USB config to MTP
installed drivers again and again in both Linux and windows
I switched operating systems (windows, ubuntu and kali )
I switched laptops and tried every single port of both laptops
I tried miui USB settings app from playstore
I tried using ADB commands from the terminal but no device detected
I entered fastboot mode on phone and then run fastboot devices but still no device found
I used GMTP in ubuntu which worked fine on another phone having somewhat similar issue but it also didn't work
I changed 4 USB cables (3 of them were original mi cables )
I tried using Pendrive using otg but it also didn't work
My laptop worked fine with other phone
I also hard reset my RN5 Pro
I basically tried every fix shown on youtube and XDA threads as well as random google search websites
Please help me what should I do ..
please ....
Click to expand...
Click to collapse
hi, @shaurya_needs_help, did you solve the issue?.