Unable to Flash New ROM, Recovery, etc. - Nexus 4 Q&A, Help & Troubleshooting

So, as you're all well aware, Android 4.4 AOSP was released by Paranoid Android. I thought I'd give it a try. I've bumped into a problem though. If you've seen the news, you've also seen it won't flash with TWRP. So you need CWM. Well, I'm stuck with this. Using both traditional ADB and the Nexus Root Toolkit by Wug Fresh, I've attempted everything from flashing CWM to setting the phone back to stock. Whenever it gets to the point of asking me to go into TWRP and flash perm_recovery"xxxx".zip in the !ReadyToFlash! folder, it's not there. When I manually put this .zip in the root and flash it through TWRP, nothing happens after reboot. I've correctly configured USB Debugging, made sure MTP was turned off, all of that. Made sure nothing was encrypted. I'm completely stumped as to how I could fix this. It's like TWRP is literally taking over my phone.

dont use toolkits. you can flash kernels using fastboot, or the flashify app. btw, i posted a thread in the general section with the multirom modified twrp recovery, which work for flashing kitkat.

Thanks. I'll check it out. I managed to finally get the standard recovery back through spamming it. I think I'm going to stick with CWM from now on.

Related

Recovery Woes

Hi all,
So coming from a Samsung craptivate, Im having a little bit of trouble flashing CM 6.1.1 on my new N1
so far starting from stock I have
- Unlocked the bootloader
- used fastboot to flash the latest clockworkmod
now I am trying to boot into recovery to flash the CM zip on my SD and I keep getting to a screen with the android guy and an exclamation point, and have to do a battery pull to reboot, I have tried using adb and 3 button combo to get into clockwork,
so, what idiotic thing am I doing wrong?
You're booting in between installing the recovery and booting into recovery.
There are two files that restore the stock recovery upon a system boot (which is what you are seeing). If you go straight to recovery after flashing, the stock recovery won't be restored, then you can install a custom ROM.
The two files are missing from custom ROMs, so you won't have this problem again.
Typically, people remove these files once they have root access, but since you don't have root yet, that isn't an option...
Sent from my Nexus One using XDA App
thanks very much for your help, got it working
Reading the Wiki guides for installing recovery should have solved your question before you wrote it.

[Q] Soft bricked phone, encryption key required even after full format

I wanted to update from Cyanogenmod 10.1 to Google Edition 4.3, so I booted into recovery. I had enabled device encryption prior to this, and decided it isn't worth the hassle to me. So I decided to format the phone (I had backups of everything, but no NANDroid!). The formatting went well, there was no ROM to boot into anymore.
I had to use ADB to push the ROM onto the device, which I then flashed successfully. When I booted up, I was asked for my encryption password. The old key didn't work anymore. I was locked out of the ROM.
I looked into using ODIN to flash stock to remove encryption, but ODIN never connected to the device and I don't like this route because I'd have to root and get a recovery again. I tried Heimdall, but even when I installed C++ 2013 redist it wouldn't run, and again I don't like this idea but would do it if I had to.
How can I remove device encryption through ADB and recovery? I won't be able to boot up until I remove whatever files indicate that the device is "encrypted" and re-flash a ROM. My recovery is TWRP 2.600.
Dadasas said:
I wanted to update from Cyanogenmod 10.1 to Google Edition 4.3, so I booted into recovery. I had enabled device encryption prior to this, and decided it isn't worth the hassle to me. So I decided to format the phone (I had backups of everything, but no NANDroid!). The formatting went well, there was no ROM to boot into anymore.
I had to use ADB to push the ROM onto the device, which I then flashed successfully. When I booted up, I was asked for my encryption password. The old key didn't work anymore. I was locked out of the ROM.
I looked into using ODIN to flash stock to remove encryption, but ODIN never connected to the device and I don't like this route because I'd have to root and get a recovery again. I tried Heimdall, but even when I installed C++ 2013 redist it wouldn't run, and again I don't like this idea but would do it if I had to.
How can I remove device encryption through ADB and recovery? I won't be able to boot up until I remove whatever files indicate that the device is "encrypted" and re-flash a ROM. My recovery is TWRP 2.600.
Click to expand...
Click to collapse
Did you ever find an answer to this? I am in the same boat right now.
stpark6985 said:
Did you ever find an answer to this? I am in the same boat right now.
Click to expand...
Click to collapse
Have either of you found a solution, i have the same problem right now. i even tried flashing stock with odin but it is still asking for the DevicePolicyManager password.
Not sure if it's still a relevant question, but here's an answer for you:
I had an issue like this, only I didn't enable encryption by choice, it just turned on automatically (I think I had a bad app). Anyway, on reboot, it said Encryption failed, try a factory reset in recovery and go again. No avail, so I ended up having to re-flash to stock. I grabbed my old MG1 install, flashed though Odin, and ended up working. That night, I flashed a bad modem and effed myself over again, so I re-downloaded and re-flashed (using my mac and Heimdall) to get it back to stock that way. Heimdall command-line is the way to go, if you ask me. You can flash each and every partition manually until you find the one that is broken, and away you go.
The information I used was in THIS THREAD. Just use your TAR file and flash away.

