ADB device not found. - Nexus 4 Q&A, Help & Troubleshooting

So recently I did nothing with my Nexus 4 and can not boot up. I have tried everything to go back to sock but my PC does not detect the phone anymore. I do not remember having USB debugging on but even if I did not I can't make the change now. I can boot to custom recovery but that does not help. I though It was the USB port so I got a new one and that still did not help.

Boot into fastboot mode to see if it is detected using "fastboot devices" in a command prompt window.

audit13 said:
Boot into fastboot mode to see if it is detected using "fastboot devices" in a command prompt window.
Click to expand...
Click to collapse
Yeah thats my problem. No fastboot. My PC does not see ADB device at all so I cant even Install the drivers. I even changed the USB port to make sure that was not the problem. Before this I could not get my PC to even see the internal SD card. Though It was the OS so I reset it but somehow lost it completely.

You're running adb commands from command prompt? They may not work unless the phone is running in recovery or the phone is booted into the rom.

Related

I'm stumped

I just got the NS, coming from the Vibrant. I installed the sdk and drivers. Adb see's my device because I get a serial # when I "adb devices" but when I go to fastboot oem unlock I get "waiting on device".
Do you have the phone in fastboot mode? Turn phone off hold volume up and power on...
Sent from my Nexus S using XDA App
make sure you have the fastboot file in your tools directory and that you are in the tools directory while trying to give the command. that is all I know to try.
I do have a fastboot file in the tools and I do have the phone in fastboot mode. Could the "path" have anything to do with it? For some reason I didnt have a path file under variables so I just created one. I'm assuming since I get a serial # that the drivers and path are correct.
Yeah not sure since it recognized device...
Sent from my Nexus S using XDA App
debug mode?
I'm on windows 7, not sure if that has anything to do with it or not. For the life of me I cant figure out what is going on. I've used adb extensively only g1, never needed it on my vibrant but it has something to do with the drivers I think.
I'm in debug mode
did you update your SDK?
and is your enviorment variable PATH along the lines of
C:\...\...\AndroidSDK\platform-tools
Click to expand...
Click to collapse
If you think you may be having trouble with your path, just cd to the folder where you have fastboot and try it there.
EDIT: I just ran into the same problem when trying to flash the cm7 boot image with ext4 hack. I had booted into bootloader using quick boot. I rebooted, powered off, and powered on with volume up button and everything worked fine. Not sure why this happened but I got the same "waiting" issue you had.
I got it to work. I uninstalled the drivers, put the device in download mode then plugged it in THEN installed the drivers. All is well, root, superuser and 2.3.1. Thanks to everyone who posted to help out.
If your phone is in fastboot mode, you will NOT get your serial number when you do a "adb devices".
So there you go, you're not in fastboot mode.
Turn the phone off.
HOLD volume up and then HOLD power.
You'll get to the bootloader. THAT is fastboot mode.
Now type "fastboot devices" and you'll see your serial number come up, then you can do "fastboot oem unlock".
FYI: adb command ONLY works when your phone is on and booted up OR in recovery.
fastboot command ONLY works in Bootloader.

[SOLVED] Z1 not showing up in Linux ADB devices

