[Q]Reflash stock rom - Nexus 5 Q&A, Help & Troubleshooting

Is there any tool that will reinstall the stock rom on a Nexus 5 with LOCKED bootloader? Something like emergency reflash from LG Support Tool.

LG Support Tool? There's something LG Flashtool and that works.

albwh said:
Is there any tool that will reinstall the stock rom on a Nexus 5 with LOCKED bootloader? Something like emergency reflash from LG Support Tool.
Click to expand...
Click to collapse
If you have to reinstall the stock firmware why do you care? Just unlock the bootloader, you're going to lose everything anyway.
What situation are you in. There may be ways to save your data
Sent from my Nexus 5 using XDA Free mobile app

The ideea is that I want to root this phone with Towelroot and I've heard that if Google detects a change in the system you can't install any more OTA updates. If this is true, I want to find a method to reflash the stock so I cand get the updates.

albwh said:
The ideea is that I want to root this phone with Towelroot and I've heard that if Google detects a change in the system you can't install any more OTA updates. If this is true, I want to find a method to reflash the stock so I cand get the updates.
Click to expand...
Click to collapse
If you're rooted but otherwise completely stock, you should get OTA updates no problem.

albwh said:
The ideea is that I want to root this phone with Towelroot and I've heard that if Google detects a change in the system you can't install any more OTA updates. If this is true, I want to find a method to reflash the stock so I cand get the updates.
Click to expand...
Click to collapse
Well if you modify any system files you don't get the ota. Your best bet is to root and then flash a custom recovery with flashify and then flash a stock rom zip that will be created shortly after any updates come out. You can also unlock the bootloader without wiping data with boot unlocker after your rooted.
Sent from my Nexus 5 using XDA Free mobile app

jd1639 said:
Well if you modify any system files you don't get the ota. Your best bet is to root and then flash a custom recovery with flashify and then flash a stock rom zip that will be created shortly after any updates come out. You can also unlock the bootloader without wiping data with boot unlocker after your rooted.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
There's a whole sticky on returning to stock so you can get OTAs. </thread>

If you're able to flash the stock ROM, you should be past the point where you need to worry about being able to get any updates.

Yeah. I'd highly recommend just flashing a prerooted busybox stock ROM. You can always do a dirty flash over stock ROM and still keep data.

jd1639 said:
Well if you modify any system files you don't get the ota. Your best bet is to root and then flash a custom recovery with flashify and then flash a stock rom zip that will be created shortly after any updates come out. You can also unlock the bootloader without wiping data with boot unlocker after your rooted.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
You do get the OTA, but if you modify /system/ or something else, the OTA won't install.

It takes 10 minutes to return to stock for an OTA. Just do what you want with the phone now and enjoy!
The next OTA will be months from now. Return to stock then.

You dont need any tool. Download factory image and flash that by executing flash-all.bat (for windows, if you use linux execute flash-all.sh). Flash a custom recovery. Then remove hidden tampered flag by flashing tampered flag remover zip. Then flash stock recovery and lock bootloader by typing fastboot oem lock.

yashade2001 said:
You dont need any tool. Download factory image and flash that by executing flash-all.bat (for windows, if you use linux execute flash-all.sh). Flash a custom recovery. Then remove hidden tampered flag by flashing tampered flag remover zip. Then flash stock recovery and lock bootloader by typing fastboot oem lock.
Click to expand...
Click to collapse
You can do the last 2 steps using bootunlocker from play
Sent from my Nexus 5 using Tapatalk

rootSU said:
You can do the last 2 steps using bootunlocker from play
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yes that is an awesome app.

yashade2001 said:
Yes that is an awesome app.
Click to expand...
Click to collapse
Yeah agreed. I use it to keep my bootloader locked but so I can unlock it without a wipe on the fly.

rootSU said:
Yeah agreed. I use it to keep my bootloader locked but so I can unlock it without a wipe on the fly.
Click to expand...
Click to collapse
Why do you keep your bootloader locked?

yashade2001 said:
Why do you keep your bootloader locked?
Click to expand...
Click to collapse
So no one can get my data

rootSU said:
So no one can get my data
Click to expand...
Click to collapse
How someone can get my data if i have a unlocked bootloader?

