[Q] Removing encrypted L - Nexus 4 Q&A, Help & Troubleshooting

Hi, I've had CM11 for a while, and wanted to try preview L ROM.
The preview L ROM worked fine for the most part, but couldn't handle multiple Google accounts, and some apps I needed weren't ready I guess.
So I decided to flash back 4.4.4 (HCR-PRO R5.0 AOKP). The problem is I forgot that I've tried L's encryption. I wiped /system, /cache, and did factory reset.
Since the internal memory wasn't available, I've used adb sideload to flash radio 2.0.1701.03 and HCR-PRO ROM.
Now when I boot, I still get L's splash screen (with some weird flickering green vertical line) and it asks for password to decrypt data, which I have no idea about, because I used pattern, and which probably wouldn't work anyway because it's not for 4.4.4. Also, the recovery can't mount or wipe /data partition.
Now, I don't really need the encrypted data, I'm ok with losing it, but how to I just reset the whole thing, so I can load the new ROM?
Thanks,
Boris.
EDIT: welp, it looks like "fastboot erase userdata" helped, waiting for the splash screen for a long time now.
EDIT2: nope, just sits there on splash... and recovery still can't see /data
EDIT3: "fastboot -w erase userdata" was the right solution, RESOLVED

Related

[Q] [HELP] Can't boot into Android!

Hello guys, I am facing a major problem:
I have encrypted my N7 in the past, and now I replaced the faulty 3.34 bootloader with the 4.18 version. All went well, but for some reason my encryption password change so I can not go into recovery anymore. ( I have made sure that I did not mistype my old password )
Right now the only thing I have is Fastboot and a encrypted recovery. My question is: How to remove the encryption fully? I have tried:
- Re-locking and unlocking the bootloader (as it wypes all data) NO RESULT
Is there ANY way to remove the encryption from the fastboot menu?
Please and thank you
For anyone who is interested and facing the same problem: Flashing the stock rom via Fastboot worked.
Thread can be closed
SiemHermans said:
Is there ANY way to remove the encryption from the fastboot menu?
Click to expand...
Click to collapse
I would like to see a picture of a fastboot screen displaying any messages about encryption.
Are you sure you don't mean custom recovery or OS boot prompting about encryption passwords?
The OS concludes that the userdata partition is encrypted if it fails to mount it in the early boot - for any reason at all. This *could* be due to the fact that it actually was encrypted (as it apparently was in your case), but it could also be due to other failures such as a corrupted filesystem, hardware problems, etc.
BUT, if the tablet is otherwise working correctly, a "factory reset" (performed by a STOCK recovery, not a custom recovery) is supposed to be able to wipe & format userdata so that the "encryption" disappears. In this (successful) case the tablet would boot as if new; after all, the factory reset does not wipe whatever ROM was in the system partition.
The fact that you went through a lock/unlock step suggests that your bootloader (which version did the lock/unlock step?) should have already taken the correct action(s).
You can try this:
Code:
fastboot erase userdata
fastboot format userdata
to see if it makes any change in the behavior of the (custom?) recovery. (FYI the above procedure also fully wipes the SD card area, but I suppose you already know that)
I won't guarantee it will do anything, but it is worth a shot.
Also remember that if you have fastboot set up correctly you should be able to boot other recoveries without hard-flashing them to the tablet, e.g.
Code:
fastboot boot custom-recovery-image-file.img
You can use this if you suspect there is something wrong with your recovery, want to use a different version, etc.

Nexus 4 stuck on boot screen after update

