Recovering Files through Bootloader - Nexus 4 Q&A, Help & Troubleshooting

I had to replace a battery on my Nexus 4, and the new battery is just as broken (red light of death). I'd like to pull the files off the device.
Now, I've tried multiple different methods that claim to fix the red light of death and none have worked, so I'm trying some other things now.
When holding volume down + power and giving the phone a usb power source, I manage to get into the bootloader screen. I've checked fastboot and it's recognising the device, however adb is not. I have a feeling since last flashing a rom I have not re-enabled USB Debugging, that or adb requires the phone to be on which I am not sure about.
I was wondering is there a way I can copy files across with fastboot or if there is a way to get adb working with only fastboot?
Other Information: In the bootloader screen I cannot select any of the options with the power button, I can only scroll through them with volume keys. I cannot boot into recovery/into my phone through fastboot or the red light comes back. I simply only have fastboot through the bootloader.

If your phone's bootloader is unlocked, you can install a custom recovery (like TWRP) and pull the files from the internal storage with "adb pull".
If it is locked, you can't do much, because unlocking it will wipe your device.

Erovia said:
If your phone's bootloader is unlocked, you can install a custom recovery (like TWRP) and pull the files from the internal storage with "adb pull".
If it is locked, you can't do much, because unlocking it will wipe your device.
Click to expand...
Click to collapse
I had a go at booting into a recovery image, however that set off the red light again :/

Is the bootloader locked or unlocked?

Erovia said:
Is the bootloader locked or unlocked?
Click to expand...
Click to collapse
Unlocked, Thanks

Have you tried flashing TWRP or CWM recovery?

Erovia said:
Have you tried flashing TWRP or CWM recovery?
Click to expand...
Click to collapse
Yup, Just did it again:
Code:
fastboot flash recovery cwm.img
It succeeds. I then click to boot into recovery and I get the red light again. It doesn't seem to be possible :/

As far as I know, there is no way of retrieving data with fastboot. :S

Erovia said:
As far as I know, there is no way of retrieving data with fastboot. :S
Click to expand...
Click to collapse
It would seem that way. So fustrating, I almost always have USB Debugging enabled because I fiddle about with my phone regularly, but of course when it is so dearly needed I forget to turn it on!

It might ease your pain: USB Debugging has nothing to do with your problem, because it is a service of Android. So if you can't boot into Android, you can't use it.

Erovia said:
It might ease your pain: USB Debugging has nothing to do with your problem, because it is a service of Android. So if you can't boot into Android, you can't use it.
Click to expand...
Click to collapse
Ahh ok, I guess I'll just need to splash out on a new battery/fix this one if possible. Thanks for your help!

Related

[Q] Help please--Nexus stuck on bootloader

