[Q] Recovery Question/Trouble Rooting - Nexus 4 Q&A, Help & Troubleshooting

Yesterday I tried to root my nexus 4 and I followed a tutorial. I unlocked the bootloader and was able to flash twrp 2.6.3.0 custom recovery. However, I forgot to factory reset my device before flashing the recovery. When I got to the twrp screen it asked me for my password. I entered the one for my device but I couldn't get in. I entered it in a couple more times, but still it wasn't unlocking. I pressed the back button and I randomly got into the recovery. From there I continued the rooting process but when I tried to wipe cache or dalviks cahce it always said that It failed (never got to the point of flashing SuperSU). I then tried to wipe the system but I stilled got the failed message.I had no choice but to exit out of twrp and turn off my device and when I did, I got stuck at the nexus logo. I was able to get my device back to stock and I want to root my device but I'm not sure what went wrong. Should I try using twrp 2.6.0.0 because a lot of guides I followed used that custom recovery. Also, if I use and old recovery will I be able to update it later? I also followed this guide : http://forum.xda-developers.com/showpost.php?p=41291371&postcount=28 so I wouldn't lose my data. I tried including as much info as possible so sorry if I wrote too much.

neogamma said:
Yesterday I tried to root my nexus 4 and I followed a tutorial. I unlocked the bootloader and was able to flash twrp 2.6.3.0 custom recovery. However, I forgot to factory reset my device before flashing the recovery. When I got to the twrp screen it asked me for my password. I entered the one for my device but I couldn't get in. I entered it in a couple more times, but still it wasn't unlocking. I pressed the back button and I randomly got into the recovery. From there I continued the rooting process but when I tried to wipe cache or dalviks cahce it always said that It failed (never got to the point of flashing SuperSU). I then tried to wipe the system but I stilled got the failed message.I had no choice but to exit out of twrp and turn off my device and when I did, I got stuck at the nexus logo. I was able to get my device back to stock and I want to root my device but I'm not sure what went wrong. Should I try using twrp 2.6.0.0 because a lot of guides I followed used that custom recovery. Also, if I use and old recovery will I be able to update it later? I also followed this guide : http://forum.xda-developers.com/showpost.php?p=41291371&postcount=28 so I wouldn't lose my data. I tried including as much info as possible so sorry if I wrote too much.
Click to expand...
Click to collapse
Hey man,
I followed this guide. I flashed CWM instead of TWRP.
http://forum.xda-developers.com/showthread.php?t=2018179
Here is the version of Recovery I flashed:
http://download2.clockworkmod.com/recoveries/recovery-clockwork-touch-6.0.3.6-mako.img
Here is the version of SU I flashed:
http://download.chainfire.eu/351/SuperSU/UPDATE-SuperSU-v1.65.zip
Then I just followed the instructions on that post and everything seemed to work well for me

Related

[Q] TWRP nor CWM will successfully wipe/format data

