[Q] CM11 + pa_GApps + ElementalX flash, with fastboot, adb and recovery. - Nexus 5 Q&A, Help & Troubleshooting

will it work?
fastboot:
fastboot oem unlock
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase radio
fastboot erase userdata
fastboot flash bootloader bootloader-hammerhead-hhz11k.img
fastboot reboot-bootloader
fastboot flash radio radio-hammerhead-m8974a-2.0.50.1.16.img
fastboot reboot-bootloader
fastboot flash recovery recovery-clockwork-6.0.4.5-hammerhead.img
device:
go to recovery
recovery:
install zip from sideload
adb:
adb sideload cm-11-20141008-SNAPSHOT-M11-hammerhead.zip
adb sideload pa_gapps-stock-4.4.4-20141011-signed.zip
adb sideload ElementalX-N5-1.10-cm.zip
recovery:
install zip from sd card
install cm-11-20141008-SNAPSHOT-M11-hammerhead.zip
install pa_gapps-stock-4.4.4-20141011-signed.zip
install ElementalX-N5-1.10-cm.zip
clear cache
clear dalvik
reboot system now
profit?
Thanks in advance.

Don't erase all the partitions. Its worthless in this case
Sent from my Nexus 5 using Tapatalk

Besides the fruitless erasing, why do you want to sideload everything and then again do it in recovery??
- Sent from an IceCold Hammerhead!

vin4yak said:
Besides the fruitless erasing, why do you want to sideload everything and then again do it in recovery??
- Sent from an IceCold Hammerhead!
Click to expand...
Click to collapse
Because he didn't read the sticky threads
Sent from my Nexus 5 using Tapatalk

Apart from the erase and sideload then recovery flash stuff, I don't understand this part:
<flash recovery>
device:
go to recovery
Shouldn't he just do a fastboot reboot-recovery and flash the stuff there? Or its better for some reason to boot into it from the device? I mean I remember when 4.4. went out some people said you just couldn't flash all the stuff without booting at least once because there was some script that the stock recovery had to execute first.. this got fixed already?

RusherDude said:
Apart from the erase and sideload then recovery flash stuff, I don't understand this part:
device:
go to recovery
Shouldn't he just do a fastboot reboot-recovery and flash the stuff there? Or its better for some reason to boot into it from the device? I mean I remember when 4.4. went out some people said you just couldn't flash all the stuff without booting at least once because there was some script that the stock recovery had to execute first.. this got fixed already?
Click to expand...
Click to collapse
Never heard about this before. I've seen many guys over here who have directly flashed as soon as they got their hands on this device.
- Sent from an IceCold Hammerhead!

I remember Artem from AndroidPolice had such problem. Ill try to find the post.

There is sometimes a /system/etc/install-recovery.sh
This is sometimes used in rooted stock ROMs to provide root too.
When you unlock the bootloader, you should reboot bootloader before flashing anything.
Sent from my Nexus 5 using Tapatalk

moralex said:
profit?
Click to expand...
Click to collapse
With that many steps, I think you'll be operating at a loss.

Related

Remove twrp and get back to factory state, need help!!!