Need some help.
I just sideloaded the 4.3 update to phone and now it's stuck on the 'X' loading screen.
My phone was rooted, but all stock (including the bootloader). I used the sideload ADB command and everything went fine, but the phone now won't boot.
How do I fix this?
did you data wipe(factory reset) before flashing?? if not, you have too.
I applied the OTA...didn't think I had to
Any idea on how I fix it now?
Really don't want to lose all my data
Install a custom recovery and wipe or apply factory image
favaroooo said:
Install a custom recovery and wipe or apply factory image
Click to expand...
Click to collapse
Is there a way I can fix it without wiping everything?
theprodigy85 said:
Is there a way I can fix it without wiping everything?
Click to expand...
Click to collapse
I do not think because you have to change recovery you must unlock the bootloader and unlock bootloader wipe the phone
theprodigy85 said:
Is there a way I can fix it without wiping everything?
Click to expand...
Click to collapse
no, its the data(and other stuff) causing it not to boot. same thing when flashing custom rom, you wipe when fkashing different roms. and going from android 4.2.2 to 4.3, theres many changes, enough to consider it a different rom.
Shoot...I should have done more research before doing this.
I did a factory reset through the stock bootloader...but it's still looping on the 'X' screen.
Can someone walk me through this or point me to a guide?
Bootloader is currently unlocked and I'm able to get into the factory recovery.
theprodigy85 said:
Shoot...I should have done more research before doing this.
I did a factory reset through the stock bootloader...but it's still looping on the 'X' screen.
Can someone walk me through this or point me to a guide?
Bootloader is currently unlocked and I'm able to get into the factory recovery.
Click to expand...
Click to collapse
are you flashing a zip or an img file??
simms22 said:
are you flashing a zip or an img file??
Click to expand...
Click to collapse
Initially, I flashed the OTA zip.
I'm okay with just restoring everything back to factory at this point...
Try to restore using the factory image
theprodigy85 said:
Initially, I flashed the OTA zip.
I'm okay with just restoring everything back to factory at this point...
Click to expand...
Click to collapse
yea, the zip youd want to wipe data/factory reset, then flash the rom. dirty flashing wont help since the changes are big enough.
theprodigy85 said:
Initially, I flashed the OTA zip.
I'm okay with just restoring everything back to factory at this point...
Click to expand...
Click to collapse
I bought my ole lady a Nexus 4 for Valentines day, anyway, today she got the OTA update and let it install the update. Now mind you she is 100% stock, adb debugging was not enabled, and her bootloader was still locked. (She would not let me touch her Nexus 4 lol) When the device rebooted it stuck on Android Upgrading finishing boot. So I said well let me see what I can do, this is what I did to fix it.
I use only Ubuntu so this may not work on windows i do not know. I Booted the device to the bootloader, connected it to my laptop via USB. I opened a terminal and typed in "sudo fastboot devices" and entered my password when promted and this gave me the device ID and fastboot letting me know fastboot was working. I then typed in "sudo fastboot reboot" and the device rebooted but was stuck on the bootanimation. I opened the internal storage up on my laptop in my file explorer and made a copy of her internal storage. Next I booted the device back into the bootloader then opened a terminal and typed in "sudo fastboot oem unlock" and the device gave me the unlock warning and the yes or no options. I selected yes so it would factory reset. After it did the factory reset the device reboot and booted to the setup welcome screen. Hope this helps others, also thanks to my good good friend Ljjehl for reminding me to use "sudo".
Edit: If you open the command promt with Administrative permissions in Windows this will work in Windows as well. Go to C:\Windows\System32\cmd.exe and right click on the cmd.exe file and select run as administrator. Then CD to the location with your fastboot.exe command. Thanks to another good friend TheBr0ken.
Thanks for the help...
I just ended up flashing each of the 4.3 components from the factory image. Just annoyed that I lost everything...
I'm stuck at the same screen. I received the OTA update, I didn't do anything special. My phone is unlocked and rooted (or WAS) but that was months ago, the rest is stock.
I think having encryption on my phone may have made it do this. I don't think Google anticipated doing the update properly for encrypted phones. Now I fear I've lost everything because even if I could connect, all data is encrypted...
similar problem
After starting to OTA update it was going smoothly, i was making breakfast, came back to find my screen at the "starting apps" screen frozen. The little circle that rotated wasnt doing anything so i left it there for awhile longer and still nothing. It would not move off that screen so i held power button down and restarted. now its stuck at the X screen also.
Yeah, I'm stuck there too. Already tried Factory Rest, didn't work. So what can I do?
I was on stock 4.2.2 and unrooted. I used the 'Google Services Framework' hack to force the 4.3 OTA update. The update downloaded successfully, phone restarted to apply the update and then restarted again. And now its stuck at the Google screen and keeps on restarting :crying:
I dont have the USB drivers installed on my PC too.
Same Problem
I have a nexus 4 (stock and unrooted),after 4.3 update,it is lagging during phone lock on/off (2 sec/5 sec).Hence I restarted my phone,and it stuck at "x" logo.Did clean data 3 times and then its working.
The problem is,in 2 days,I have experienced and done above thrice?
What could have gone wrong?
Hi guys,
I've just found how to correct this problem. All you have to do is to correctly wipe your phone before flashing factory image.
So :
Fastboot erase boot
Fastboot erase recovery
Fastboot format cache
Fastboot format system
Fastboot format userdata
I've just unbrick a n4 this way 15 minutes ago.
I have found the problem in recovery where you can see error log saying "cannot mount cache"
So formating correct the issue.
Hope it can help, fingers crossed.
Sent from my Galaxy Nexus using xda premium