I am a noob at android--just putting that out there. But trying...
I just received my new nexus 7 2013. I used Wugfresh's version 1.6.6 toolkit to backup the nexus prior to unlocking it, and then the plan was to root it. Something happened in the process--can't say for certain what, but at some point the tool brought up TWRP on the nexus and a file that the tool said was supposed to be there, wasn't. The end result now is that my nexus is stuck on the bootloader. None of the buttons seem to work, other than restart bootloader. Turn off DOES turn off the nexus, but then when pressed again, goes right back to the bootloader. The recovery one flashes the screen quickly, then goes back to the bootloader. The Start option makes it so the screen shows the "Google" icon indefinitely with the unlocked lock icon. I need to note that the option to get into the bootloader (power + vol up and vol down) did not work for me—the only way I was able to go into the bootloader was the power and vol down. Currently though, pressing the power button makes the nexus go directly into the bootloader.
When plugged into computer via the usb cord, windows xp currently doesn't recognize anything is plugged in, although I do have the latest USB drivers installed.
I downloaded and ran SDK and went through the various fastboot commands from within a cmd window. The fastboot devices command does bring up a device number, so it is recognized by fastboot.
Here's where others will start to shake their heads in bewilderment...in my haste to try and get this up and working and out of the endless bootloader menu, I *could* have flashed it with the nexus 7 2012 recovery image, because when using fastboot to do so, at end says something about grouper and my device says flo (although nothing changed with the nexus—as in there are no obvious changes as still in bootloader). I am aware that the official flo factory image is not yet available, although at this point, I don’t have much confidence in that doing anything.
If I open up Wugfresh’s Toolkit, I can’t do anything with it, as it says that ADB doesn’t work or something and to enable USB debugging, which I can’t do because I’m stuck on the bootloader.
I don't know where to go from here--I don't know if the device is salvageable or if it is completely toast and I should just return it and get another one...I see that in the day since I downloaded Wugfresh’s Toolkit, he has released two more versions—not sure if the new version can do anything—haven’t tried yet. Can anyone with more knowledge than myself give me a hand or some advice? Thanks in advance.
You first need to have the bootloader unlocked before flashing any custom recovery to make a nandroid backup.
Username invalid said:
You first need to have the bootloader unlocked before flashing any custom recovery to make a nandroid backup.
Click to expand...
Click to collapse
it is unlocked. I am able to use the fastboot commands to unlock and lock. it currently is unlocked.
Easiest thing to do is just flash back to stock and start over.
Grab the zip file from here. It has the stock rom, stock recovery, and stock boot that you need.
You can either run the .bat file, or issue the commands yourself:
fastboot oem unlock
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot -w
"I used Wugfresh's version 1.6.6 toolkit to backup the nexus prior to unlocking it" which I assumed you meant you tried to make a nandroid backup before unlocking.
Username invalid said:
"I used Wugfresh's version 1.6.6 toolkit to backup the nexus prior to unlocking it" which I assumed you meant you tried to make a nandroid backup before unlocking.
Click to expand...
Click to collapse
I will try the one click factory restore method posted by Geodude when I get home from work--at this point I have nothing to lose.
And Username invalid, sorry, no nandroid backup--by backup I meant just the basic backup of settings that are shown on Wugfresh's Toolkit.
Hopefully the one click restore will work....thank you very much.
busdonic said:
I will try the one click factory restore method posted by Geodude when I get home from work--at this point I have nothing to lose.
And Username invalid, sorry, no nandroid backup--by backup I meant just the basic backup of settings that are shown on Wugfresh's Toolkit.
Hopefully the one click restore will work....thank you very much.
Click to expand...
Click to collapse
I assumed that as doing an app and setting backup on a brand new device does not seem to make much sense.
Username invalid said:
I assumed that as doing an app and setting backup on a brand new device does not seem to make much sense.
Click to expand...
Click to collapse
Yeah, I see that....not sure why I did it myself actually, cuz now that you mentioned it, does seem pretty stupid--I guess that explains why I'm here asking for advice
I'm assuming that the one click restore will work. If it doesn't, I think I found a non-official flo factory image. I think (?) if I flash that to the tablet in fastboot, that will restore it, or at least get it past either the bootloader menu or past the Google icon shown at startup.
Geodude074 said:
Easiest thing to do is just flash back to stock and start over.
Grab the zip file from here. It has the stock rom, stock recovery, and stock boot that you need.
You can either run the .bat file, or issue the commands yourself:
fastboot oem unlock
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot -w
Click to expand...
Click to collapse
this worked--thanks much. Am much relieved to be up and running again....

[Q] Broken&Locked N4, need your help..!