First, I searched and read all relevant threads concerning this issue. The five threads that showed up in the search did not help me solve my issue.
So on to my problem. I can no longer flash any rom onto my device. I attempted to flash the first official CM10 nightly (which I recently found out was not flashing properly for others) and had no success. I simply got a black screen and nothing more. I eventually got back into TWRP (v2.2.1.4) to try and Nandroid restore, but I noticed that /data was not formatting and the restore failed. Every time I would slide the bar across to confirm the restore TWRP would reboot itself. I then flashed CWM (v6.0.1.0) and the same problems were there. After that I flashed an earlier version of TWRP and successfully restored the backup. I'm not 100% sure how it was successful. So I decided to try flashing another ROM and no go. Same problems. Anyone have any ideas? When I was using CWM I got the error message below.
Code:
E: unable to locate volume information
E: unable to open ums lunfile '/sys/devices/platform/usb_mass_storage/lun0/file'
E: unable to format data
I'm running Bugless Beast with Motley #219
I'm having similar, if not identical problems. After flashing TWRP 2.2.1.4, I tried flashing a rom and gapps; the tablet would boot endlessly into recovery. Nothing I did would do anything, so I flashed the stock image to start over. This time, I used CWM 6.0.1.0 touch to make sure that it wasn't the recovery that was causing the problem. However, now after flashing the rom and gapps, instead of booting into recovery, I got stuck at a black screen and had to hold the power button in order to get back to the bootloader.
Now, like you, it seems I can't flash any roms anymore. It's frustrating to say the least.
Sent from my Galaxy Nexus using xda app-developers app
aznxk3vi17 said:
I'm having similar, if not identical problems. After flashing TWRP 2.2.1.4, I tried flashing a rom and gapps; the tablet would boot endlessly into recovery. Nothing I did would do anything, so I flashed the stock image to start over. This time, I used CWM 6.0.1.0 touch to make sure that it wasn't the recovery that was causing the problem. However, now after flashing the rom and gapps, instead of booting into recovery, I got stuck at a black screen and had to hold the power button in order to get back to the bootloader.
Now, like you, it seems I can't flash any roms anymore. It's frustrating to say the least.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
What rom did you attempt to flash?
elementur said:
What rom did you attempt to flash?
Click to expand...
Click to collapse
So do I.I attempted to flash the first official CM10 8.18 nightly and had no success. I just got a black screen.Even more I boot into bootloader and choose to boot into recover but just stay at google logo.I try to flash recover once more,but just can't boot into recover!!
I have the same problem, i flashed the cm10 nightly which I learned would not boot. No I have no backup to boot to, and cannot even push a new rom to the storage to try to install.
Shano56 said:
I have the same problem, i flashed the cm10 nightly which I learned would not boot. No I have no backup to boot to, and cannot even push a new rom to the storage to try to install.
Click to expand...
Click to collapse
Can't boot into recover,does anyone know what is wrong?When it is in android I can use APM boot into recover or via ADB,but unusually when it is in the bootloader I choose to boot into recover,it just stay at google logo!!What it is going wrong?
phiracle said:
Can't boot into recover,does anyone know what is wrong?When it is in android I can use APM boot into recover or via ADB,but unusually when it is in the bootloader I choose to boot into recover,it just stay at google logo!!What it is going wrong?
Click to expand...
Click to collapse
There is a bug with the Nexus 7 where you cannot access the recovery through the bootloader. To fix this, boot up into the bootloader on your nexus 7 and, without doing anything, plug it into the computer you used for rooting it and then select the option Restart bootloader and press the power button. Once it gets you back into the bootloader again select Recovery mode and press the power button. It will now get you into the recovery and once you're in recovery you can unplug your tablet from the computer. Note that this fix is not permanent and you will have to do this every time you wish to access your recovery via the bootloader (and this problem is not relevant to the OP's problem).
android1234567 said:
There is a bug with the Nexus 7 where you cannot access the recovery through the bootloader. To fix this, boot up into the bootloader on your nexus 7 and, without doing anything, plug it into the computer you used for rooting it and then select the option Restart bootloader and press the power button. Once it gets you back into the bootloader again select Recovery mode and press the power button. It will now get you into the recovery and once you're in recovery you can unplug your tablet from the computer. Note that this fix is not permanent and you will have to do this every time you wish to access your recovery via the bootloader (and this problem is not relevant to the OP's problem).
Click to expand...
Click to collapse
Thank You Very Much!!!
I am having much the same problem as the OP. I finally rooted my Nexus 7 using WugFresh's Nexus Root Toolkit. It seemed all went well. I chose to use TWRP in a first attempt to install a ROM (I was on rooted stock), and following the instructions for installing my chosen ROM I went into it to wipe cache, Dalvic Cache and data. Both cache and dalvic cache wiped without issue, but when I attempted to wipe /data TWRP simply reported that it failed. With that failing, I did not attempt to install a rom. I was still able to boot out of recovery, but even with repeated attempts wiping data always failed. Is any one aware of any solution or have any suggestions. Thank you!

[Q] Problem with TWRP