[Q] E:failed to mount /sdcard

Having some issues getting a recovery to be flashed on this new device, I am not use to a phone that when rooted doesn't have some stock recovery that actually works. And by that I mean, allows me to install zip from file. All I get is the option to reboot, flash from adb, install from external, wipe factory reset, wipe cache, and install from cache.
Sorry if this has been asked a few times before, but with my searching I didn't find any one answer that solved my problem. Tried flashing a recovery via odin but it said Auth fail for the recovery. Going to try a few other things and see what I can come up with.
Thanks in advanced!
What recovery are you trying to flash? I believe the closet thing we have to a custom recovery is safestrap. Is that what your trying to install?
Ysosrslawl said:
Having some issues getting a recovery to be flashed on this new device, I am not use to a phone that when rooted doesn't have some stock recovery that actually works. And by that I mean, allows me to install zip from file. All I get is the option to reboot, flash from adb, install from external, wipe factory reset, wipe cache, and install from cache.
Sorry if this has been asked a few times before, but with my searching I didn't find any one answer that solved my problem. Tried flashing a recovery via odin but it said Auth fail for the recovery. Going to try a few other things and see what I can come up with.
Thanks in advanced!
Click to expand...
Click to collapse
It sounds like you flashed philz touch recovery witch will not work with the VZW S5 you need to flash SafeStrap Recovery. You might need to Odin back to stock and re root your device to get it back to normal first.
chrisbass said:
What recovery are you trying to flash? I believe the closet thing we have to a custom recovery is safestrap. Is that what your trying to install?
Click to expand...
Click to collapse
I didn't flash anything when I first started rooting the phone I just used towelroot, then when the OTA messed it up I went and did the NCG to NE9 method using odin and towelroot. But every time I went into recovery, it has been the same. It wasn't until I used the toolkit from the forums that installed safestrap and busybox did I actually get a different recovery, but even if I reboot into recovery it still takes me to the stock one first and then on reboot i can access safestrap.
Yes, that's how safestrap works, through a process called "bootstrapping". It never replaces your stock recovery so when you boot into recovery it'll always be stock but upon boot you'll be presented with the safestrap option.....totally normal
On another note, my Supersu binaries wont update so I'm going back to stock anyway. I think I may leave it at stock for a while until I see some more ROMs come out.
Ysosrslawl said:
On another note, my Supersu binaries wont update so I'm going back to stock anyway. I think I may leave it at stock for a while until I see some more ROMs come out.
Click to expand...
Click to collapse
Your other option is what I have done. I first went the safestrap route but installed rom on rom slot before finding out about the bugz in safestrap. So I odined back to stock. Instead of installing something with bugz in it I rooted, installed supersu and Xposed framework with some modules. Wanam module gives you most of the customizations found in custom roms. Tons of other modules for pretty much anything you want to tweak. Works like a champ on stock system.