Hi guys
I'll receive the rma device tomorrow and i wanted to set to factory state the one i have right now , so that i can send it back to google.
I have installed a custom recovery(twrp) and rooted the device.
Would any one be so kind to guide me to the the reverse process and make the device like it was when it shipped to me.
Thanks in andvance
td32 said:
Hi guys
I'll receive the rma device tomorrow and i wanted to set to factory state the one i have right now , so that i can send it back to google.
I have installed a custom recovery(twrp) and rooted the device.
Would any one be so kind to guide me to the the reverse process and make the device like it was when it shipped to me.
Thanks in andvance
Click to expand...
Click to collapse
See here.
gregc2009 said:
See here.
Click to expand...
Click to collapse
is it necesary to execute all this commands
Code:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
or this is enough for my case?
Code:
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
just flash the recovery image then
Wipe data/factory data reset"
and for last lock the bootloader?
td32 said:
is it necesary to execute all this commands
Code:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
or this is enough for my case?
Code:
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
just flash the recovery image then
Wipe data/factory data reset"
and for last lock the bootloader?
Click to expand...
Click to collapse
I would do it all just to make sure you are back to complete stock since you mentioned you rooted the device also.
Follow the instructions in the first post of this thread and since you plan to RMA the phone be sure to check the tamper flag and follow the steps outlined to reset it if necessary... http://forum.xda-developers.com/showthread.php?p=47156064
[TUTORIAL] How to flash a factory image | Return to stock | Unroot your Nexus 5
Sent from my Nexus 5 using xda app-developers app
chef_christoph said:
Follow the instructions in the first post of this thread and since you plan to RMA the phone be sure to check the tamper flag and follow the steps outlined to reset it if necessary... http://forum.xda-developers.com/showthread.php?p=47156064
[TUTORIAL] How to flash a factory image | Return to stock | Unroot your Nexus 5
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
Code:
. If the tamper flag value is "true", then you'll have to reset it. The following steps will reset this flag, and lock your bootloader.
•So, first, go here: http://forum.xda-developers.com/show....php?t=2239421 (Thanks @osm0sis for the wonderful script)
Under "Flashable Zips", you will find the Nexus BootUnlocker script. Download it.
•Put the zip on your internal storage.
•Download the latest TWRP recovery image for the Nexus 5 from here: http://techerrata.com/browse/twrp2/hammerhead. Rename it to TWRP.img.
Now boot it. You do this by booting your phone in fastboot, and typing the following command:
Code:
fastboot boot path/to/TWRP.img
TWRP recovery should boot.
•Flash the zip in TWRP, then reboot.
Now your bootloader should be locked, and your tamper flag should show "false".
So i have to do this before i flash the stock recovery, since it needs TWRP, am i right?
And else it says that this will lock the bootloader, will i be able to execute the previous commands(flashing recovery and stuff) with a locked bootloader?
td32 said:
So i have to do this before i flash the stock recovery, since it needs TWRP, am i right?
And else it says that this will lock the bootloader, will i be able to execute the previous commands(flashing recovery and stuff) with a locked bootloader?
Click to expand...
Click to collapse
No, flash everything back to stock then deal with the tamper flag reset.
Once everything is back to stock but the bootloader is still unlocked, boot into the recovery...
fastboot boot nameofrecovery.img
Then flash the tamper flag script.
Sent from my Nexus 5 using xda app-developers app
chef_christoph said:
No, flash everything back to stock then deal with the tamper flag reset.
Once everything is back to stock but the bootloader is still unlocked, boot into the recovery...
fastboot boot nameofrecovery.img
Then flash the tamper flag script.
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
Sorry man but i'm not getting something here.
If i flash everything first, even the recovery will be stock, so i have to flash twrp once again to flash the tamper flag script. So i end up with twrp recovery and the tamper flag reset, while it should be stock recovery and tamper flag reset.
What i'm i missing here?
You can boot a custom recovery without flashing it. Like a temporary installation
Sent from my Nexus 5
pepdavies said:
You can boot a custom recovery without flashing it. Like a temporary installation
Sent from my Nexus 5
Click to expand...
Click to collapse
ok thank, now its all clear
i should have paid more attention to the command :silly:
It says boot not flash :silly:
Thanks for you help guys

[Q] Bootloop with acess to Recovery