I installed twrp a couple of weeks ago and all seemed well.
Tonight I needed to get into recovery to flash the system update, and it seems my recovery isn't working, all I get is the android on his back with an exclamation point over it. I then used wugs toolkit to unroot my device and flash the stock image.. which was successful, but still I have no recovery. As a last resort, I used the toolkit again to re-root, this time ticking the box to enable the installation of cwm, when it it got to the point of the process that cwm would be installed, it said something along the lines of "opening twrp" .. it finished it's process, I'm rooted, but without recovery.
I'm at a loss. Is there a way to force cwm or something?
*disclaimer*
My device was plugged into my pc while attempting to get into recovery.
I just went ahead and reinstalled twrp, and it let me boot into recovery to install the the update zip. I'd still like to know why twrp failed in the first place, it's not a good feeling knowing that your recovery might not be there when you need it.

[Q] Stuck trying to root nexus 10

This isn't my first android root but I'm stuck. I followed the video for rooting my Nexus 10. Got stuck in a boot loop but was able to flash cwm but still in boot loop. I tried doing the factory reset and now cwm is gone too and still stuck in boot loop. I tried reflashing cwm. When I try to access recovery I get the red triangle with ! on it. And I'm stuck in boot loop. I went here and tried to reflash recovery.img and no joy. Still no recovery access and no boot. ((
accidentally posted this in the samsung nexus forum #whoops
Boot back into recovery and press all 3 buttons (power, vol +, vol -) simultaneously until the menu comes up. The timing has to be very exact so don't worry if it takes 10+ tries. Then select factory reset and it should boot up properly.
I never could get CMW to stay. So I flashed TWRP as the recovery instead. Also follow wireroid advice about getting out of boot loop. If you want to SEE that method, check out the rooting N10 vid on youtube by qbking777.
some progress!
Ok I got back into the tablet with wireroid help YAH!!
I have a system update pending but when I tried to install it I got the red! with 'no command' ... after a near heart attack I did the factory reset again and got back to where I was before.
Now I need pointed in the right direction. So right now I'm unlocked but that's it. I have no custom recovery and presumably no su access because all I successfully did was unlock the bootloader.
I downloaded the nexux10 toolkit. Do I need to flash a recovery first? Do I try CMW again or go with TWRP? I've only used CMW in the past.
Do I ignore this Jelly Bean system update for now??
bg1906 said:
I never could get CMW to stay. So I flashed TWRP as the recovery instead. Also follow wireroid advice about getting out of boot loop. If you want to SEE that method, check out the rooting N10 vid on youtube by qbking777.
Click to expand...
Click to collapse
Try this toolkit by Wugfresh. http://www.wugfresh.com/nrt/
It's what I used and I went from locked and stock to unlocked, rooted, and with TWRP as my recovery in less than 15 minutes. I unlocked and rooted my GNex the "old-fashioned" way but wanted something easier for my N10.
Also, here's a YouTube video from QBKing77 walking you through the process using the above toolkit. https://www.youtube.com/watch?v=YtLvlrUDB04&feature=youtube_gdata_player
Since you're already unlocked you should be able to just skip to the part where root and a custom recovery are flashed (you'll end up with TWRP but you can always download ROM Manager and flash ClockworkMod if that's your preference).
Good luck.
I ran MSkip toolkit and it repaired everything. I got a failed on renaming my recovery images so my stock recovery images are just gone I guess? Anyway I'm good. Rooted and repaired thanks to Skips toolkit.
Thanks for all the help!
Rodeojones said:
Try this toolkit by Wugfresh. http://www.wugfresh.com/nrt/
It's what I used and I went from locked and stock to unlocked, rooted, and with TWRP as my recovery in less than 15 minutes. I unlocked and rooted my GNex the "old-fashioned" way but wanted something easier for my N10.
Also, here's a YouTube video from QBKing77 walking you through the process using the above toolkit. https://www.youtube.com/watch?v=YtLvlrUDB04&feature=youtube_gdata_player
Since you're already unlocked you should be able to just skip to the part where root and a custom recovery are flashed (you'll end up with TWRP but you can always download ROM Manager and flash ClockworkMod if that's your preference).
Good luck.
Click to expand...
Click to collapse

[Q] Bootlop after unlocking bootloader + flashing cwm

