So i Have the nexus 5 d820
it was rooted and had twrp installed with the nexus toolkit
for whatever reason, when i went to factory reset it so i could sell it, it clears the system partition (/system). When i try to boot up it hangs on the android loading screen. You dont wanna know how long it took me to figure out it wasnt restoring/was deleting the system partition.
I have another nexus, and i copied the system folder and pushed the system folder to the broken phone, and it boots up fine like new.
For safe measure I went to factory reset it (this time with stock recovery), and same thing, it deletes/wont restore the system folder., and it hangs on the android loading screen.
I've gone through the folders and everything seems to all match between the working and nonworking nexus, save for the system folder issue.
Any ideas?
If you want to factory reset your phone why not simply adb sideload a factory image straight from google?? :
https://developers.google.com/android/nexus/ota
You could flash the stock factory images that will remove TWRP, root and all that stuff. It will restore your phone to almost not modified state. https://developers.google.com/android/nexus/images Just downalod image for N5, boot your phone into fastboot and on pc launch the FLASH ALL.bat file. It will fo all magic for you
If the phone still hangs, flash the userdata.img file and perform a factory reset in stock recovery.
aciupapa said:
You could flash the stock factory images that will remove TWRP, root and all that stuff. It will restore your phone to almost not modified state. https://developers.google.com/android/nexus/images Just downalod image for N5, boot your phone into fastboot and on pc launch the FLASH ALL.bat file. It will fo all magic for you
Click to expand...
Click to collapse
Tried that. Well, I used the nexus toolkit to flash all stock and remove twrp, same thing clears the system. I even downloaded off google the official image and manually flashed with no luck. When I flash even the official images, system folder still doesn't show up.
Related
I installed the CM11 and while installing other apps and trying them out I must have broken something because it can't see the usb flash drives and when I install a 3rd party app for that it still can't see what's ON the drives.
I need to go back to stock.
I've tried the recovery method.
I downloaded the factory firmware.
Put the update.zip on the internal sdcards dload folder.
I put TWRP recovery on it wiped the data, dalvik, cache, factory reset and system.
Then rebooted into fastboot bootloader and reinstalled the stock recovery.
Then rebooted into recovery.
And it locks up with nothing on screen.
I've tried it a couple different ways of wiping and a couple of other factory type firmwares.
Nothing works that way.
How can I restore the factory firmware using the "fastboot flash" method and not the "fastboot update" metho
My phone randomly decided to bootloop today and the only thing I can get to is fastboot.
I flashed the stock 5.0.1 system, boot, recovery, bootloader, cache, and radio (everything except userdata) to it but it still won't boot.
I can't even get into recovery. It doesn't appear to be the powerbutton because I could stay in fastboot mode long enough to flash everything.
You can "fastboot flash", but can you fastboot restore or backup?
LG is going to try and fix the phone free, but I'd like to try and backup my data beforehand.
I'm considering flash userdata, but I'd like to back it up first.
Edit: Started putting my phone back together and somehow seems to be fixed for this boot. I'm scared to reboot, so I'm backing up everything with Titanium Backup right now and transferring it to my PC, then I'm going to do a nandroid backup if possible.
Basically, my wife's phone was constantly rebooting. I had heard of power button issues so I tried to open the phone to fix that. After fiddling around with the button the problem persisted. I read somewhere that wiping the cache would help so I prepared to do that.
As I was waiting for the cache to wipe... the phone reboot again. It now does not boot (sits on the boot screen after the Google logo goes away) and says invalid argument when I try to wipe the cache.
According to this post, flashing the cache.img will fix the corrupt cache and allow me to wipe it.
Unfortunately my wife's phone has not been backed up, nor has the bootloader been unlocked. Is there ANY way to backup/retrieve files before unlocking the bootloader so I can fix the cache corruption issue? She has stock recovery, running lollipop.
Would really appreciate help in this matter, the pictures on her phone are from a year of travelling (not my best idea to leave them on her phone...but I digress).
If your phone keeps rebooting, and bootloader is LOCKED, its going to be hard to do anything to recover user data.
Having said that,
If you had ADB debug enabled before this disaster, you could try to ADB Sidleoad the Nexus 5 Lollipop OTA zip from stock recovery.
Then you data would remain intact.
Best of luck
Artorias90 said:
Basically, my wife's phone was constantly rebooting. I had heard of power button issues so I tried to open the phone to fix that. After fiddling around with the button the problem persisted. I read somewhere that wiping the cache would help so I prepared to do that.
As I was waiting for the cache to wipe... the phone reboot again. It now does not boot (sits on the boot screen after the Google logo goes away) and says invalid argument when I try to wipe the cache.
According to this post, flashing the cache.img will fix the corrupt cache and allow me to wipe it.
Unfortunately my wife's phone has not been backed up, nor has the bootloader been unlocked. Is there ANY way to backup/retrieve files before unlocking the bootloader so I can fix the cache corruption issue? She has stock recovery, running lollipop.
Would really appreciate help in this matter, the pictures on her phone are from a year of travelling (not my best idea to leave them on her phone...but I digress).
Click to expand...
Click to collapse
Contact me on hangouts/email: [email protected]
I can flash custom recovery without unlocking bootloader or wipe. If the /data partition didnt get corrupted we could recover the files.
Sent from my Nexus 5 using XDA Free mobile app
Has my brain gone broken? I thought you could fastboot stock img files without unlocking the bootloader?
Ben36 said:
Has my brain gone broken? I thought you could fastboot stock img files without unlocking the bootloader?
Click to expand...
Click to collapse
You can try that too.
What version of Android did you have on the phone?
In order to flash factory images, you’ll need to have the Android SDK HERE
Then you need to download the same version of Hammerhead Factory Image
you have been running on her phone HERE
Extract the correct Hammerhead Factory Image using 7zip or other extractor tool.
Then copy the cache.img from the extraction to the SDK/platform-tools folder.
From within your platform-tools folder, open a command prompt.
I'd recommend wiping the partition before flash.
-First type the following command
fastboot erase cache
-Then type the following command
fastboot flash cache cache.img
Plenty of tutorials in the sticky's if you need to learn more .
Best of luck
I got a nexus 5 off of eBay, the seller said he had tried to root it and failed so I thought I would have a crack at it.
I thought it would be an easy restore but I ran into a few problems:
Phone originally came with 6.0.1 installed.
On android 5+ I could not access the standard recovery screen, and when I pressed power+volUp it just said formatting /data and would not move from that.
Rolled back to 4.4 and I got into the ususal recovery screen.
Tried to do a factory reset, but it again stuck at formatting /data.
I left it the entire night while I slept and it was still saying formatting /data. in the morning, nothing had changed.
Trying to boot the phone normally just left it on the 4 startup screen.
I've tried doing a full flash of stock android with each seperate part manually.
Also /data is unable to be mounted in any custom recovery, like it is corrupted or locked somehow.
With the stock recovery, it cannot be detected by adb, but in cwm it can.
EDIT: checking the /data folder in adb shell shows it's completely empty, and the same with system even after flashing and flashing again.
Can anyone advise me as to what might be the problem here?
Reflash all partitions manually, including userdata.img file. After flashing the last partition, boot directly into stock recovery and perform a factory wipe, then reboot.
Done that multiple times, I get the same result on stock android.
I don't want to root or anything like that right now, just get it back to a working state.
So you flashed the userdata.img file?
audit13 said:
So you flashed the userdata.img file?
Click to expand...
Click to collapse
yes multiple times
If you flashed userdata.img multiple times and the phone still can't perform a factory reset, the emmc chip may be damaged.
So I've been having weird battery and stability issues ever since I rooted my phone and I'm chalking it up to maybe just a bad run. So planning on factory resetting it and hoping it solves the issue. Problem is, every time I go into the phone's settings and choose the full reset, it just reboots into TWRP. Rebooting back to system and I see nothing's been deleted. I've also tried doing a factory reset in TWRP as well, but that then lands me in this weird spot where it boots to some kind of default lock screen and asks for my password. If I give it my old password, it just goes straight to a home screen and completely skips setup (looks like some sort of preset placeholder desktop that you usually see when first installing a custom rom).
I'm currently on OOS 10.01. Any idea on how I can get a full factory reset without having to reflash the entire OS?
Flash the stock boot image. Then reroot after the reset.
tech_head said:
Flash the stock boot image. Then reroot after the reset.
Click to expand...
Click to collapse
Thanks, that did the trick! No idea what happened to my boot.img that could have caused it, but the reset seems to have solved all the stability issues as well.
This is why before I do anything, I grab the stock boot image.
magisk and TWRP only modify the boot image. As long as you have the sock image, there is no need to panic or do a full wipe to recover.
when you do a factory reset it deletes info from data partition which has some files for magisk, if you just open magisk it will ask you to install some files and reboot and you should have root back.