I've been using Cromi-X 4.7 since Mid to Late summer for my daily and have had zero issues. Last night however, my TF300 chirped to let me know I had an email, I turned the screen on and then it began bootlooping. I do have access to Recovery, and I've tried wiping and flashing a few other ROMs that I had on my SD card, but they all make it as far as the splash screen then freeze and reboot. So I'm a little confused as to where to go from here.
Recovery: TWRP v2.5.0.0
ww_epad-10.6.1.27.1-20130711
Any advice would be much appreciated. Thanks!
cresco299 said:
I've been using Cromi-X 4.7 since Mid to Late summer for my daily and have had zero issues. Last night however, my TF300 chirped to let me know I had an email, I turned the screen on and then it began bootlooping. I do have access to Recovery, and I've tried wiping and flashing a few other ROMs that I had on my SD card, but they all make it as far as the splash screen then freeze and reboot. So I'm a little confused as to where to go from here.
Recovery: TWRP v2.5.0.0
ww_epad-10.6.1.27.1-20130711
Any advice would be much appreciated. Thanks!
Click to expand...
Click to collapse
If you can use recovery, I suppose you can use fastboot too?
Try the following:
fastboot erase misc
fastboot erase staging
fastboot reboot
If that won't work, look for Buster99's script to erase everything and reflash stock Asus ROM. Fixed issues for a lot of people allowing you a fresh start.
Sent from my TF300T using Tapatalk
f69m said:
If you can use recovery, I suppose you can use fastboot too?
Try the following:
fastboot erase misc
fastboot erase staging
fastboot reboot
If that won't work, look for Buster99's script to erase everything and reflash stock Asus ROM. Fixed issues for a lot of people allowing you a fresh start.
Sent from my TF300T using Tapatalk
Click to expand...
Click to collapse
Thankyou! I had to re-educate myself on Fastboot but once that was done I was able to try your suggestions. Your first one did not do the trick, but Buster99's got me most of the way. I had to reflash the TWRP near the end of his process to get it to work for me.
fastboot erase system
fastboot erase recovery
fastboot erase userdata
fastboot erase boot
fastboot erase misc
fastboot erase cache
fastboot -i 0x0B05 flash recovery C:\Users\Jeff\Downloads\twrp-2.5.0.0-JB.blob (THIS IS THE LINE I ADDED)
fastboot -i 0x0B05 flash system C:\Users\Jeff\Documents\WW_epad-user-10.6.1.15.3\blob
fastboot -i 0x0B05 reboot
So maybe my recovery was messed up? At anyrate, it looks like I'm back in action. For anyone who needs to follow how all this was done, there is a good fastboot tutorial here. and here is the link to Buster99's solution.
Thankyou for pointing me in the right direction f69m!
cresco299 said:
Thankyou! I had to re-educate myself on Fastboot but once that was done I was able to try your suggestions. Your first one did not do the trick, but Buster99's got me most of the way. I had to reflash the TWRP near the end of his process to get it to work for me.
fastboot erase system
fastboot erase recovery
fastboot erase userdata
fastboot erase boot
fastboot erase misc
fastboot erase cache
fastboot -i 0x0B05 flash recovery C:\Users\Jeff\Downloads\twrp-2.5.0.0-JB.blob (THIS IS THE LINE I ADDED)
fastboot -i 0x0B05 flash system C:\Users\Jeff\Documents\WW_epad-user-10.6.1.15.3\blob
fastboot -i 0x0B05 reboot
So maybe my recovery was messed up? At anyrate, it looks like I'm back in action. For anyone who needs to follow how all this was done, there is a good fastboot tutorial here. and here is the link to Buster99's solution.
Thankyou for pointing me in the right direction f69m!
Click to expand...
Click to collapse
Oops, careful!
You are using the wrong recovery.
For the bootloaders coming with 10.6.* ROMs you need to use TWRP -42.
Don't use -jb, that is for the older 10.4.* bootloaders.
Sent from my TF300T using Tapatalk
f69m said:
Oops, careful!
You are using the wrong recovery.
For the bootloaders coming with 10.6.* ROMs you need to use TWRP -42.
Don't use -jb, that is for the older 10.4.* bootloaders.
Sent from my TF300T using Tapatalk
Click to expand...
Click to collapse
That would explain why I had to reinstall an updated TWRP to access recovery. I know just enough to make my self dangerous
Thank you again.

Bircked Help?