hi,
trying to flash the breadcrust recovery using my linux pc, but the Z1 doesn't appear in the list of devices when running adb devices. Image attached. Normally I would get a request to accept the RSA key for a trusted pc when enabling usb debug. But I don't get this option.
- Adb tools are loaded and working on my linux laptop
- My nexus 7 responds to ADB devices and shows up ok
- tried on wifes windows laptop with adb/sdk tools loaded and no joy there too
- i have developer USB debug options enabled, i've tripple checked this
could it be the cable? I'm using the one which came with the phone, so that should be ok?!!
cheers
SOLUTION - I ran this One Plus Two script modified with the Z1 device ID and now I can see my device in adb devices and interact with it. I get the SHA screen to allow access and can run commands from linux terminal. YAY!
See the attachments for script.
I think it´s a driver fault. Did u install them in windows?
im using linux, i dont get any rsa pop up confirmation either!
EggZenBeanz said:
im using linux, i dont get any rsa pop up confirmation either!
Click to expand...
Click to collapse
and that was the reason, why i installed windows last night. as long you dont get rsa pop up, the device will not listed (i think so)
EggZenBeanz said:
im using linux, i dont get any rsa pop up confirmation either!
Click to expand...
Click to collapse
But u said, that u tried ur wifes Windows notebook. Did u install the drivers there?
ADB doesn't work for me, too. I work around this problem by booting into recovery (simultaneously press Vol+ and Vol- and Power until phone vibrates) and choose "Boot to bootloader" from there. After rooting I installed "Power Toggles" from Play Store and use the toggle to reboot to recovery or bootloader.
By the way, when I boot into recovery, I'm able to ADB sideload. So I don't think there's a driver issue.
MKKLR21 said:
ADB doesn't work for me, too. I work around this problem by booting into recovery (simultaneously press Vol+ and Vol- and Power until phone vibrates) and choose "Boot to bootloader" from there. After rooting I installed "Power Toggles" from Play Store and use the toggle to reboot to recovery or bootloader.
By the way, when I boot into recovery, I'm able to ADB sideload. So I don't think there's a driver issue.
Click to expand...
Click to collapse
Good tip - I'll give it a go.
My nexus 7 works as expected on all PCs and laptops Linux/windows so it must be the phone
Sent from my Nexus 7 using Tapatalk
Maybe sudo or check this:
http://1.bp.blogspot.com/-rDdBnJTh870/U-hxVzxMf3I/AAAAAAAAKwQ/WrZkaMjaReo/s1600/Unlock-Bootloader-linux-terminal-xperia-z.png[img/]
Source: [url]http://linuxwelt.blogspot.de/2014/08/cyanogenmod-unter-linux-installieren.html[/url]
ok some progress.....
got the trusted device RSA screen to appear on my wifes windows pc. i could then run adb devices and see the device.
I could run adb reboot bootloader, but the device doesn't boot into fastboot, just reboots as normal!
I could also hold down up/down volume buttons and get into the bootloader, but again the device isn't picked by any fastboot oem checks for unlocking!!
arrrgh!!!
You'll have to add -i switch followed by the device ID to your fastboot command. I don't have it at hand, so just read the TWRP thread.
ok! Some progress...ish.
running "adb reboot bootloader"command in windows worked when I switched Cyanogen recovery updates off in developer options. The Z1 reboots into bootloader.
Running "fastboot -i 0x2b4c oem get-device-info" returns nothing just "....."
So I tried "fastboot -i 0x2b4c oem unlock" an error returns cannot unlock use command "fastboot -i 0x2b4c oem unlock-go" which works. The phone wipes data and reboots back into OS.
I re-enable the developer options and adb debug. and reboot into bootloader
Run "fastboot -i 0x2b4c flash recovery z1.twrp.2.8.7.0.By.Breadcrust-UPDATE3.img" - some time stats are retunred and OKAY message. But when I boot into recovery it's still the cyanogen stock recovery. not TWRP.
weird!
Your commands are simply wrong, thats why they don´t work.
It is:
fastboot -i 0x2b4c oem device-info
fastboot -i 0x2b4c oem unlock-go
Run "fastboot -i 0x2b4c flash recovery z1.twrp.2.8.7.0.By.Breadcrust-UPDATE3.img" - some time stats are retunred and OKAY message. But when I boot into recovery it's still the cyanogen stock recovery. not TWRP.
Click to expand...
Click to collapse
Flashing does NOT work on the international version, you have to boot into it directly from fastboot.
fastboot -i 0x2b4c boot z1.twrp.2.8.7.0.By.Breadcrust-UPDATE3.img
Should be correct instead of the flash command.
EggZenBeanz said:
ok some progress.....
got the trusted device RSA screen to appear on my wifes windows pc. i could then run adb devices and see the device.
I could run adb reboot bootloader...
...
Click to expand...
Click to collapse
What made the change? I was able to see the RSA screen only once, but after device restored to defaults I can't get it back. same drivers installed, and it appears in the device manager.
I honestly don't know, it just worked after many attempts. I read somewhere about USB 3 ports with Linux so might be the same for windows?
Sent from my Z1 using Tapatalk
It's an USB 3.0 issue. Plug the phone into an USB 2.0 port, or an USB 2.0 hub plugged into an USB 3.0 port and it will magically start working. God knows why this is the case...
Ironically, fastboot works fine even on USB 3.0...
For to be able to boot (not flash) the TWRP recovery you shouldn't need to unlock bootloader. Am I right?
Planet X said:
For to be able to boot (not flash) the TWRP recovery you shouldn't need to unlock bootloader. Am I right?
Click to expand...
Click to collapse
Booting should work.
At least it worked fine on other fastboot capable devices I've had in the past.
MrColdbird said:
Booting should work.
At least it worked fine on other fastboot capable devices I've had in the past.
Click to expand...
Click to collapse
Okay, I have found out that it is impossible to boot from TWRP as log as the bootloader is locked. It just took me 2 hours to setup my phone again after unlock.
Have a look at this thread, I am going to give it a try later.
http://forum.xda-developers.com/showthread.php?t=2408802
This did the trick on Linux (Ubuntu):
- run on terminal "sudo gedit ~/.android/adb_usb.ini"
- put "0x2b4c" in
- run on terminal "adb kill-server" and "adb start-server"
And run the fastboot commands with "sudo".