Hi guys !
I need your help for trying to recover my information from my Nexus 4... (Thanks in advance)
First, my N4 is:
With the screen cracked, so, the bottom half of the screen is not responding to any touch
Locked with a lock pattern (and because of the damaged screen, I can't unlock the phone)
With stock Android
With USB debugging on
Not rooted
With no other modification whatsoever (No custom ROM or recovery mode, etc)
First I tried the obvious, I connected the N4 to my computer expecting a miracle; as the phone is locked, and I can't unlock it, ADB just didn't worked.
I also tried sending a .zip thought "adb sideload" (using the stock recovery mode) to delete the files where the lock pattern is, but an "signature verification error" occurred (because the phone is not rooted, I guess). I've tried to delete the files with "adb -d shell" but (obviously) as ADB is not working, a "device not found" error showed up.
So I guess the question here is... What are my options ? Is there any way I can recover my photos and files ?
Thanks in advance!
Try going into recovery and using adb from there. Turn off the phone then turn it boot into the bootloader using volume down and power. Use the volume rockers to scroll and highlight Recovery mode, then use power to select it. Once in recovery press and hold power, then volume up to enter the menu. Then try "adb devices", and if the phone is recognized you can use what you want.
chromium96 said:
Try going into recovery and using adb from there. Turn off the phone then turn it boot into the bootloader using volume down and power. Use the volume rockers to scroll and highlight Recovery mode, then use power to select it. Once in recovery press and hold power, then volume up to enter the menu. Then try "adb devices", and if the phone is recognized you can use what you want.
Click to expand...
Click to collapse
Hi chromium96 !
That didn't work.. :S
Any other idea ?
Thanks for replying !
Flash a custom recovery and boot into it... I think custom recoveries support adb.. If USB debugging is ON and proper drivers are installed on your PC, you can do 'adb pull' for the necessary files
Sent from my Nexus 4 using Tapatalk 4
badhri said:
Flash a custom recovery and boot into it... I think custom recoveries support adb.. If USB debugging is ON and proper drivers are installed on your PC, you can do 'adb pull' for the necessary files
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
Is that going to delete all my information ?
Thanks !
AlejandroFloresV said:
Is that going to delete all my information ?
Thanks !
Click to expand...
Click to collapse
To flash the recovery you will need to unlock your bootloader which is meant to wipe all your data. However if you flash the recovery right after unlocking the bootloader (no reboot in between) the data should not get wiped.
chromium96 said:
To flash the recovery you will need to unlock your bootloader which is meant to wipe all your data. However if you flash the recovery right after unlocking the bootloader (no reboot in between) the data should not get wiped.
Click to expand...
Click to collapse
I don't know if that's true...
Sent from my Nexus 7 using Tapatalk 4
korockinout13 said:
I don't know if that's true...
Sent from my Nexus 7 using Tapatalk 4
Click to expand...
Click to collapse
It is true. Ive done it successfully on several n4's and its even been talked about a couple times on xda: http://forum.xda-developers.com/showthread.php?t=2266928
Yes.. I have done that too.. It doesn't wipe the data.. Just flash cwm, right after the boot loader unlock..
Sent from my Nexus 4 using Tapatalk 4

Help to restore the stuck screen of recovery mode

I have leeco lex820.
I don't know how......when I open its recovery mode i got stuck in a screen like this???
?Unmodified system partition
Swipe to allow modification?
But I can't swipe it......whole screen is stuck.......then I long press power button and restart the phone
Please help me to fix this
Heyyo, please ensure you are using latest TWRP build.
https://dl.twrp.me/x2/
Flash it via bootloader using a PC with command
fastboot flash recovery twrp-3.2.2-0-x2.img
Otherwise if you have root? You can use the flashify app to Flash it to recovery.
When i enter in fastboot mode.........I can't flash twrp file.
In CMD after giving commands of flashing...........it show something like
<Waiting for device>
That's how I can't flash file with pc
Also.....I know my phone is not rooted.....but in cpu-z app
It show root access (yes).......
Whenever i tried to root my phone......it need OEM unlocking option in developers mode.........leeco lex820 didn't have any option like oem.....so that's how I can't even root my phone can't flash any files.........I'm stuck
Please is there any method which can fix all that problems..............help me!
Gaurav singh898 said:
I have leeco lex820.
I don't know how......when I open its recovery mode i got stuck in a screen like this
Unmodified system partition
Swipe to allow modification
But I can't swipe it......whole screen is stuck.......then I long press power button and restart the phone
Please help me to fix this
Click to expand...
Click to collapse
Leaving recovery aside does your phone boot normally? If yes what ROM - stock or custom? Did you try another USB cable? Have you enabled developer options in the past when it was working normal?
kayyappan said:
Leaving recovery aside does your phone boot normally? If yes what ROM - stock or custom? Did you try another USB cable? Have you enabled developer options in the past when it was working normal?
Click to expand...
Click to collapse
Yes...it indeed boot normally.......Google pixel....custom rom........no I haven't try any other USB cable.........no
Gaurav singh898 said:
Yes...it indeed boot normally.......Google pixel....custom rom........no I haven't try any other USB cable.........no
Click to expand...
Click to collapse
Are you able to transfer files to and fro PC/Phone? If yes that eliminates the cable, port and the phone. If not, you can suspect cable or PC port or phone itself or a mix of them. But that does not still explain why you are not able to swipe on TWRP.
If you are able to xfer data between phone and PC the you can download TWRP recovery again and try. Newer version is 3.2.3.
kayyappan said:
Are you able to transfer files to and fro PC/Phone? If yes that eliminates the cable, port and the phone. If not, you can suspect cable or PC port or phone itself or a mix of them. But that does not still explain why you are not able to swipe on TWRP.
If you are able to xfer data between phone and PC the you can download TWRP recovery again and try. Newer version is 3.2.3.
Click to expand...
Click to collapse
I have newer version of twrp file.......but as I told without recovery mode or oem unlocking I can't flash it............

Bootloader gone

Hi, I've been using a Motorola Moto G6 Plus for quite a long time now. However, I can't figure out why it doesn't show any boot logo at startup, getting a black screen but a USB signal to my PC in fastboot mode (PC detects it at Fastboot evert S, which is good). Can anyone tell me or help me figure out why this phone isn't giving me boot logo's and fastboot?
First of all i wanna make clear that:
1. Can you reboot to system?
2. Can you reboot to recovery?
3. You have Root access in your phone?
Please consider answring.
ai.Sanaul said:
First of all i wanna make clear that:
1. Can you reboot to system?
2. Can you reboot to recovery?
3. You have Root access in your phone?
Please consider answring.
Click to expand...
Click to collapse
Yes, the system works as normal. It runs stock Android 9, not rooted. It doesn't have any recovery installed, and when I try to reboot to ADB, it gives the same black screen as the boot logo and bootloader. The screen is slightly lighting up, so I know it powers up, but it doesn't give the screen I want, the default bootloader screen.
DaHolyBlobfish said:
Yes, the system works as normal. It runs stock Android 9, not rooted. It doesn't have any recovery installed, and when I try to reboot to ADB, it gives the same black screen as the boot logo and bootloader. The screen is slightly lighting up, so I know it powers up, but it doesn't give the screen I want, the default bootloader screen.
Click to expand...
Click to collapse
OK, try flashing stock boot.img through Fastboot or TWRP, this should work.
ai.Sanaul said:
OK, try flashing stock boot.img through Fastboot or TWRP, this should work.
Click to expand...
Click to collapse
TWRP already isn't an option, and I don't know how to do it with fastboot. Could you guide me through that?
OK, so first of all i wanna make clear that you don't use this phone as primary phone because unlocking bootloader and Flashing have chances that your data might be erased, so BACK Up all of your DATA to a safe place before doing this.
If everything is set, Lets move ahead by unlocking your phone's bootloader and flashing. Watch this this tutorial:
Download boot.img file of your phone &
After that boot your phone in fastboot mode connect it to PC and, type this command in CMD fastboot flash boot (boot.img path)
Hope this helps!
ai.Sanaul said:
OK, so first of all i wanna make clear that you don't use this phone as primary phone because unlocking bootloader and Flashing have chances that your data might be erased, so BACK Up all of your DATA to a safe place before doing this.
If everything is set, Lets move ahead by unlocking your phone's bootloader and flashing. Watch this this tutorial:
Download boot.img file of your phone &
After that boot your phone in fastboot mode connect it to PC and, type this command in CMD fastboot flash boot (boot.img path)
Hope this helps!
Click to expand...
Click to collapse
I didn't read your message fully, so didn't back up my phone... Lucky me this isn't my primary phone and it didn't erase anything. It didn't help me though.
Edit: Now that I try booting into Android, it gives the same black screen as the bootloader and logo. I'm starting to think that it unfortunately erased my phone.
Maybe try flashing full stock?
Arealhooman said:
You said Orem unlocking isnt on? How about Adb debugging?
Click to expand...
Click to collapse
I unlocked the bootloader 2 years ago, and ADB is on, but idk if ADB works without android showing up on the screen
Arealhooman said:
Maybe try flashing full stock?
Click to expand...
Click to collapse
Let's try that. How do I flash that with fastboot or adb?
DaHolyBlobfish said:
I unlocked the bootloader 2 years ago, and ADB is on, but idk if ADB works without android showing up on the screen
Click to expand...
Click to collapse
It doesnt. You need a custom recovery or be booted or booting.
DaHolyBlobfish said:
Let's try that. How do I flash that with fastboot or adb?
Click to expand...
Click to collapse
watch this video tutorial (turn on auto translate captions)

can't see (blackscreen) ONLY in fastboot mode

i want to move to lineageos from the custom rom, but i have this problem, tried to google solutions in different ways but i can't find people with the same issue.
phone works fine otherwise, but when i have it completetly OFF and try to start it by holding power+voldown keys i go into fastboot (i can tell cuz if i dont touch it it stays on a black screen with lil to no light). and as soon as i press the power key (effectively choosing to do a reboot), it powers off and on and goes on to boot my old config.
btw i have enabled OEM and usb debugging. but i haven't got root access cuz it's my understanding that to get that i need to do some things to it in fastboot hooked up to a pc with ADB minimal.
any ideas?
hello there! I have the exactly same issue here.. Volume DOWN + Power goes to black screen....
However i could find out that it is, indeed entering in the fastboot as i was able to send commands and unlock the bootloader through the CMD.. But now i cannot get to install the TWRP (get some error). Did you solved it? anyone can help?
alexestanislau said:
hello there! I have the exactly same issue here.. Volume DOWN + Power goes to black screen....
However i could find out that it is, indeed entering in the fastboot as i was able to send commands and unlock the bootloader through the CMD.. But now i cannot get to install the TWRP (get some error). Did you solved it? anyone can help?
Click to expand...
Click to collapse
i just figured it out, what commands are u using to install twrp?
well, for anyone in the future wondering about this **** u gotta make sure the usb port in your pc is 2.0, a 3.0 will return failed access to the unlock data or the flash boot command for twrp
and u gotta use >fastboot flash boot ''twrp file name''.img
also, for this specific model evert or moto g6 plus if u using the lineage official release make sure the number after the mindthegapps file matches your version of android, i ****ed that up many times until i realized i was trying to install MTG 10 in android 13. what a ****head am i!
oh, and finally if u are in fastboot and can't see anything, the path to recovery (and hopefully twrp) is to press 2 times voldown and 1 time power
vesp9 said:
well, for anyone in the future wondering about this **** u gotta make sure the usb port in your pc is 2.0, a 3.0 will return failed access to the unlock data or the flash boot command for twrp
and u gotta use >fastboot flash boot ''twrp file name''.img
also, for this specific model evert or moto g6 plus if u using the lineage official release make sure the number after the mindthegapps file matches your version of android, i ****ed that up many times until i realized i was trying to install MTG 10 in android 13. what a ****head am i!
oh, and finally if u are in fastboot and can't see anything, the path to recovery (and hopefully twrp) is to press 2 times voldown and 1 time power
Click to expand...
Click to collapse
Also, in other topic they pointed out that some Moto G6 Plus have only ONE partition, so you cannot FLASH a recovery (because they dont have a partition for that).. you can ONLY boot on TWRP, if you Flash the TWRP on the partition you cant have a OS at same time..
vesp9 said:
well, for anyone in the future wondering about this **** u gotta make sure the usb port in your pc is 2.0, a 3.0 will return failed access to the unlock data or the flash boot command for twrp
and u gotta use >fastboot flash boot ''twrp file name''.img
also, for this specific model evert or moto g6 plus if u using the lineage official release make sure the number after the mindthegapps file matches your version of android, i ****ed that up many times until i realized i was trying to install MTG 10 in android 13. what a ****head am i!
oh, and finally if u are in fastboot and can't see anything, the path to recovery (and hopefully twrp) is to press 2 times voldown and 1 time power
Click to expand...
Click to collapse
Tried to do that, but stills black screen after 2 volume down plus power
alexestanislau said:
Tried to do that, but stills black screen after 2 volume down plus power
Click to expand...
Click to collapse
u want to enter twrp? make sure a copy of the file its on sd and do ''fastboot devices'' first to make sure connection is ok. then ''fastboot boot (twrp.img)''
changing twrp.img to the exact name of your file. on usb 2.0 or it won't work
vesp9 said:
well, for anyone in the future wondering about this **** u gotta make sure the usb port in your pc is 2.0, a 3.0 will return failed access to the unlock data or the flash boot command for twrp
and u gotta use >fastboot flash boot ''twrp file name''.img
also, for this specific model evert or moto g6 plus if u using the lineage official release make sure the number after the mindthegapps file matches your version of android, i ****ed that up many times until i realized i was trying to install MTG 10 in android 13. what a ****head am i!
oh, and finally if u are in fastboot and can't see anything, the path to recovery (and hopefully twrp) is to press 2 times voldown and 1 time power
Click to expand...
Click to collapse
I have the same issue.
After it boots into TWRP, the screen correctly display TWRP or is still black?
Tiki Thorsen said:
I have the same issue.
After it boots into TWRP, the screen correctly display TWRP or is still back?
Click to expand...
Click to collapse
it correctly displays TWRP, it's black just in fastboot.
u can use adb while in fastboot to order it to boot twrp, that's how i did it. or i guess u could hypothetically make it go into recovery mode (twrp if installed) by moving blindly using vol + or - but i'm not sure.
vesp9 said:
it correctly displays TWRP, it's black just in fastboot.
u can use adb while in fastboot to order it to boot twrp, that's how i did it. or i guess u could hypothetically make it go into recovery mode (twrp if installed) by moving blindly using vol + or - but i'm not sure.
Click to expand...
Click to collapse
Oh that's a relief! I was planing unlock the bootloader and flash LineageOS this weekend. I will report back how it goes.
Tiki Thorsen said:
Oh that's a relief! I was planing unlock the bootloader and flash LineageOS this weekend. I will report back how it goes.
Click to expand...
Click to collapse
remember to use usb 2.0 (not 3.0). this made me waste so much time
vesp9 said:
remember to use usb 2.0 (not 3.0). this made me waste so much time
Click to expand...
Click to collapse
Indeed, I struggle with that on my G7 Plus, cheers!
Update; After successfully unlocking the bootloader, I boot to the Pixel Experience recovery and the screen remains black.
But if I boot to TWRP, it does display it correctly.
Tiki Thorsen said:
Update; After successfully unlocking the bootloader, I boot to the Pixel Experience recovery and the screen remains black.
But if I boot to TWRP, it does display it correctly.
Click to expand...
Click to collapse
i'm guessing the pixel experience recovery is a custom recovery mode, right? maybe the black screen it's a thing with factory menus? idk
vesp9 said:
i'm guessing the pixel experience recovery is a custom recovery mode, right? maybe the black screen it's a thing with factory menus? idk
Click to expand...
Click to collapse
Yes, is just like the LineageOS recovery.
I always replace the Rom's recovery with TWRP in any case.

Categories

Resources