yashade2001 said:
How someone can get my data if i have a unlocked bootloader?
Click to expand...
Click to collapse
Locking the bootloader isn't enough on its own.
Android: adb pull data, MTP (Screen lock can prevent)
Custom recovery: adb pull data, flash zip to turn off android lock screen (Recovery lock can prevent)
Lock bootloader: Prevent replacing locked recovery with unlocked recovery,

Related

[Q] Nexus S 4G Bootloader Lock

My question is, if you relock the bootloader on ns4g after unlocking and rooting, will you loose the root or the ability to flash any custom roms or mods?
chrissboston said:
My question is, if you relock the bootloader on ns4g after unlocking and rooting, will you loose the root or the ability to flash any custom roms or mods?
Click to expand...
Click to collapse
No. You can still flash anything via custom recovery.
You will, however, lose the ability to flash a custom recovery if it is overwritten via fastboot. If you have root access you can still use the flash_image binary from the device or flash via Rom Manager. If you lose root and recovery though you will have to unlock again.
chrissboston said:
My question is, if you relock the bootloader on ns4g after unlocking and rooting, will you loose the root or the ability to flash any custom roms or mods?
Click to expand...
Click to collapse
This is a dev phone, so you can lock and unlock the bootloader as you please. You will not be able to switch the recovery with it locked.
Sent from my PC36100 using XDA Premium App
Rem3Dy said:
If the bootloader is locked you can not flash roms. This is a dev phone, so you can lock and unlock the bootloader as you please.
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
Yes you can - via a custom recovery you can flash whatever you want.
Pre 2.3.3 you could fastboot boot a custom recovery and flash whatever you wanted without even touching the stock recovery. That was never the intended functionality though and 2.3.3 took that ability away again (so that you now have to initially unlock in order to flash a custom recovery).
Thanks
Thank you Rem3Dy & krohnjw, I understand now. And thanks for the tip about flashing through rom manager krohnjw, its very usefull and easier instead of flashing manually.
chrissboston said:
And thanks for the tip about flashing through rom manager krohnjw, its very usefull and easier instead of flashing manually.
Click to expand...
Click to collapse
And is causing problems en masse.
rentaric said:
And is causing problems en masse.
Click to expand...
Click to collapse
erasing before flashing seems to help, I just use fastboot though as it's easy and doesn't have any issues. I don't recommend locking the bootloader if you plan on flashing, but it is possible.
Sent from my Nexus S using XDA Premium App
I agree with you krohnjw as sometimes when you don't do a full wipe the new flashed rom gives you problems, specially with FC's, but I've never had a problem when flashing after doing a full wipe.

Locking OEM