Problem with Partition Table

Hi guys,
I'm experiencing a very big problem with a friend of mine's nexus 4. I've done the same thing in the same order with my phone (nexus 4 too) five minutes before and it worked.
We installed 4.4 stock rom downloaded from official google website via fastboot and all went well on my device. The problem was that we repeated the same identical procedure on my friend's nexus 4 and it went well except for the fact that the phone only had 5gbs available after the flash, so we red on the internet that we had to repeat the procedure using "fastboot -w update" instead of flashing every single file contained in the zip folder.
So it's now that borns the real problem. We've erased all partitions (fastboot erase cache, userdata, system, bla bla) and reflashed all. But from this point it stucks on android 4.4 loading logo.
We've tryied to repeat the operation and we've noticed that "fastboot erase bootloader" command answers with "Failed (remote: bootloader partition does not exist)". So we tryied to install cwm recovery and flash from sideload, it works and loads cyanogenmod logo but stucks on it again, tryied to flash everything possible and it works but after don't start.
The strange thing is that the bootloader appears to not exist but if i do the command: fastboot flash bootloader C:\...\bootloader.img it works and says "writing... OK" so i really don't know what could be the problem.
Please guys help us, my friend is on the point to sell his phone but we both are SURE that if it still can enter on recovery and on bootloader it could be restored!!! But we don't know why! Tryied every possible solution on the web, and nothing worked for now...
Thanks to all in advance!
Install the latest twrp recovery, enter it and go to the wipe menu, chose the format data option. Then give a rom a try.
meangreenie said:
Install the latest twrp recovery, enter it and go to the wipe menu, chose the format data option. Then give a rom a try.
Click to expand...
Click to collapse
Hi, thanks for the answer. Fortunately i've just resolved the problem. It worked after I wiped data from the STOCK recovery (it was the first thing i've done with the cwm several times but unsuccessfully). Now it works perfectly. Thanks again :victory:
fdm91xda said:
Hi, thanks for the answer. Fortunately i've just resolved the problem. It worked after I wiped data from the STOCK recovery (it was the first thing i've done with the cwm several times but unsuccessfully). Now it works perfectly. Thanks again :victory:
Click to expand...
Click to collapse
For future references. Most likely the reason why your phone didn't boot up is because you 'erase' a partition and left it unformatted. The 'erase' command wipe out the partition so no data is there and it can't access it. If you erase userdata, then there would be no accessible internal storage and the phone cannot boot.
Which is why after you erase it, you need to either flash something over it or format the partition to make it blank: fastboot format userdata (this is what Format DATA option in TWRP is).