Hi Everyone, I'm new to the Nexus 4, and I unlocked the bootloader and installed the CWM Recovery using this guide. http://au.ibtimes.com/articles/53036...at-install.htm
Everything went correctly and after I installed CWM and wanted to reboot my device, it asked to remove the stock recovery, I said Yes (there was no mention of this in the article, but i remembered how annoying this was with a previous device, so i agreed to that), as I needed to install Superuser from a ZIP, i selected No when i was prompted to root the device (from CWM). after those two questions, the phone rebooted, and now it's in a bootloop (on the bubbles boot screen, (4.4.2). Is there any way to fix this?.
Try going into recovery and doing a factory reset or wipe cache.
It's a bug with Nexus devices and bootloader unlocking. After unlocking the bootloader, you need to do a full reboot before going back in and flashing a custom recovery. See the article below about the bug. You need to re-flash the stock recovery to get out of the bootloop.
http://www.androidpolice.com/2013/1...locking-your-nexus-or-gpe-devices-bootloader/

Trying to install cyanogenmod to nexus 4, I cannot flash it through TWRP recovery

I am trying to flash my N4 with cyanogenmod following the official wiki.
I'm at the point where I've installed TWRP into recovery, I've wiped everything (I've even formatted them since I couldn't wipe all of it initially), and the only error I see is "unable to mount /usb-otg".
Then, I've "installed" the CN zip files for the 13 and 12 versions, none of them works in the sense that when I reboot the system, I'm always coming back to TWRP.
What's wrong? Any suggestion?
Thanks
I've the same problems with my nexus 4
gerardgerard said:
I am trying to flash my N4 with cyanogenmod following the official wiki.
I'm at the point where I've installed TWRP into recovery, I've wiped everything (I've even formatted them since I couldn't wipe all of it initially), and the only error I see is "unable to mount /usb-otg".
Then, I've "installed" the CN zip files for the 13 and 12 versions, none of them works in the sense that when I reboot the system, I'm always coming back to TWRP.
What's wrong? Any suggestion?
Thanks
Click to expand...
Click to collapse
Hi gerardgerard,
I also wanted to flash my Nexus 4 with Cyanogenmod 12.1. So I installed TWRP into recovery and wiped everything, like it's explained in the wiki. I can also see the error "unable to mount /usb-otg". When I want to reboot the system I always get back to TWRP. Cyanogenmod doesn't boot correctly. Did you find a solution for the problem?
same problem
Hi
I'm having the same problem. As follows:
Cause (my mistake): I have been using Cyanogen-mod nightlies for a couple of months on my Nexus 4, and made the grave mistake of leaving the phone to upgrade one night but without it being plugged in properly - and it ran out of power part way through! (At least, that's what I think happened).
Fortunately, it would boot into bootloader and I could use adb/fastboot. I (re)installed TWRP 2.8.7.0 (from my Mac, using fastboot). And that works fine - I can boot into twrp ok.
Next I loaded the latest nightly from cm (using fastboot - is this what people call sideloading?) and used twrp to install it. It goes through the installation fine (the only error message is that it can't mount /usb-otg). But when I reboot it just goes back to twrp.
I then tried installing the earlier cm nightly that I know worked, but with the same result.
Finally, before I first installed cm I did a backup (using twrp), and I have tried recovering that. It seems to do all the right things, but again when I reboot it just goes back to twrp.
Any suggestions would be welcome.
Thanks
J
Flash back to a completely stock ROM and run through the set up to make sure everything works. Then copy CM to the phone, reboot to fastboot, flash twrp, immediately boot into recovery using the volume and power button without leaving fastboot, wipe data, cache, system, flash CM, reboot.
If the phone will not boot after flashing a stock ROM, boot to fastboot, flash the userdata.img file, and immediately go to stock recovery without leaving fastboot, wipe data/cache, reboot.
It works now!
I managed to fix the problem ... I found this guide for the Nexus 5:
http://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701
and I applied those instructions. It didn't work first time, so I just repeated them and now it's working. I used the 5.1.1 stock downloaded from https://developers.google.com/android/nexus/images#occam.
I guess this is what audit13 means in their post - so thanks are due there.
I will next reinstall twrp and cm and I don't expect any problems with that (having done it successfully before).
Smaje

Categories

Resources