Hi I have just recently unrooted my phone and back to stock with stock boothloader and recovery.
I did this because I am just patiently
Waiting for the ICS update.
My questing is...how do I lock the OEM on my phone? I know you could but I want to know how. And ....if I do that....WOULD IT WIPE MY PHONE?
I want to relock my OEM, but keep all my apps on my phone.
So again, if I lock my OEM, would it wipe my phone?
PS. I have 19020A
Sent from my Nexus S using XDA App
Don't think it wipes ur phone... maybe I'm wrong but here ya go
>Fastboot Device
>Fastboot OEM Lock
Sent from my Nexus S using xda premium
Yup it will wipe everything
Sent from my HTC Sensation 4G using XDA App
mathkid95 said:
Yup it will wipe everything
Sent from my HTC Sensation 4G using XDA App
Click to expand...
Click to collapse
fastboot oem lock
Locking doesn't wipe anything. Unlocking wipes.
Sent from my Nexus S using xda premium
You don't have to lock bootloader to recieve OTA updates, unlocked bootloader just allows you to flash something via fastboot (usually CWM). Just be unrooted and have stock recovery, as I do. This way you can always flash CWM, make a nandroid backup and flash someting else...without losing any data (you don't unlock bootloader).
Ahhh damnit. Thanks krohn, had a bit of a brain freeze there.
Sent from my HTC Sensation 4G using XDA App
dan542 said:
You don't have to lock bootloader to recieve OTA updates, unlocked bootloader just allows you to flash something via fastboot (usually CWM). Just be unrooted and have stock recovery, as I do. This way you can always flash CWM, make a nandroid backup and flash someting else...without losing any data (you don't unlock bootloader).
Click to expand...
Click to collapse
Yea, why lock the bootloader? It doesn't need to be.
I thought locking the bootloader DID wipe. I guess I myself am mistaken too. (It would tell you though when you go to do it.).
Lastly, don't you think it's a little earlier to be going back to stock for the ICS update when it's not even announced as far as it being done and the phone; nor, is it announced of when the phone itself will be coming out. And, it won't be sometime till after that as well.
Just my opinion.
(You also didn't need to go unroot if you were stock rooted with no modifications).
Its just that I have lots of apps and I want to have them for when ICS comes out.
And....idk....I just figures if I am not rooted I might-as-well OEM lock just invade..if I might need to...for warenty
Sent from my Nexus S using XDA App
Nah your good on that... while it's rooted and awaiting the OTA... give your phone some Cyber air... over clock it with an app... install a better radio.. do something =]
Sent from my Nexus S using xda premium
BlackHawkA4 said:
Yea, why lock the bootloader? It doesn't need to be.
I thought locking the bootloader DID wipe. I guess I myself am mistaken too. (It would tell you though when you go to do it.).
Lastly, don't you think it's a little earlier to be going back to stock for the ICS update when it's not even announced as far as it being done and the phone; nor, is it announced of when the phone itself will be coming out. And, it won't be sometime till after that as well.
Just my opinion.
(You also didn't need to go unroot if you were stock rooted with no modifications).
Click to expand...
Click to collapse
Yes, you can be rooted, but you'll have to have stock recovery and you'll lose root with OTA update.
Sent from my Nexus S using XDA App
dan542 said:
Yes, you can be rooted, but you'll have to have stock recovery and you'll lose root with OTA update.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
You don't need stock recovery. Stock recovery is not checked with an assert and is not patched, it is deleted and flashed using a full image. You can flash the OTA with CWM without any issues.
You will lose root in one of two scenarios with the OTAs, it recursively chmod's /system or formats /system (full update, not incremental). At this point all you need to do it flash the su binary again though to regain root access.
krohnjw said:
You don't need stock recovery. Stock recovery is not checked with an assert and is not patched, it is deleted and flashed using a full image. You can flash the OTA with CWM without any issues.
You will lose root in one of two scenarios with the OTAs, it recursively chmod's /system or formats /system (full update, not incremental). At this point all you need to do it flash the su binary again though to regain root access.
Click to expand...
Click to collapse
Ok
Sent from my Nexus S using XDA App

A little help with my moto g

I have had my moto g for a while now and I am quite tempted to root it. But then having an unlocked bootloader would not allow me to receive any Ota updates if I am not wrong. Is there any way to receive updates with an unlocked bootloader because once I unlock my bootloader, I am not going to relock it again..
r1punjay said:
I have had my moto g for a while now and I am quite tempted to root it. But then having an unlocked bootloader would not allow me to receive any Ota updates if I am not wrong. Is there any way to receive updates with an unlocked bootloader because once I unlock my bootloader, I am not going to relock it again..
Click to expand...
Click to collapse
You will get OTA updates in rooted phone and you can Install it if you have stock recovery... You can't install OTA update If you have custom recovery like cwm or twrp...
Sent from my XT1032 using XDA Premium 4 mobile app
padhu1989 said:
You will get OTA updates in rooted phone and you can Install it if you have stock recovery... You can't install OTA update If you have custom recovery like cwm or twrp...
Sent from my XT1032 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
So that means before updating I need to revert back to the stock recovery before updating.Also can I download the entire Asian stock firmware and then flash only the recovery using adb?Thanks for your help.
r1punjay said:
So that means before updating I need to revert back to the stock recovery before updating.Also can I download the entire Asian stock firmware and then flash only the recovery using adb?Thanks for your help.
Click to expand...
Click to collapse
Flashing recvery wont work, you need t go back to full stock rom , update it, and do flash custom recoery and root it.. I tried long back flashing stock recovery and update, but that didnt work for me...
padhu1989 said:
Flashing recvery wont work, you need t go back to full stock rom , update it, and do flash custom recoery and root it.. I tried long back flashing stock recovery and update, but that didnt work for me...
Click to expand...
Click to collapse
Thanks..
Also is there any possibility to keep a backup of all apps along with data included before unlocking bootloader and rooting?
r1punjay said:
Thanks..
Also is there any possibility to keep a backup of all apps along with data included before unlocking bootloader and rooting?
Click to expand...
Click to collapse
Use Go Backup Pro.. or any good backup app in play store..

Boot recovery.img from phone

Is it possible to boot a recovery image from the phone without flashing? If not is it ok to reflash backups of stock recovery? Tnx
and313 said:
Is it possible to boot a recovery image from the phone without flashing? If not is it ok to reflash backups of stock recovery? Tnx
Click to expand...
Click to collapse
It is possible via android sdk. You can use command: fastboot boot twrp.img
where twrp.img is the name of the recovery that you downloaded and not twrp.img
Alexandar92zr said:
It is possible via android sdk. You can use command: fastboot boot twrp.img
where twrp.img is the name of the recovery that you downloaded and not twrp.img
Click to expand...
Click to collapse
Yes i know but i would like to do it from the phone... There are tons of flash recovery apps but no boot recovery apps
ROM manager used to do it years ago until people got into trouble with it and it was removed.
If you intend on flashing things AMD backing up, flash a recovery. If you're not willing to flash a recovery, don't modify your phone
Sent from my Nexus 5 using Tapatalk
and313 said:
Yes i know but i would like to do it from the phone... There are tons of flash recovery apps but no boot recovery apps
Click to expand...
Click to collapse
Try flashify
AndreIrawan97 said:
Try flashify
Click to expand...
Click to collapse
That flashes recovery. Clue is in the name.
Sent from my Nexus 5 using Tapatalk
rootSU said:
ROM manager used to do it years ago until people got into trouble with it and it was removed.
If you intend on flashing things AMD backing up, flash a recovery. If you're not willing to flash a recovery, don't modify your phone
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
The problem with flashing is that you loose the ota update ability. That's why i would like to keep the stock recovery and just boot into cwm when i need it... But i guess i can restore the stock recovery via flashify before the ota is being installed so thats a solution... I just dont like flashing this stuff via apps
and313 said:
The problem with flashing is that you loose the ota update ability. That's why i would like to keep the stock recovery and just boot into cwm when i need it... But i guess i can restore the stock recovery via flashify before the ota is being installed so thats a solution... I just dont like flashing this stuff via apps
Click to expand...
Click to collapse
1) you do not lose OTA update ability with custom recovery. Read "OTA help-desk" available via my signature
2] what's the big deal about OTA? Its the worst way of updating available to everyone. Why bother? If you rely on OTA, remain unrooted, unmodified. Rooting is not for you.
Sent from my Nexus 5 using Tapatalk
Ugh lol OK, so worried about the ota? No worries, flash whatever recovery you want twrp,cwm,philz whatever floats your boat. Then when your ota comes out use Rashr to reflash stock recovery so you can update(you have to be on stock obviously).
I've done this numerous times, works every time.
Sent from my Nexus 5 using XDA Free mobile app
todorcim said:
Ugh lol OK, so worried about the ota? No worries, flash whatever recovery you want twrp,cwm,philz whatever floats your boat. Then when your ota comes out use Rashr to reflash stock recovery so you can update(you have to be on stock obviously).
I've done this numerous times, works every time.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
One of the problems with OTA is the slow delivery and partial nature.
If I wasn't rooted, i'd always update using factory images. But since I am, the best way is for flash a pre-rooted stock ROM via recovery. They're usually available within an hour of the factory image becoming available
Sent from my Nexus 5 using Tapatalk
rootSU said:
One of the problems with OTA is the slow delivery and partial nature.
If I wasn't rooted, i'd always update using factory images. But since I am, the best way is for flash a pre-rooted stock ROM via recovery. They're usually available within an hour of the factory image becoming available
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Agreed 100%, I normally stay rooted,this most recent preview though I'm staying stock. After running L for the last couple months its hard to go back to KitKat(I've tried several times). I have no intention of flashing another rom atm, I'll worry about root after the 3rd.
As for buddy worrying about the ota, really you have two choices.
#1 root and flash a recovery then wait for someone to post a root stock ROM
#2 wait for the ota
The only real benefit I see in waiting for the ota is you will probably get to keep all your apps on your phone. Me personally? I'd just fastboot the preview and wait till the 3rd.
Materialized From The DarkSide