I have anexus 5 that is stuch on the google logo or is stuck in a boot lopp than it gets frozen and when plugegd in the battery logo turns on. I can go into recovery (twrp), but everything on my phone ghas been erased so theres nothing to flash. I tried to use a Nexus 5 toolkit to stock flash but it always comes up with an error. When i try something on twrp it says unable to mount....and give like 5-6 different thinbgs that it cant mount to. Everytime i try to flaash a new bootloader or something from that toolkit the phone turns off and goes into the battery logo. When i use twrp and try to do anything the phone just restarts into recovery. Is there any way i could push factory images to the phone or something else.
BTW, i dont know mucgh in terms of doing stuff with adb and terminal and all that so please be simplistic with the answers. Thanks in advance,.
http://forum.xda-developers.com/showthread.php?t=2513701
[TUTORIAL] How to flash a factory image | Return to stock | Unroot/SAVE your Nexus 5
Sent from my Nexus 5
CRIME INC. said:
http://forum.xda-developers.com/showthread.php?t=2513701
[TUTORIAL] How to flash a factory image | Return to stock | Unroot/SAVE your Nexus 5
Sent from my Nexus 5
Click to expand...
Click to collapse
So i did this and it failes when at the bootloader and alos at the end it says failure. What to do now?
Irfdiddy said:
So i did this and it failes when at the bootloader and alos at the end it says failure. What to do now?
Click to expand...
Click to collapse
Go to twrp and factory reset it and see if it works..
Write failure means that the eMMC might have died which can only be solved by replacing the mobo.
- Sent from an IceCold Hammerhead!
Irfdiddy said:
So i did this and it failes when at the bootloader and alos at the end it says failure. What to do now?
Click to expand...
Click to collapse
You're being too vague for us to help you. What commands did you enter at the terminal? Word for word what was the error message(s) you received? Did you try flashing the factory image using both the primary and backup bootloader?
BirchBarlow said:
You're being too vague for us to help you. What commands did you enter at the terminal? Word for word what was the error message(s) you received? Did you try flashing the factory image using both the primary and backup bootloader?
Click to expand...
Click to collapse
So i followed the guide in the link posted above. This:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
Now, i can flash the boot.img, the system.img, the radio, but it hangs up on some of the other ones and it says "erasing..." than i have to stop it casue it doesnt work. Also, when i go into recovery it shows a spinning android logo.
Edit: Ive gotten all the way to "fastboot flash system system.img", but it gets stuck on my phone and says "erasing..."
Irfdiddy said:
So i followed the guide in the link posted above. This:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
Now, i can flash the boot.img, the system.img, the radio, but it hangs up on some of the other ones and it says "erasing..." than i have to stop it casue it doesnt work. Also, when i go into recovery it shows a spinning android logo.
Edit: Ive gotten all the way to "fastboot flash system system.img", but it gets stuck on my phone and says "erasing..."
Click to expand...
Click to collapse
It will take some minutes to cOmplete the process computer will also hang type of feeling or stop responding for couple of minutes let the program finish its task,...
Irfdiddy said:
So i followed the guide in the link posted above. This:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
Now, i can flash the boot.img, the system.img, the radio, but it hangs up on some of the other ones and it says "erasing..." than i have to stop it casue it doesnt work. Also, when i go into recovery it shows a spinning android logo.
Edit: Ive gotten all the way to "fastboot flash system system.img", but it gets stuck on my phone and says "erasing..."
Click to expand...
Click to collapse
You're not letting it finish. That's why you're having problems. It can take a long time. It also wouldn't hurt to use the flash-all.bat script instead of flashing each individually.

Nothing can be written on internal storage (insert sd card error on camera, etc)