Phone stuck without os and can't access to fastboot or adb

guys I'm in a bad situation, phone is without OS and I can only access to recovery or bootloader, I have a twrp installed and I can't access to an USB otg (simple usb doesn't even blink like they are not working, If I connect an hdd it doesn't recognize it but gives it power) and I can't access to the phone as MTP or with adb devices or adb sideload. Even on bootloader mode device isn't showed when I try the command "fastboot devices" and it says "download mode = DISABLED".
so I only have access to twrp with those limitations, I need a big help, phone is with BTL unlocked and with expired warranty.
thanks in advance
parodiniccolo said:
guys I'm in a bad situation, phone is without OS and I can only access to recovery or bootloader, I have a twrp installed and I can't access to an USB otg (simple usb doesn't even blink like they are not working, If I connect an hdd it doesn't recognize it but gives it power) and I can't access to the phone as MTP or with adb devices or adb sideload. Even on bootloader mode device isn't showed when I try the command "fastboot devices" and it says "download mode = DISABLED".so I only have access to twrp with those limitations, I need a big help, phone is with BTL unlocked and with expired warranty.
thanks in advance
Click to expand...
Click to collapse
Download mode=disabled is the default (normal) displayed in bootloader mode. You seem to infer that is what fastboot returned when you typed devices? MTP works in TWRP automatically when it loads. Sounds like you may have a PC driver/cable issue. When you plug the device into your PC, how is it recognized?
v12xke said:
Download mode=disabled is the default (normal) displayed in bootloader mode. You seem to infer that is what fastboot returned when you typed devices? MTP works in TWRP automatically when it loads. Sounds like you may have a PC driver/cable issue. When you plug the device into your PC, how is it recognized?
Click to expand...
Click to collapse
I'm on mac so I don't have any driver issues and other phones works fine with mtp in TWRP
Up please
parodiniccolo said:
I'm on mac so I don't have any driver issues and other phones works fine with mtp in TWRP
Click to expand...
Click to collapse
You are using OSX, right? Fastboot commands should start with ./ before each command. For example: ./fastboot devices, or ./fastboot flash, or ./fastboot reboot bootloader. Same applies for adb commands. If you are already familiar with flashing images, read my post below about OSX and fastboot.
Do not click into the thread because it is for the Nexus 5X new users guide.
Edit: Whoops! Initially shared the wrong link above. Follow this link instead:
https://forum.xda-developers.com/showpost.php?p=68758793&postcount=3
Sent from my Nexus 5X using Tapatalk

Fastboot mode issue in MiA1