What is eu.chainfire.supersu.MainActivity Emblem?

This process is important? I was deleting SuperSU and in says that if I delete SuperSU I will delete this file too...
If you're unrooting, you don't need to keep it.
Ok, thanks.
There is a way to see if there is any modifications to the system's file?
Sent from my Nexus 5 using XDA Free mobile app
There's an OTA checker flashable zip in general I think.
No, not in the ota, I say in general, if I want just to control of there is any modifications without flash anything
Sent from my Nexus 5 using XDA Free mobile app
Giolte_ said:
No, not in the ota, I say in general, if I want just to control of there is any modifications without flash anything
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I don't understand. Please rephrase
If I want to check if the system's file are modified, how can I do?
Sent from my Nexus 5 using XDA Free mobile app
Giolte_ said:
If I want to check if the system's file are modified, how can I do?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
There is only one way. By flash the OTA checker zip in custom recovery. It can be found in the general forum I believe.
---------- Post added at 10:15 AM ---------- Previous post was at 10:12 AM ----------
Here it is
http://forum.xda-developers.com/showthread.php?t=2927865
Ok, so I have to flash this with flashify (rooted with towelroot)
After the flash I'll have to unroot the phone and just install Lollipop with the ota?
Sent from my Nexus 5 using XDA Free mobile app
Giolte_ said:
Ok, so I have to flash this with flashify
Click to expand...
Click to collapse
Flash what with Flashify?
I think the best bet for you is to read the thread about root / update in my signature. OTA is proving too troublesome. I can't hand hold you through the whole process.
I mean the zip checker
Sent from my Nexus 5 using XDA Free mobile app
Giolte_ said:
I mean the zip checker
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I already told you.
Ok, I've read your thread about how to upgrade to Lollipop the Nexus.
The fact is that my main pc have no working USB ports, so if I want to unlock the bootloader and stuff like this I have to use my second pc, and it is very slow (the last time to just fastboot a factory image it tooks me one hour of suffering).
I think that the method 2b is the one that is closest to my situation:
1. Unlock bootloader if necessary (This wipes data)
2. Accept OTA update
3. Fastboot flash a custom recovery image (of your choice)
4. Fastboot flash a custom boot.img (@Chainfire for basic root, @sykopompos for full permissive mode)
5. Flash from recovery, SuperSU
Click to expand...
Click to collapse
I don't want root, so:
2. Accept OTA update
Click to expand...
Click to collapse
If I have understood, the only thing that I have to do is use flashify to flash the OTA checker zip. file and than proceed with the OTA, right?
If there is another way to do this without use the PC, it will be great, but I don't know.
Is what I said right or I forgot something?
Thank you with your help anyway!
Giolte_ said:
If I have understood, the only thing that I have to do is use flashify to flash the OTA checker zip
Click to expand...
Click to collapse
You haven't understood. I told you how to flash it. I did NOT say flash via flashify please try to read properly
There is only one way. By flash the OTA checker zip in custom recovery.
Click to expand...
Click to collapse
This is what you mean?
If yes, I can't flash with a custom recovery because I have the stock recovery (because I'm rooted with only Towelroot, so stock recovery and locked bootloader)
Giolte_ said:
This is what you mean?
If yes, I can't flash with a custom recovery because I have the stock recovery (because I'm rooted with only Towelroot, so stock recovery and locked bootloader)
Click to expand...
Click to collapse
Then you can't use it! Wait for the OTA and install it.
I already have the OTA, but I think that there could be some issues, this is why I want to check if everything it's good, I don't want to brick/bootloop the device
Giolte_ said:
I already have the OTA, but I think that there could be some issues, this is why I want to check if everything it's good, I don't want to brick/bootloop the device
Click to expand...
Click to collapse
You wont brick it. If you're not stock, it wont install.
Thank you, it works

Categories

Resources