I posted this on reddit...but didn't get much help...i hope the geniuses at xda can help me
As the title says, the camera app (any camera app) won't work because as you start any of them, it asks to insert the sd card, but this is a 2013 Nexus 5...so it doesn't have an sd card.
I've done a fair amount of research and the only thing that seems to be mentioned is factory reset. I've done that...both through the settings and twrp. The phone has a stock marshmallow rom.
I tried to download any other file and it won't let me download anything becauase the "sd card" is not available. So it's as if the internal sd card isn't mounted? how do I fix this? I don't have a computer nearby to do anything with adb...any help would be GREATLY appreciated...
The amount of storage according to the settings is correct (3gb used of 12 gb..16gb nexus 5)...all app permissions are correct. I've reflashed two different stock firmwares with the exact same result.
Try this:
boot into fastboot;
run this fastboot command: fastboot erase recovery (to erase existing recovery);
run this fastboot command: fastboot flash recovery recovery.img (to flash stock recovery from stock ROM)
run this fastboot command: fastboot erase userdata;
run this fastboot command to flash the usedata img from the stock ROM: fastboot flash userdata userdata.img;
boot into stock recovery and perform a factory wipe/reset and wipe cache;
reboot.
audit13 said:
Try this:
boot into fastboot;
run this fastboot command: fastboot erase recovery (to erase existing recovery);
run this fastboot command: fastboot flash recovery recovery.img (to flash stock recovery from stock ROM)
run this fastboot command: fastboot erase userdata;
run this fastboot command to flash the usedata img from the stock ROM: fastboot flash userdata userdata.img;
boot into stock recovery and perform a factory wipe/reset and wipe cache;
reboot.
Click to expand...
Click to collapse
I'll try that tonight or tomorrow morning. Where do you suggest I download recovery.img (the stock recovery)?
Thanks for the help one way or another.. Hehe
The stock Google images are here: https://developers.google.com/android/nexus/images?hl=en
I assume the phone has an unlocked bootloader since you were able to flash stock ROMs.
What did you do between all being fine and now this problem?
Sent from my Xperia z5 using Tapatalk
Ben36 said:
What did you do between all being fine and now this problem?
Sent from my Xperia z5 using Tapatalk
Click to expand...
Click to collapse
I sold the phone to someone I know. I had a rom (i can't remember which)...so before i sold the phone, i encrypted it, wiped it clean, flashed the stock rom (and radio)....and did a factory reset.
audit13 said:
Try this:
boot into fastboot;
run this fastboot command: fastboot erase recovery (to erase existing recovery);
run this fastboot command: fastboot flash recovery recovery.img (to flash stock recovery from stock ROM)
run this fastboot command: fastboot erase userdata;
run this fastboot command to flash the usedata img from the stock ROM: fastboot flash userdata userdata.img;
boot into stock recovery and perform a factory wipe/reset and wipe cache;
reboot.
Click to expand...
Click to collapse
Thanks! I used the factory images and flashed everything from the compressed archive and it worked..you're a lifesaver. I guess I had to go further and reset everything..but thanks again!

Nexus 5 Soft-Bricked HELP PLEASE!!!

Although my Nexus 5 is rooted with the toolkit I haven't done anything to it in months (no custom roms or anything)
My phone was working last night but when I woke up and it was in a bootloop.
so i tried fixing the problem myself, here are the things I tried:
- Hitting it (in case the buttons were sticky)
- Flash stock + unroot on the n5 toolkit
- Bootloader>Recovery>Wipe Data/Factory Reset
After that, the boot loop stopped and whenever I try turning it on it goes straight to the bootloader.
So I tried going into the wugfresh advanced utilities and i tried:
- Fastboot Erase*
- Fastboot format*
*flash stock + unroot after both
I have a little bit of hope because I can access the bootloader but I have no idea what else I can try.
Any suggestions?
thank you in advance
Does the bootloader remain unlocked?
Try manually flashing the latest marshmallow. After flashing, boot back into fastboot and run these commands:
fastboot erase userdata
fastboot flash userdata userdata.img (the userdata.img file can be extracted from the stock ROM for flashing in fastboot)
After running the 2 commands, boot back into recovery and perform a full wipe of data and cache, then reboot.
audit13 said:
Does the bootloader remain unlocked?
Try manually flashing the latest marshmallow. After flashing, boot back into fastboot and run these commands:
fastboot erase userdata
fastboot flash userdata userdata.img (the userdata.img file can be extracted from the stock ROM for flashing in fastboot)
After running the 2 commands, boot back into recovery and perform a full wipe of data and cache, then reboot.
Click to expand...
Click to collapse
How do i run the 2 command "fastboot erase userdata" and "fastboot flash userdata userdata.img"
Fastboot on Windows
shbm111 said:
How do i run the 2 command "fastboot erase userdata" and "fastboot flash userdata userdata.img"
Click to expand...
Click to collapse
Hopefully you are running windows
dottech.org/21534/how-to-install-adb-and-fastboot-on-your-windows-computer-for-use-with-your-android-phone
spacecaptain said:
Hopefully you are running windows
dottech.org/21534/how-to-install-adb-and-fastboot-on-your-windows-computer-for-use-with-your-android-phone
Click to expand...
Click to collapse
Yup, I'm running windows.
anyways I don't think the nexus toolkit works on any other platform.
spacecaptain said:
Hopefully you are running windows
dottech.org/21534/how-to-install-adb-and-fastboot-on-your-windows-computer-for-use-with-your-android-phone
Click to expand...
Click to collapse
So, I went through the method one adb setup and I still have no idea how to do the fastboot erase userdata
nvm got it.
Were you able to boot the phone?
I'm in the same situation and need help

Categories

Resources