Hi.
Recently I decided to flash lineage os 15.1 on my MiA1
For that I have downgrade to Android nougat.
After downgrading I booted my device.
After setting up device I booted device in fastboot mode to follow further steps like flashing TWRP and all but the problem is my device goes in fastboot mode and it is not identified by abd and after that it is automatically getting restarted and is not holding in fastboot mode.
Please help??
Odd issue. What are you using to flash? If you are using XiaoMiFlash.exe, you'll want to try the (THIS WILL REMOVE ALL YOUR DATA) "clean all" option. Please note that this removes all your data.
I have used MiFlash tool for this and now My device automatically reboot from fastboot mode so I am not able to use adb as well to flash rom or twrp also Now MiFlash tool is not recognising the device.
MrUsamahh said:
I have used MiFlash tool for this and now My device automatically reboot from fastboot mode so I am not able to use adb as well to flash rom or twrp also Now MiFlash tool is not recognising the device.
Click to expand...
Click to collapse
Hmm. What ROM version are you trying to flash on this? If your device isn't recognized by your PC when in fastboot mode, I'm not sure how you'd flash it.
oreo27 said:
Hmm. What ROM version are you trying to flash on this? If your device isn't recognized by your PC when in fastboot mode, I'm not sure how you'd flash it.
Click to expand...
Click to collapse
I flashed Android N Fastboot rom by selecting Clean and lock option.
After that the problem started
MrUsamahh said:
I flashed Android N Fastboot rom by selecting Clean and lock option.
After that the problem started
Click to expand...
Click to collapse
It should boot if you've fully flashed it and cleaned the user data partition. If it still isn't, you'll want to wait for other members with more experience in bricks to chime in.
oreo27 said:
It should boot if you've fully flashed it and cleaned the user data partition. If it still isn't, you'll want to wait for other members with more experience in bricks to chime in.
Click to expand...
Click to collapse
My device is booting up without any problems.
But the problem is bootloader is still unlocked. So i am not able to update via OTA.
And as the device does not holds in fastboot mode so I am not able to do other flash work.
Is there any way I can share a video of my problem with you?
MrUsamahh said:
My device is booting up without any problems.
But the problem is bootloader is still unlocked. So i am not able to update via OTA.
And as the device does not holds in fastboot mode so I am not able to do other flash work.
Is there any way I can share a video of my problem with you?
Click to expand...
Click to collapse
Oh. If it's booting up fine, then you shouldn't be worried too much.
If it keeps restarting in Fastboot mode, it could be a driver issue which is preventing your PC from recognizing your device and vice versa. I'm on Windows 10 which installs drivers automatically so I've never had experience with it.
oreo27 said:
Oh. If it's booting up fine, then you shouldn't be worried too much.
If it keeps restarting in Fastboot mode, it could be a driver issue which is preventing your PC from recognizing your device and vice versa. I'm on Windows 10 which installs drivers automatically so I've never had experience with it.
Click to expand...
Click to collapse
https://photos.app.goo.gl/TyLendNH7XaY74bs1
Please see this video.
If i boot in fastboot mode the device should be in fastboot mode till power button is not pressed for at least 10 seconds.
But in this case it gets switched off.
I have not connected the USB to pc and nothing else.
MrUsamahh said:
https://photos.app.goo.gl/TyLendNH7XaY74bs1
Please see this video.
If i boot in fastboot mode the device should be in fastboot mode till power button is not pressed for at least 10 seconds.
But in this case it gets switched off.
I have not connected the USB to pc and nothing else.
Click to expand...
Click to collapse
I think that's expected behavior? If it doesn't recognize itself being connected to a device, it'll exit fastboot mode.
I think you need to connect it to the USB cable and into your PC for it to not restart/power off.
oreo27 said:
I think that's expected behavior? If it doesn't recognize itself being connected to a device, it'll exit fastboot mode.
I think you need to connect it to the USB cable and into your PC for it to not restart/power off.
Click to expand...
Click to collapse
No when I connect it to pc at that time also same happens.
Previously when booted in fastboot mode it will stay ther by the time juice is out.
MrUsamahh said:
No when I connect it to pc at that time also same happens.
Previously when booted in fastboot mode it will stay ther by the time juice is out.
Click to expand...
Click to collapse
Yup. I just tested it out. It looks like you're right.
oreo27 said:
Yup. I just tested it out. It looks like you're right.
Click to expand...
Click to collapse
So do you know how can I help myself out?
wait.. what exacly did you do when you booted into fastboot? did you type "adb devices" or "fastboot devices"? also, try rebooting into fastboot mode by typing "adb reboot bootloader" in cmd, with your phone plugged into your pc, and with the proper platform-tools installed. it shouldn't really go away from fastboot mode like that.
Mizuru said:
wait.. what exacly did you do when you booted into fastboot? did you type "adb devices" or "fastboot devices"? also, try rebooting into fastboot mode by typing "adb reboot bootloader" in cmd, with your phone plugged into your pc, and with the proper platform-tools installed. it shouldn't really go away from fastboot mode like that.
Click to expand...
Click to collapse
Hy man, I know basic of adb and I use cmd "adb devices"
My device is recognised when it is on.
I can also give various cmd like boot in recovery or fastboot mode or reboot and the device follow the instructions.
Please see the video that I've shared.
Once fastboot mode is on the device is automatically restarted in about 10 to 15 sec and within this time MiFlash tool or adb cmd prompt bot does not recognise my device.
I have tried to flash OTA via adb side load but it is showing error.
Help me with your input!
MrUsamahh said:
Hy man, I know basic of adb and I use cmd "adb devices"
My device is recognised when it is on.
I can also give various cmd like boot in recovery or fastboot mode or reboot and the device follow the instructions.
Please see the video that I've shared.
Once fastboot mode is on the device is automatically restarted in about 10 to 15 sec and within this time MiFlash tool or adb cmd prompt bot does not recognise my device.
I have tried to flash OTA via adb side load but it is showing error.
Help me with your input!
Click to expand...
Click to collapse
Your device doesn't get detected in your CMD prompt when it's in fastboot AND you type "fastboot devices"?
If it doesnt then you might have flashed something incorrectly.
Also, make sure to have your android drivers up to date in your pc. It's very, very likely that you don't have them installed on your PC, or they are outdated. See this: https://developer.android.com/studio/run/oem-usb.html
And this: https://developer.android.com/studio/releases/platform-tools.html
I have faced this issue. Yesterday i dirty flashed a custom rom. but i forgot how to dirty flash. i just simply flashed the rom and restarted the phone. it was mandatory to flash custom recovery and gapps after flashing a rom dirtily or normally. but i didn't. After the reboot completed, i remembered that i didn't flashed the twrp and gapps. So, i go back recovery mod, guessed i could flash twrp now. But i didn't see any custom recovery on my phone. But the phone boots, and i can use the phone. Still, i'm on that phone, while i'm typing this comment. i didn't lost my data cause i flashed dirtily. But the problem is, as i didn't flashed gapps or magisk (for root access), now i can't use google apps like, play store, and more. As i don't have root access on my phone so, i can't run flasify, to flash custom recovery. neither i can run other apps that need root. As i didn't flash custom recovery, now i can't flash gapps, magisk and whatever that needs a custom recovery.
I told some rom porter about the matter. They told me to flash stock rom. So, i was trying to flash stock rom. but flashing stock rom requires a fastboot mode. But my fastboot logo doesn't appear and it's blank. I told this to a rom porter. But he said, He doesn't know about that and he can't help.

Reboot to Recovery Loop but no Recovery Installed - How to get back to System reboot?

I tried flashing a recovery program (TWRP) in fastboot mode. The powershell said it was successful, but now the phone cannot get past the bootloader unlocked screen. It started to System twice, and I made sure to remove the security PIN and enable ADB debugging on this computer automatically. However, "fastboot devices" and "abd devices" commands do not return the device ID, but the phone does turn on when I attached the USB cable that's connected to my computer. I think it's trying to restart into recovery mode, but the recovery program (TWRP) did not install correctly. How can I get it to reboot to system again?
CurlyTemple said:
I tried flashing a recovery program (TWRP) in fastboot mode. The powershell said it was successful, but now the phone cannot get past the bootloader unlocked screen. It started to System twice, and I made sure to remove the security PIN and enable ADB debugging on this computer automatically. However, "fastboot devices" and "abd devices" commands do not return the device ID, but the phone does turn on when I attached the USB cable that's connected to my computer. I think it's trying to restart into recovery mode, but the recovery program (TWRP) did not install correctly. How can I get it to reboot to system again?
Click to expand...
Click to collapse
When I try to give a fastboot command, the powershell just returns
<waiting for device>
and then nothing happens.

Categories

Resources