ADB will not connect to one device, others are fine... - General Questions and Answers

Hello, I have been struggling with this one for a few days...
I have a Linux ADB installation and I can use it to connect to my devices, except for one - a Galaxy S3 running Resurrection Remix 5.8.3.
When I do `adb devices` the repsonse is an empty list. The phone does show the `USB debugging connected` alert. It also shows `USB charging for this device`.
I've read that latter one should be changed to `Transfer Phots (PTP)` but doing so makes no difference, and unplugging and reconnecting the USB resets this option to the charging setting.
I've tried everything that I can think of.... disabling and reenabling USB debggging and developer mode.
I don't think it's the ADB because it works fine with any other device that I try.
What else can I try?

ogpog said:
What else can I try?
Click to expand...
Click to collapse
Do you have the specific drivers installed for your phone? If you do not, install them and then try
If you do, uninstall and install again.

I am not sure what "specific drivers" I need. I am running `adb` from `android-tools 8.0.0_r17-1` on Arch Linux. I am pretty sure that the client side is fine because it does work sometimes, as I explain below.
I did a firmware update as an attempt to fix this. I now have "RR-N-v5.8.5-20171217-i9300-Final". I have since been able to get it to work but it is hit-and-miss.
First I note that the usb connection resets to charge-only whenever it is disconncted/reconnected. This requires that the appropriate mode needs to be selected each time the USB is plugged into the device.
I connect the phone via USB to the computer and try `adb`. It doesn't work (`adb shell` reports `error: no devices/emulators found`).
I open the "Developer Options" of the settings screen. I "Revoke USB debugging authorisations" so that I get the authorisation pop-up when the adb connection works as a visual cue that the connection is working. An alternative way to get feedback is to use `adb wait-for-device` on the computer - this blocks until the connection is made and, when it exits `adb shell` works immediately afterwards.
I then go to the "Networking" selection, choose "Select USB Configration" and then change the setting from "Charging" to "PTP (Photo Transfer Protocol)". Perhaps adb will work, but unlikely. If it doesn't work I keep selecting between the various usb options and, eventually, adb starts working. It only ever seems to work on the PTP mode.
I find doing this a few times may get adb working or it may cause the device to fall over and reboot. In fact, the latter scenario is the most likely!
(edit, I think the reboot may be a result of selecting the 'audio source' option and not relevant. Selecting between charging and ptp a good few times (30-ish - I lose count) eventually gets adb working).
My work-around to this problem is to connect ADB over the network which works reliably but requires opening a terminal on the device to configure and start the service.

Related

USB connection problem, connection type screen does not appear

When i'm connecting my phone via usb, choose a connection type screen does not appear and i cant select the "disk drive" or "charge only" options. When i tap to change usb settings, it sends me to "portable hotspot & tethering"
Windows recognizes usb device
Phone is stock, some days ago updated to android 4.1
Try disabling usb debugging. On my Blade I have to do that if I want to mount it as usb storage.
My S and tablets doesnt need that though, but might be worth a shot.
Hmm interesting my phone turns usb debugging automaticaly on when i connect my device, tried hard reset, problem still remains
I see. I read about someone else having the same issue on JB. I guess its a bug or something.
I guess you either have to flash a custom rom or wait for an official update.
In the mean time, you could always use quick adb pusher. Much better than mounted usb storage (requires a working adb connection, which you should have if you have installed htc sync)

USB Problems