Flashing another ROM turned into some bigger problem

Hi guys, the times has come for me to open up my own account - I screwed up. I hope this is the right sub forum and apologize if it is not.
LG G2 Germany, formerly: TWRP recovery, Paranoid Android 5.1.1
Loved the rom but there were some issues like the screen turning off and on randomly, wouldn't accept pin right away, so I decided to go for CM 12.1.
Booted into recovery, factory wiped, tried to flash the .zip, but neither the rom nor the gapps would even begin to flash. It just said error.
Went crazy, tried some other CM versions, none of them worked. I've never had this issue before, when I flashed PA it all went just peachy.
Went even crazier and I can't really remember what I did in my panic spiral, but I somehow ended up with a soft-bricked phone. Managed to re-install the LG firmware .kdz, however, only the 4.2 one worked (4.4 gave me a bootloop.)
Now, getting this bad boy rooted and ready to flash custom roms is somewhat of a problem. I managed to get it into recovery though (after some issues with the recovery image), but flashing CM still won't work. Same error as before. I think there may be something wrong with the recovery image. I still had the image .apk from the first time I rooted my phone (also with 4.2) and it worked just fine so I figured I'd just use it again and do it like I did it last time. However, I am able to get into recovery mode. I've tried ClockworkMod and TWRP, but as a result of my panicking, it's just really a big ol' mess right now. I hope I've included all the info needed.
Please help, I'm actually lost.
Are you flashing the latest TWRP which is 2.8.7.1?
http://blastagator.ddns.net/twrp.html
Hey, thanks for replying. At the moment it only boots into recovery, unfortunately. ADB does not work, even after re-installing the usb drivers. My computer recognizes the device now though, but I can't get any files onto that thing at the moment.
Edit: It's not the latest TWRP
If you install the latest TWRP, you may be able to boot into TWRP and copy over a ROM to flash.

Lack of recovery

Hey guys, I'm a longtime XDA browser but hardly ever post. I have the MXPE rooted with the newest TWRP build and has been running great since I got it. last night flashed the Deodexed 6.0 build from AICPs 5.1.1. I had some issues with the SD card being mounted as internal storage and erasing something so I tried to flash back to stock as my nandroids weren't seen as usable.
Long story short when I flashed back to stock, the recovery would never take. I've flashed the stock recovery and twrp to no avail. For some reason it wont actually stick. Everything else is back to stock but that. When I used the win toolkit and tried to flash twrp again it said something about the folder locations so I'm wondering if I messed something in the partitions.
Question is, have you guys ran into this issue or have any insight on where to go from here? I've looked around but I couldn't find a post that the same as this issue. As a side note, I can get into the bootloader just fine.
I appreciate any info that someone can provide.
Flash twrp. Reboot back to recovery from recovery. Reboot system.
Hopefully it's that easy. Stock os flashes stock recovery on boot. Rebooting recovery from recovery prevents that from happening.
From TWRP:
"Note many devices will replace your custom recovery automatically during first boot.... Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install."
mxpe 6.0
Thanks for the info ffejy462. What happens when I try to flash TWRP and it doesnt stick? I know for a fact that I can boot into it temporarily with fastboot boot and the recovery file. Should I just flash it from there?
THEFILLTER said:
Thanks for the info ffejy462. What happens when I try to flash TWRP and it doesnt stick? I know for a fact that I can boot into it temporarily with fastboot boot and the recovery file. Should I just flash it from there?
Click to expand...
Click to collapse
I'm sorry I didn't see this sooner. Flash recovery with fastboot. Boot into recovery. From reboot menu in recovery, select reboot recovery. Twrp will patch so recovery isn't lost again.
mxpe 6.0
That did it. thanks alot ffejy462!

Categories

Resources