Can't fix bootloop

Hello recently my phone battery went dead than after I charged it I got "optimizing apps" and it just couldn't finish. So then I did "flash stock and unroot" and now I'm stuck with bootloop. Wiping data with stock recovery didn't work, I've tried it many times.
Did you try using fastboot commands to erase userdata, flash userdata.img, and factory wipe before first booting the phone?
I think not, please tell me how to do that :$
Extract the userdata.img file from the stock Google ROM you are flashing.
Boot the phone into fastboot mode, connect the phone to the computer, type "fastboot erase userdata" and press enter. Then type "fastboot flash userdata userdata.img" and press enter. The userdata.img file should be in the same directory where you execute fastboot commands. When the flash has completed, use the volume and power button to go into recovery, wipe data, and reboot.
My PC doesn't even want to recognize my phone...
http://i.imgur.com/E7MYAKX.png
Is the phone in fastboot before it is connected to the computer?
Yeah, it is. Edit: I think I made a mistake because i wrote "adb devices" instead of "fastboot devices". Edit 2: Still stuck in bootloop. Somehow I managed to instal CM 12 but now I have infinite "starting apps".
It could be stuck because you need to flash the userdata.img file.
I have a similar issue here, Wiped, formatted, resized, reflashed bootloader, radio, recovery, system, userdata, cache. Tried stock lollipop, cm12, cm13, everytime each rom flashes successfully. However, upon loading the custom bootloader animation, it stucks there forever. This happens matters not that flash each partition individually, install the zip via TWRP, or ADB sideload. Is there a live boot/verbose option so I can see where it is hanging? I tried so many times it almost feel like it is a hardware issue.
After flashing each stock partition, including userdata.img, are you booting into stock recovery to perform a factory wipe before the first boot of the newly-flashed stock ROM?
audit13 said:
After flashing each stock partition, including userdata.img, are you booting into stock recovery to perform a factory wipe before the first boot of the newly-flashed stock ROM?
Click to expand...
Click to collapse
so I tried to enter recovery with stock 5.1, android with red ! pops up, but no "no command" line. I can't press volume up/power to enter recovery.. thought it is a fluke, I reflashed everything with 4.4.4 stock, same problem, cannot enter stock recovery. what am I missing here?
edit: dumb question, I held the button in wrong sequence, yes I factory wiped and still hangs on boot image
When you went into recovery, did you see an error line at the bottom that said something like invalid format or invalid argument? In recovery, did screen at the bottom say that the cache and data were formatted?
audit13 said:
When you went into recovery, did you see an error line at the bottom that said something like invalid format or invalid argument? In recovery, did screen at the bottom say that the cache and data were formatted?
Click to expand...
Click to collapse
enter recovery "fail to mount cache"
factory reset
"format system"
"format cache"
done
reboot----> hangs
That is what I was hoping to see but it's strange that the phone still hangs.
Maybe boot back into ft aboot be run the commands "fastboot erase cache", "fastboot erase userdata" and reboot.
audit13 said:
That is what I was hoping to see but it's strange that the phone still hangs.
Maybe boot back into ft aboot be run the commands "fastboot erase cache", "fastboot erase userdata" and reboot.
Click to expand...
Click to collapse
done, phone still hangs, do I just need go get another motherboard?
I'm out of ideas and another motherboard may be the only solution. You've done everything I would have done.
ddvche said:
done, phone still hangs, do I just need go get another motherboard?
Click to expand...
Click to collapse
FYI I took the unbootable motherboard out, swap it into a nexus with broken digitizer. Turned it on, and it booted.... so the fix wasn't replacing the motherboard... it was replacing everything else...... probably was a connection issue yes?
In post number 13, you formatted the system?
audit13 said:
In post number 13, you formatted the system?
Click to expand...
Click to collapse
Heh, I think I meant "internal storage"/"data" partition. If no OS it wouldn't hang, just reboot to recovery if I remember correctly.
After flashing stock KK or LP, are you also flashing userdata.img and then booting into stock recovery to format/wipe data before booting the ROM for the first time?