My computer for some reason reminded itself of not recognizing my Idol 3 5'5 6045k. Two days ago it was all fine and now everytime i connect it to the computer it only charges. I've tried everything from changing usb cables to unistalling andthen installing the device drivers, enabling debugging, restaring either smartphone and computer. Everything I can think of. Please help me out, I'm trying to root the smartphone and without it recognizing I can't do anything, not even transfer files. :crying:
sdfg said:
My computer for some reason reminded itself of not recognizing my Idol 3 5'5 6045k. Two days ago it was all fine and now everytime i connect it to the computer it only charges. I've tried everything from changing usb cables to unistalling andthen installing the device drivers, enabling debugging, restaring either smartphone and computer. Everything I can think of. Please help me out, I'm trying to root the smartphone and without it recognizing I can't do anything, not even transfer files. :crying:
Click to expand...
Click to collapse
Obvious Question #1: Did you check the phone notification dropdown area to verify the phone is in MTP or PTP mode so it will show up on the pc? As for transfering files...you do have the option of loading up a microsd card with whatever files or installing a wifi adb app to connect wirelessly. You could even use an app like airdroid to let you do all sorts of things.
famewolf said:
Obvious Question #1: Did you check the phone notification dropdown area to verify the phone is in MTP or PTP mode so it will show up on the pc? As for transfering files...you do have the option of loading up a microsd card with whatever files or installing a wifi adb app to connect wirelessly. You could even use an app like airdroid to let you do all sorts of things.
Click to expand...
Click to collapse
Therre's no notification after connecting the usb, it just charges the phone, seriously, I've tried everything to enable MTP but nothing does the job. And what do you mean by using an adb app? Can I root my smartphone by a wireless connection?
sdfg said:
Therre's no notification after connecting the usb, it just charges the phone, seriously, I've tried everything to enable MTP but nothing does the job. And what do you mean by using an adb app? Can I root my smartphone by a wireless connection?
Click to expand...
Click to collapse
You are overcomplicating things. 1st...there is ALWAYS a notification in the dropdown that says what mode the phone is in....mtp, ptp, charge only or "cdrom mode" which installs the usb drivers. Pressing on that notification allows you to change the mode the device is in.
As for rooting....all you need to do that is to flash or boot TWRP (details on booting it are in the system image thread) and then flash the supersu zip from inside twrp to your device...reboot and done...but I think in the newer TWRP's they even offer options to root automatically...ie the zip is already built in. After rebooting to your phone you install the supersu apk from google play so you can configure what apps have superuser access.
famewolf said:
You are overcomplicating things. 1st...there is ALWAYS a notification in the dropdown that says what mode the phone is in....mtp, ptp, charge only or "cdrom mode" which installs the usb drivers. Pressing on that notification allows you to change the mode the device is in.
As for rooting....all you need to do that is to flash or boot TWRP (details on booting it are in the system image thread) and then flash the supersu zip from inside twrp to your device...reboot and done...but I think in the newer TWRP's they even offer options to root automatically...ie the zip is already built in. After rebooting to your phone you install the supersu apk from google play so you can configure what apps have superuser access.
Click to expand...
Click to collapse
I'm telling you, everytime i try to connect my smartphone to the pc nothing shows up, i only notice the device is charging, there's no option anywhere to change it to MTP or Camera or CD ROM... And I've tried 2 different pc's
sdfg said:
I'm telling you, everytime i try to connect my smartphone to the pc nothing shows up, i only notice the device is charging, there's no option anywhere to change it to MTP or Camera or CD ROM... And I've tried 2 different pc's
Click to expand...
Click to collapse
Your telling me when the phone is plugged into the pc you don't see the notifications below or some version of them at all? If so then you need to fully uninstall the devices in device manager including remove the drivers...then use the drivers in the system image thread (since you obviously can't use the ones from "cd rom mode" which would be the best solution). USB debugging isn't even an issue yet...your phone should still show up to the pc as a camera device (ptp) under just about ANY scenario using even built in windows drivers.
famewolf said:
Your telling me when the phone is plugged into the pc you don't see the notifications below or some version of them at all? If so then you need to fully uninstall the devices in device manager including remove the drivers...then use the drivers in the system image thread (since you obviously can't use the ones from "cd rom mode" which would be the best solution). USB debugging isn't even an issue yet...your phone should still show up to the pc as a camera device (ptp) under just about ANY scenario using even built in windows drivers.
Click to expand...
Click to collapse
Thanks for all those tips, but I already tried that out aswell, 2 times to be precise, deleted all the drivers, rebooted pc and smartphone, tried different cables, but still nothing ever occurs.
sdfg said:
Thanks for all those tips, but I already tried that out aswell, 2 times to be precise, deleted all the drivers, rebooted pc and smartphone, tried different cables, but still nothing ever occurs.
Click to expand...
Click to collapse
Have you tried a different cable? Perhaps that one is damaged or is only setup for charging? Only thing I can think of.
And then I realize you mentioned that Not sure what else would prevent it from giving you those options.
I'm also facing similar issue after the 2 update. Were you able to fix this?
http://askubuntu.com/questions/681959/ubuntu-14-04-15-10-android-file-access-issue?s=2|0.2054
Which kind of USB cable(s) have you tried specifically? Were they cheap eBay/generic kinds or well known branded ones?
Something as little as a Micro USB cable can cure a lot of problems. It needs to be a well built one by a known manufacturer to avoid problems.
brian117 said:
Which kind of USB cable(s) have you tried specifically? Were they cheap eBay/generic kinds or well known branded ones?
Something as little as a Micro USB cable can cure a lot of problems. It needs to be a well built one by a known manufacturer to avoid problems.
Click to expand...
Click to collapse
Actually I've been having pretty good luck with the $1 ones from Dollar Tree but the key is certainly to try multiple cables....on some the microusb plug will make it difficult to get a solid connection especially if you have a case on the phone.
You may be missing the point of "trying" different cables. It's not so much the "quality" of the cable, it's the fact that some cables are for "power only", and "will not" transfer data, regardless of how hard you try.
You need to be using a "proven" data/power cable, otherwise your beating your head against the table for nothing.
Just to add, I put a piece of red tape on all my usb cables that are power only, no guess work.
I own idol3/moto g 2015 and s3, have no problem with other 2 device. I'm having this MTP issue after the UE40 update. Verified in all 3 OS, adb is detecting the device but not MTP/PTP. Idol3 support is not worthy responses.
http://forum.xda-developers.com/idol-3/general/mtp-issue-ue40-update-t3182564
http://askubuntu.com/questions/681959/ubuntu-14-04-15-10-android-file-access-issue
KashRaman said:
I own idol3/moto g 2015 and s3, have no problem with other 2 device. I'm having this MTP issue after the UE40 update. Verified in all 3 OS, adb is detecting the device but not MTP/PTP. Idol3 support is not worthy responses.
http://forum.xda-developers.com/idol-3/general/mtp-issue-ue40-update-t3182564
http://askubuntu.com/questions/681959/ubuntu-14-04-15-10-android-file-access-issue
Click to expand...
Click to collapse
Well, USB works fine here, and I've had 5 different rom's, 2 Canadian, 2 US, and the Chinese rom, on this phone without any USB issues, sorry, can't help any further.
After a complete wipe and restore, it worked.
sdfg said:
My computer for some reason reminded itself of not recognizing my Idol 3 5'5 6045k. Two days ago it was all fine and now everytime i connect it to the computer it only charges. I've tried everything from changing usb cables to unistalling andthen installing the device drivers, enabling debugging, restaring either smartphone and computer. Everything I can think of. Please help me out, I'm trying to root the smartphone and without it recognizing I can't do anything, not even transfer files. :crying:
Click to expand...
Click to collapse
I had the same problem as well. It only showed charging when I plugged in the USB cable. Tried switching cables, turning off and on USB debugging but nothing worked. I finally just rebooted the phone and then it worked again. Strange that it suddenly stopped.
I have a different issue; the different USB modes work fine but I don't have the 'cdrom' option in the USB mode dialog. I've tried various Alcatel ADB drivers that I have found and none are working, using Win7 64. My Idol 3 4.7 is 6039I (US).
Answered my own question, simply install the Mobile Upgrade Q software.
nope, doesn't show up. it's a bug. i had it before, googled until i found a fix and got it working, now it's back to not being recognized. nothing shows on drop down menu.

