does flashing stock rom remove root or re-lock bootloader? - Nexus 4 Q&A, Help & Troubleshooting

as topic states....i want to flash store rom to make sure everything is deleted since settings factory reset did not do so. however, i want the bootloader to stay unlock and phone to retain root. thanks in advance!:victory:

Boot loader will stay unlocked, root will be deleted if you're wiping /system.
Sent from my A100 using xda app-developers app

There is an app that will save your root.. It is voodoo something.. Will find it and tell you..
Voodoo ota root protector - search the play store.
Sent from my Nexus 4 using xda app-developers app

If you flash factory image via fast boot you will lose root and custom kernel. Boot loader will stay open until you lock it again using toolkit or from factory image command via fast boot.
Sent from my Galaxy Nexus using xda premium

pdkenji said:
If you flash factory image via fast boot you will lose root and custom kernel. Boot loader will stay open until you lock it again using toolkit or from factory image command via fast boot.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
don't use toolkit. the command to relock bootloader is,
fastboot oem lock

zephiK said:
don't use toolkit. the command to relock bootloader is,
fastboot oem lock
Click to expand...
Click to collapse
Don't bother locking your bootloader. You'll just have to wipe everything the next time you go to root the phone or flash anything

hoponpop said:
Don't bother locking your bootloader. You'll just have to wipe everything the next time you go to root the phone or flash anything
Click to expand...
Click to collapse
Pay attention. He was responding to the post he quoted and telling that member the proper way to lock a bootloader.

Related

[Q] Does Custom Recovery require a prior bootloader unlock?

Is it possible to flash twrp .img using flashboot without first unlocking the bootloader...
move the SuperSU .zip over to internal SD
flash with TWRP
and then install bootunlocker
I ask, because I dont want to lose all data by
Code:
fastboot OEM unlock
command and I am not sure if a custom recovery requires an unlocked bootloader (I assume recover is still strapped to initial handoff of bootloader)
Also, this seems both safer and more convenient than leaving bootloader unlocked after customizations... or locking and restoring backups
I'm quite sure you would have to unlock the boot loader before flashing a custom recovery, although there may be some way around it that I'm not aware of.
If you want to save your data just copy it to a desktop computer before unlocking then copy it back when you're done. Of course, without root you will have to reinstall your apps.
No need to unlock just use the Superboot - Nexus 10 root solution then use something like ROM Manager to install CWM. Worked for me so now I have a locked rooted nexus 10 with CWM.
Yeah... I just wanted to do it the old fashioned way and get dirty...
but as suspected, when trying to flash recovery image via fastboot, I get the old locked bootloader routine.
This is why the first thing to do to a Nexus is to unlock its bootloader.
Sent from my Nexus 10 using xda app-developers app
bk201doesntexist said:
This is why the first thing to do to a Nexus is to unlock its bootloader.
Sent from my Nexus 10 using xda app-developers app
Click to expand...
Click to collapse
Granted... There is a way to root without unlocking, but it requires dicey operations with partitions that could result in a fancy paperweight.
Sent from my Nexus 10 using Tapatalk HD

To root?

I've just got my N4 and am thinking about rooting it to allow me to install cerebus on the system partition, when a new version of android comes out would I simply be able to delete the cerebus apk and update the software? Also once the boot loader is unlocked can I re-root (in case i loose root with the update) without loosing any data?
Cheers
Sent from my Nexus 4 using xda app-developers app
Unlock the boot loader before you do anything because it will wipe all of your data. Then root it. As long as you don't install a custom recovery, I believe that you can still get the ota updates.
Edit..Rooting does not wipe data.
Sent from my Nexus 4 using xda premium
Sweet, thanks very much.
Sent from my Nexus 4 using xda app-developers app
lyall29 said:
Unlock the boot loader before you do anything because it will wipe all of your data. Then root it. As long as you don't install a custom recovery, I believe that you can still get the ota updates.
Edit..Rooting does not wipe data.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
if i remember correctly, using a custom recovery stops OTA updates
but you can always fastboot flash a new google stock image when an update is available : https://developers.google.com/android/nexus/images
(you have to root again afterwards)

Is anyone updating their bootloader?

I've seen some people say its a good idea to update it and others say its not needed, and doesn't offer any improvements. I'm currently stock, rooted, and unlocked and trying to decide if I should revert to stock, take the ota and have everything update or just flash one of the 4.3 stock zip. I saw you can fastboot the updated bootloader but I have like no experience with fastboot and wouldn't want to screw anything up.
So its either revert to stock and accept the ota and gain the updated bootloader, or just leave the old one there and flash 4.3. I could try fastboot but weary of that method.
Sent from my SCH-I535 using xda app-developers app
Do not be afraid of using fastboot so long as the commands you typed are correct.
Leonhan said:
Do not be afraid of using fastboot so long as the commands you typed are correct.
Click to expand...
Click to collapse
Okay thanks...I'm actually in the middle of flashing clean ROM. First ROM on my nexus. I can still go back later and update the bootloader right?
Sent from my SCH-I535 using xda app-developers app
Great. So I flashed clean ROM 4, reboot system and now it keeps automatically booting up into recovery. It shows thr google splash screen, flashes and it shows again. Then boots into recovery. What's going on here?
Sent from my SCH-I535 using xda app-developers app