Help me fix my bootlooping N6P

While I was on vacation my N6P (Android 6.01 MTC20L) decided it was time to give me the bootloop of death - talk about timing!
I have a recent backup I made via Flashfire saved on my PC but I need to get my phone booted - at least temporarily.
As I said my phone is on 6.01, but the fix offered by @XCnathan32 (https://forum.xda-developers.com/nexus-6p/general/guide-fix-nexus-6p-bootloop-death-blod-t3640279) is for Nougat and above. So what are my options?
- Should I use fastboot to upgrade to Nougat or Oreo then apply the fix?
- How do I dirty flash N or O without losing my data?
- Any ideas on the heating notion? Some people have had their phones working using a blow/hair dryer..is it dangerous to heat the phone? Will any parts get damaged?
Any response would be useful to me, thanks!
boeder9 said:
While I was on vacation my N6P (Android 6.01 MTC20L) decided it was time to give me the bootloop of death - talk about timing!
I have a recent backup I made via Flashfire saved on my PC but I need to get my phone booted - at least temporarily.
As I said my phone is on 6.01, but the fix offered by @XCnathan32 (https://forum.xda-developers.com/nexus-6p/general/guide-fix-nexus-6p-bootloop-death-blod-t3640279) is for Nougat and above. So what are my options?
- Should I use fastboot to upgrade to Nougat or Oreo then apply the fix?
- How do I dirty flash N or O without losing my data?
- Any ideas on the heating notion? Some people have had their phones working using a blow/hair dryer..is it dangerous to heat the phone? Will any parts get damaged? Any response would be useful to me, thanks!
Click to expand...
Click to collapse
More information would be useful to determine whether you really have BLOD or just bootlooping. What were you doing when it bootlooped? Was it just spontaneous? Are you able to access stock recovery or TWRP? Do you have a stable fastboot mode? If so, two options to try would be to use ADB to update using a newer version full OTA (eg. 7.0.0 (NRD90T)) or flash a full image (not OTA) with flash-all.bat, removing the -w (wipe) switch. Both of these methods will leave your data intact. If you don't have access to recovery mode (bootloops on selecting) or an unstable fastboot mode, then you are pretty much left with the hairdryer.
v12xke said:
More information would be useful to determine whether you really have BLOD or just bootlooping. What were you doing when it bootlooped? Was it just spontaneous? Are you able to access stock recovery or TWRP? Do you have a stable fastboot mode? If so, two options to try would be to use ADB to update using a newer version full OTA (eg. 7.0.0 (NRD90T)) or flash a full image (not OTA) with flash-all.bat, removing the -w (wipe) switch. Both of these methods will leave your data intact. If you don't have access to recovery mode (bootloops on selecting) or an unstable fastboot mode, then you are pretty much left with the hairdryer.
Click to expand...
Click to collapse
Thanks for the response.
- Phone was idle for a few moments thats when the bootlooping started.
- I was rooted (bootloader unlocked) with TWRP, I am unable to access it, takes me to the bootloop again
- What do you mean by stable fastboot. I can get to the fastboot mode by power button, volume down, remains there (if that's what you mean?)
boeder9 said:
Thanks for the response.
- Phone was idle for a few moments thats when the bootlooping started.
- I was rooted (bootloader unlocked) with TWRP, I am unable to access it, takes me to the bootloop again
- What do you mean by stable fastboot. I can get to the fastboot mode by power button, volume down, remains there (if that's what you mean?)
Click to expand...
Click to collapse
No access to Recovery mode is one hallmark of the BLOD. Without Recovery you have no ADB, even if it was enabled previously. Stable fastboot mode means you can actually flash something successfully and it completes before bootlooping again. Many people who are unlocked can start flashing, but it won't finish -or- flashing completes successfully, but the phone never boots up. Try the following: fastboot format your system, userdata, and cache and observe for errors. Do these 3 complete successfully? Next, fastboot FLASH the latest TWRP to your recovery partition.... errors? Try fastboot BOOT the same in an effort to get a working Recovery where you have some additional tools. If these fail, you are looking at either RMA if eligible or replacing the phone.
fastboot format system
fastboot format userdata
fastboot format cache
v12xke said:
No access to Recovery mode is one hallmark of the BLOD. Without Recovery you have no ADB, even if it was enabled previously. Stable fastboot mode means you can actually flash something successfully and it completes before bootlooping again. Many people who are unlocked can start flashing, but it won't finish -or- flashing completes successfully, but the phone never boots up. Try the following: fastboot format your system, userdata, and cache and observe for errors. Do these 3 complete successfully? Next, fastboot FLASH the latest TWRP to your recovery partition.... errors? Try fastboot BOOT the same in an effort to get a working Recovery where you have some additional tools. If these fail, you are looking at either RMA if eligible or replacing the phone.
fastboot format system
fastboot format userdata
fastboot format cache
Click to expand...
Click to collapse
Do these commands (espec system and userdata) erase my data and app data/personal files?
Ill try these and get back
boeder9 said:
Do these commands (espec system and userdata) erase my data and app data/personal files? Ill try these and get back
Click to expand...
Click to collapse
Formatting userdata will, but you won't be saving anything if you can't access recovery. If you like, try formatting system and cache first. Look for errors. Then try fastboot flashing or fastboot booting TWRP. The action of formatting each partition will tell you if there is a problem with the internal memory, and correct it (if possible).
v12xke said:
Formatting userdata will, but you won't be saving anything if you can't access recovery. If you like, try formatting system and cache first. Look for errors. Then try fastboot flashing or fastboot booting TWRP. The action of formatting each partition will tell you if there is a problem with the internal memory, and correct it (if possible).
Click to expand...
Click to collapse
OK so I did fastboot format cache, finished fine (see attached)
Haven't done format system, is it safe? what will the system formatting erase?
As for TWRP do you mean fastboot flash recovery twrp.img?
EDIT: after the cache format I'm getting 1-2 red LED flashes before each bootloop, is this the battery being down? If I turn off the device, hook up the charger it shows a full battery with electricity charge sign and phone boots again to bootloop.
boeder9 said:
OK so I did fastboot format cache, finished fine (see attached)
Haven't done format system, is it safe? what will the system formatting erase?
As for TWRP do you mean fastboot flash recovery twrp.img?
EDIT: after the cache format I'm getting 1-2 red LED flashes before each bootloop, is this the battery being down? If I turn off the device, hook up the charger it shows a full battery with electricity charge sign and phone boots again to bootloop.
Click to expand...
Click to collapse
System is a read only partition. Formatting it will not cause any data loss of yours, but will temporarily render the phone not bootable... BUT It can easily be restored via fastboot from any factory image. You just extract and flash the system image back to the system partition. Userdata is your personal data. When you format that partition your personal data will be gone. You did mention you had a FF backup so I'm guessing that was on the backup.
Yes on flashing TWRP. If after FLASHING twrp you cannot access Recovery, then try BOOTING recovery- fastboot boot recovery twrp.img
If you get to a point where nothing is working and you decide to format system and userdata and they complete successfully, you can flash a full Google image using flash-all.bat
Not sure about the LED's but just make sure your battery is close to fully charged. You didn't ever mention an battery issue, so there shouldn't be one. If in doubt hook the charger up and let it sit before proceeding.
@v12xke
Thank you for all your help. I left the phone on charge and let it bootloop for a good period of time and went out, came back and it was booted. I disabled the big clusters as suggested by @nicotinic in ElementalX and the device appears to be working fine aside from a little lag. I can live with that
Currently doing a little ADB pull, then will clear some space for a full nandroid backup!
Thanks a bunch to you both.

Categories

Resources