Nexus 5 problem connecting to PC with USB

I've had this problem before, but I have always been able to fix it by uninstalling ADB and drivers, through WUG's toolkit, changing cables, device manager/update drivers, jumping up and down while spinning and plugging cable in, among other things. However, this time is different and I'm not sure if it is because of M on my phone or the Windows 10 update. This problem has been going on for over a month now, and I've had both since it started. I've tried all the above mentioned things, along with everything else I can find, and none of them work.
The only way I can get my computer to recognize my phone to share files is to go into device manager every I plug it in is to; go to device manager, right click to update driver, select do it from my pc, select driver in folder. After doing this it works perfectly fine, but I have to do it every time I plug my phone in or every time my phone turns off while it's plugged in. The error message I get on my computer is "USB device not recognized" when I go into device manager it says "device descriptor request failed" It does this on both of my PCs. Any ideas or help would be greatly appreciated!
DT USC said:
I've had this problem before, but I have always been able to fix it by uninstalling ADB and drivers, through WUG's toolkit, changing cables, device manager/update drivers, jumping up and down while spinning and plugging cable in, among other things. However, this time is different and I'm not sure if it is because of M on my phone or the Windows 10 update. This problem has been going on for over a month now, and I've had both since it started. I've tried all the above mentioned things, along with everything else I can find, and none of them work.
The only way I can get my computer to recognize my phone to share files is to go into device manager every I plug it in is to; go to device manager, right click to update driver, select do it from my pc, select driver in folder. After doing this it works perfectly fine, but I have to do it every time I plug my phone in or every time my phone turns off while it's plugged in. The error message I get on my computer is "USB device not recognized" when I go into device manager it says "device descriptor request failed" It does this on both of my PCs. Any ideas or help would be greatly appreciated!
Click to expand...
Click to collapse
I think I'm getting something similar since I've installed "M"....
Under:
Settings -> Developer Options -> Select USB Configuration
It say's it's set to "MTP (Media Transfer Protocol)"; it really isn't. When I plug the phone in, under Win 8.1, a desktop window opens with "AOSP on Hammerhead" (or something like that), but there's nothing in it. Now for some magic....
With the phone in one hand, and the mouse in the other:
1. Open Settings -> Developer Options -> Select USB Configuration
2. Touch "MTP (Media Transfer Protocol)" (even if it's already selected)
3. Listen for the PC/Windows Desktop (it should give an audible sound)
4. Immediately click on the "AOSP on Hammerhead" text in the path listed on the open Windows widow ("This PC -> AOSP on Hammerhead")
5. You should see an "Internal Storage" folder appear
6. Open the folder, enjoy MTP

Samsung S7 Edge ADB Commands

Hi,
Basically I have a Samsung S7 Edge (SM-G935F) which the screen is completely smashed on (no display no touch). When I connect it to the PC it detects the phone but it doesn't show the folders inside (can only assume its got a prompt to accept PC or USB debugging isn't enabled).
After a lot of testing with OTG cables keyboards/mouse etc the furthest I got was putting the phone into Recovery Mode (PWR, VOL UP & HOME) then selected APPLY UPDATE ADB.
When I run the ADB in Powershell and run "adb devices" it finds the device ID and says "sideload".
Is there any command I can run to pull the files off my internal DCIM folder (thats all I really need)?
I did read up the only way this could be possible is to install a custom rom (TWP with ODIN?) and then pull files off.
Is this possible and would installing a custom rom delete my internal files as that would render this pointless.
Sorry im new to a lot of this so all my knowledge is just what ive read recently.
Thanks
1. To pull user data USB-debugging must got enabled. May be this method works for you to enable it:
2. To flash TWRP it's required device's bootloader got unlocked - what requires OEM unlock must got enabled . Note: Unlocking bootloader erases all user data.
jwoegerbauer said:
1. To pull user data USB-debugging must got enabled. May be this method works for you to enable it:
2. Once you unlock device's bootloader - what is required to flash TWRP - all user data get lost.
Click to expand...
Click to collapse
Thanks for the reply,
Ok so my only option is the "blind" method.
I have the app installed via Google Play Store on my PC to the device however when I hold down the home button to ask google I hear no reply from her, is there any hotkey to use for this device to ask google or any alternative methods to open this app?
I can see the S7 Edge is connected to my WIFI as it shows on the Sky Hub and IPScanner.
Also is there a way to tell what android interface version I have so I can follow someone on Youtube going into Settings or Apps etc to open the app.
I feel like I am so close to getting these photos off the phone but its just a blind guess at the moment.
I managed to get a hold of a friends S7 Edge, using this I mapped out some keyboard functions to turn on developers options then usb debuggings.
What I have noticed is now when I connect the phone via USB to the PC and run ADB DEVICES it shows up the ID then unauthorised as the status, so I can only assume this means I have USB DEBUGGING ENABLED.
Is this correct?
If so why when I open the Samsung Galaxy in Windows does it still not show the folders, is there another setting I need to turn on/off?
Rowan88 said:
I managed to get a hold of a friends S7 Edge, using this I mapped out some keyboard functions to turn on developers options then usb debuggings.
What I have noticed is now when I connect the phone via USB to the PC and run ADB DEVICES it shows up the ID then unauthorised as the status, so I can only assume this means I have USB DEBUGGING ENABLED.
Is this correct?
If so why when I open the Samsung Galaxy in Windows does it still not show the folders, is there another setting I need to turn on/off?
Click to expand...
Click to collapse
you are confuse you want to view phone content and sd card? you need to change from charging to MTP connection from drop-down notification bar of your device
ineedroot69 said:
you are confuse you want to view phone content and sd card? you need to change from charging to MTP connection from drop-down notification bar of your device
Click to expand...
Click to collapse
I want the internal storage contents of DCIM on the phone.
I followed the steps on my "donor" phone to go into Developer Options > USB Configuration > MTP but all that happens is the phone detects on Windows but wont show me the contents of it.
I also tried changing to PTP but same issue.
I know there is a pop-up that shows on the phone asking to ALLOW THE PC TO ACCESS FILES but I cannot have the USB DATA CABLE and OTG/KEYBOARD plugged in at the same time (and I also tried two OTG adapters both came up MOISTURE DETECTED when using).
So unless anyone knows of a OTG SPLITTER that 100% works with S7 EDGE then I need to find a way to either bypass the ALLOW MESSAGE or manually add my PC to its allow list.
Rowan88 said:
I want the internal storage contents of DCIM on the phone.
I followed the steps on my "donor" phone to go into Developer Options > USB Configuration > MTP but all that happens is the phone detects on Windows but wont show me the contents of it.
I also tried changing to PTP but same issue.
I know there is a pop-up that shows on the phone asking to ALLOW THE PC TO ACCESS FILES but I cannot have the USB DATA CABLE and OTG/KEYBOARD plugged in at the same time (and I also tried two OTG adapters both came up MOISTURE DETECTED when using).
So unless anyone knows of a OTG SPLITTER that 100% works with S7 EDGE then I need to find a way to either bypass the ALLOW MESSAGE or manually add my PC to its allow list.
Click to expand...
Click to collapse
Followed steps again and changed to PTP and FILES ARE NOW SHOWING!!
Happy man!
Thanks for all the help
Rowan88 said:
I want the internal storage contents of DCIM on the phone.
I followed the steps on my "donor" phone to go into Developer Options > USB Configuration > MTP but all that happens is the phone detects on Windows but wont show me the contents of it.
I also tried changing to PTP but same issue.
I know there is a pop-up that shows on the phone asking to ALLOW THE PC TO ACCESS FILES but I cannot have the USB DATA CABLE and OTG/KEYBOARD plugged in at the same time (and I also tried two OTG adapters both came up MOISTURE DETECTED when using).
So unless anyone knows of a OTG SPLITTER that 100% works with S7 EDGE then I need to find a way to either bypass the ALLOW MESSAGE or manually add my PC to its allow list.
Click to expand...
Click to collapse
fully charge your phone and hopefully the heat generated from charging process remove the moisture detected warning or you can also use hair blower to heat your charging port area
also don't put your device on microwave oven unless you want to see some fireworks

Question Does anyone know why ADB wifi refuses to work?

Despite any rooting, any options selected in developer settings (they do nothing regarding this)... I still need to enable adb wifi by restarting in tcpip mode by tethering to pc usb adb (adb tcpip 5555). Then I can use wifi adb fine, and tools like scrcpy that this phone works excellent with (seriously a league above Samsung streaming, and Samsung had it integrated into phone link). With every other device I ever had, and currently have like Fire Sticks, tablets... Selecting the dev option is enough and I dont need to tether to my pc every phone reboot. I can adb into them fine.
Is there anyone out there that knows whats up? Do roms other than Lineage (or stock) enable this functionality?

Categories

Resources