Nexus 7 LTE factory image

when i unlock and root my device (Nexus 7 with LTE) how can i get back to unroot and lock
will be a factory image next time
You don't need an image to lock the device. If you want to go back to stock unrooted, you can fastboot boot recovery and then backup all partitions prior to rooting it after the unlock. Then you can do a regular fastboot flash to flash recovery and flash the superuser zip. Or wait for a factory image as I think one will be along eventually.
Sent from my One using Tapatalk 4
Easiest way is to:
fastboot OEM lock
fastboot OEM unlock
fastboot OEM lock
Unlocking will wipe all data, including root so you'll be stock. Then relock the bootloader.
Sent from my Nexus 7 using XDA Premium 4 mobile app
how long can it take for a factory image.
player911 said:
Easiest way is to:
fastboot OEM lock
fastboot OEM unlock
fastboot OEM lock
Unlocking will wipe all data, including root so you'll be stock. Then relock the bootloader.
Sent from my Nexus 7 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Nope. Unlocking does not touch root. Root is in the system partition and most people with root have a custom recovery. Unlocking only does a true factory reset (wipe the data and cache partition which includes sdcard). This won't work to remove root.
Sent from my One using Tapatalk 4
heartbeat.rulez said:
how long can it take for a factory image.
Click to expand...
Click to collapse
It could be a couple weeks from when the device was released based on how long the WiFi version took.
Sent from my One using Tapatalk 4
and how long it was. i buy my device last week in germany (official sell start)
tiny4579 said:
It could be a couple weeks from when the device was released based on how long the WiFi version took.
Sent from my One using Tapatalk 4
Click to expand...
Click to collapse
Damn I just killed my tablet after I installed a custom rom, but for the "Flo" aka the wifi version. I hope google will release the factory image soon...
Kelteseth said:
Damn I just killed my tablet after I installed a custom rom, but for the "Flo" aka the wifi version. I hope google will release the factory image soon...
Click to expand...
Click to collapse
check german forum android-hilfe for a nandroid backup and instructions: http://www.android-hilfe.de/root-cu...oid-backup-der-lte-version-3.html#post6311217
xdacinq said:
check german forum android-hilfe for a nandroid backup and instructions:
Click to expand...
Click to collapse
Thanks but I read that as well but I'm using ClockworkMod so I dont think this will work.
Kelteseth said:
Thanks but I read that as well but I'm using ClockworkMod so I dont think this will work.
Click to expand...
Click to collapse
here factory image :
https://developers.google.com/android/nexus/images#razorg

[ADB SIDELOAD] SuperSU flashable zip

Hi folks!
Where find I one SuperSU.zip file to root my device through ADB SIDELOAD (stock recovery)?
My device:
- Boot loader LOCKED;
- UNroot;
- 4.4.3 stock.
I don't wanna install a custom recovery neither unlock the boot loader.
Is it possible?
Thanks in advance.
bobgeneric said:
Hi folks!
Where find I one SuperSU.zip file to root my device through ADB SIDELOAD (stock recovery)?
My device:
- Boot loader LOCKED;
- UNroot;
- 4.4.3 stock.
I don't wanna install a custom recovery neither unlock the boot loader.
Is it possible?
Thanks in advance.
Click to expand...
Click to collapse
To flash the super su zip you need a custom recovery, for that you need to unlock the bootloader. You can find it by Google "supersu zip file xda"
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
To flash the super su zip you need a custom recovery, for that you need to unlock the bootloader. You can find it by Google "supersu zip file xda"
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
With the boot loader unlocked, will I update via OTA?
bobgeneric said:
With the boot loader unlocked, will I update via OTA?
Click to expand...
Click to collapse
Yes, you'll still get the ota. But, unlocking the bootloader will wipe your device
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
Yes, you'll still get the ota. But, unlocking the bootloader will wipe your device
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Ow!! thanks.... better make a backup...
Can I re-lock and remove the custom Recovery after root?
bobgeneric said:
Ow!! thanks.... better make a backup...
Can I re-lock and remove the custom Recovery after root?
Click to expand...
Click to collapse
You can just boot into the custom recovery
fastboot boot recovery.img. You'll just boot into and not install it. Once you boot into it flash supersu. You're retain the stock recovery. You can then re-lock the bootloader if you want.
Oh, as an fyi, when you take an ota you do lose root so you may want to consider leaving the bootloader unlocked so you don't have to wipe your device again after the ota if you want to root it again
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
You can just boot into the custom recovery
fastboot boot recovery.img. You'll just boot into and not install it. Once you boot into it flash supersu. You're retain the stock recovery. You can then re-lock the bootloader if you want.
Oh, as an fyi, when you take an ota you do lose root so you may want to consider leaving the bootloader unlocked so you don't have to wipe your device again after the ota if you want to root it again
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Hey jed1639,
Is it possible to adb sideload the superSu.zip file on a galaxy S6 with Android 6.0 beta and encrypted mememory on it? Because, if I try to install the .zip file via the given Custom Recovery (PhilZ touch recovery) then I get the following error:
E: Can't mount /sdcard
This frustrates me. Could you help me?
Edit: Fixed! It works

Categories

Resources