Can I "unroot" and lock bootloader again if rooted? - OnePlus 8 Questions & Answers

Hi all,
If I root my phone to be able to backup persist.img partition and then install IN21BA (instead of my IN21AA os), would I be able to unroot my phone and leave it like if I never rooted it or unlocked bootloader?
Thank you.

I unlocked bootloader, installed TWRP, rooted, backed up persist.img, downgraded from version 10.5.10IN21AA to 10.5.6IN21AA and after that installed from smartphone the 10.5.7IN21BA firmware. Then checked that no root is available and recovery is stock. Locked bootloader again. All is working like a charm.

Xampy said:
I unlocked bootloader, installed TWRP, rooted, backed up persist.img, downgraded from version 10.5.10IN21AA to 10.5.6IN21AA and after that installed from smartphone the 10.5.7IN21BA firmware. Then checked that no root is available and recovery is stock. Locked bootloader again. All is working like a charm.
Click to expand...
Click to collapse
That's great to know thank you. I have been wondering this myself.

Related

[Q] If I update a rooted device OTA, will I have to run OEM unlock to root again

Hi,
I have an LG Nexus 5 (KTU84P, or "hammerhead") running Android KitKat 4.4.4. It is rooted using Chainfire's AutoRoot for the Nexus 5 for Android 4.4.4, and I have no custom ROM, simply Vanilla Android but with SuperSU. I am looking to update to Android L, version 5, and I have received a notification for the OTA update.
I understand that with OTA updates, your data will not be wiped, but you will lose root access. I have researched ways to keep the root, but they only appear to be for older versions of Android. I understand that I will lose root.
My question is, will I have to run the "oem unlock" (which I understand is the part of the whole rooting process which actually wipes your device), or will I just have to load Chainfire's AutoRoot? If I go through with it, I will use his AutoRoot for hammerhead for Android L, but basically my end goal is to root and update and not lose any data.
Thanks, if you need more info, let me know?
Autoroot will not wipe your data if your bootloader is already unlocked. Only if your bootloader was locked to begin with.
Nope. Once unlocked it stays unlocked unless you lock it yourself
frenziedfemale said:
Autoroot will not wipe your data if your bootloader is already unlocked. Only if your bootloader was locked to begin with.
Click to expand...
Click to collapse
musclehead84 said:
Nope. Once unlocked it stays unlocked unless you lock it yourself
Click to expand...
Click to collapse
Thank you both very much!
Of course with L you can no longer get the OTA if you have custom recovery. Just incase you weren't aware
rootSU said:
Of course with L you can no longer get the OTA if you have custom recovery. Just incase you weren't aware
Click to expand...
Click to collapse
I have updated OTA, and I kept EVERYTHING, even my root apps, but when I open up SuperSU I get a notification explaining that the Su binary is not installed, which is obviously removed when updating. Now, I'm just backing up my data. Another thing I would like to confirm is, if I use Chainfire's Auto Root for the Nexus 5 running Android 5.0, will it run OEM unlock again, and if it does, will I be affected considering my bootloader is already unlocked?
AudaxNovus said:
I have updated OTA, and I kept EVERYTHING, even my root apps, but when I open up SuperSU I get a notification explaining that the Su binary is not installed, which is obviously removed when updating. Now, I'm just backing up my data. Another thing I would like to confirm is, if I use Chainfire's Auto Root for the Nexus 5 running Android 5.0, will it run OEM unlock again, and if it does, will I be affected considering my bootloader is already unlocked?
Click to expand...
Click to collapse
If its unlocked, it can't be unlocked again.
Just a little info, afaik, if you update from KK to L and had an unlocked bootloader ('oem unlock'), like I did, your bootloader will get locked again after update, as it did with me.
So that "if it was unlocked it'll stay unlocked" is not correct.
D3abL3 said:
Just a little info, afaik, if you update from KK to L and had an unlocked bootloader ('oem unlock'), like I did, your bootloader will get locked again after update, as it did with me.
So that "if it was unlocked it'll stay unlocked" is not correct.
Click to expand...
Click to collapse
Odd. Hasn't locked for anyone else afaik
D3abL3 said:
Just a little info, afaik, if you update from KK to L and had an unlocked bootloader ('oem unlock'), like I did, your bootloader will get locked again after update, as it did with me.
So that "if it was unlocked it'll stay unlocked" is not correct.
Click to expand...
Click to collapse
There's a REALLY easy way to test that theory.
Open the factory image archives and check the script. Unless it runs 'fastboot oem lock' it isn't relocking it.
#stayparanoid
Don't you think this makes the trick?
"fastboot flash bootloader bootloader-hammerhead-hhz12d.img"

[Q] Help with installing lollipop on unlocked phone

Hello !
I recently bought a used Z3 6603, and wanted to update it to lollipop.
But it seems it has a unlocked bootloader (according to service menu) and when i recieved it, it was factory reset, but some 3rd party apps were still installed.
One of them Super SU, so it was rooted.
I was told that i could update the firmware if i just used the Full Uninstall feature in Super Su, so i did that.
I still can't update using sony companion, becouse it knows the software is not the original one.
And i cant reinstall super su, its saying that there is no SU binary installed and the program cant install it.
I have flashed phones before, but it was really a long time ago, so im asking for some help to fix this.
Its running 4.4.4 build 23.0.1.A.5.77 and stock rom i think.
Please tell me what to do, and what info you might need !
I want to have the phone in lollipop, but everything stock, no root, no bootloader etc.
And somewhere I read something about DRM keys. Please help me with fixing that aswell thank you.
Regards ImmoralCore
ImmoralCore said:
Hello !
I recently bought a used Z3 6603, and wanted to update it to lollipop.
But it seems it has a unlocked bootloader (according to service menu) and when i recieved it, it was factory reset, but some 3rd party apps were still installed.
One of them Super SU, so it was rooted.
I was told that i could update the firmware if i just used the Full Uninstall feature in Super Su, so i did that.
I still can't update using sony companion, becouse it knows the software is not the original one.
And i cant reinstall super su, its saying that there is no SU binary installed and the program cant install it.
I have flashed phones before, but it was really a long time ago, so im asking for some help to fix this.
Its running 4.4.4 build 23.0.1.A.5.77 and stock rom i think.
Please tell me what to do, and what info you might need !
I want to have the phone in lollipop, but everything stock, no root, no bootloader etc.
And somewhere I read something about DRM keys. Please help me with fixing that aswell thank you.
Regards ImmoralCore
Click to expand...
Click to collapse
Your DRM keys are lost forever.
TheTeslaCoil said:
Your DRM keys are lost forever.
Click to expand...
Click to collapse
Ok, so they are lost even if I use the first backup that was made by the person I bought it from ?
DRM=Hardcoded=Once unlocked, always DRM free, even if you use the recovery image ?
And the rest of the questions, what am I supposed to do to get stock lollipop?
In the matter of fact it does not matter if its unlocked or locked, I just want legit lollipop, with the possibility to update regularly. (But if root is possible at the same, it can still be rooted)
Thanks for your reply !
You need the TA backup. Not system backup.
And careful not to restore some other TA.
If the previous owner backed up TA, good. If not, no chance to recover them.
Download your specific firmware in ftf format and flash it with Flashtool.
Make a clean install.
You cannot recieve OTA with an unlocked bootloader, only if you relock, but there is no point in doing that if the DRM keys are lost.
So, from where you stand, keep it rooted and unlocked, because you can do much more with it : Custom ROM' s [at the moment stock is best]...custom kernels with recovery...mods...etc.
After you flash the ftf, flash via adb a custom kernel with recovery and from recovery flash SuperSU update, as a flashable zip, that will root the phone and install SuperSU.Search also for busybox flashable zip.
TheTeslaCoil said:
You need the TA backup. Not system backup.
And careful not to restore some other TA.
If the previous owner backed up TA, good. If not, no chance to recover them.
Download your specific firmware in ftf format and flash it with Flashtool.
Make a clean install.
You cannot recieve OTA with an unlocked bootloader, only if you relock, but there is no point in doing that if the DRM keys are lost.
So, from where you stand, keep it rooted and unlocked, because you can do much more with it : Custom ROM' s [at the moment stock is best]...custom kernels with recovery...mods...etc.
After you flash the ftf, flash via adb a custom kernel with recovery and from recovery flash SuperSU update, as a flashable zip, that will root the phone and install SuperSU.Search also for busybox flashable zip.
Click to expand...
Click to collapse
Ok, I will try that then, but if I use flashtool to update to lollipop, will I still be able to root easy, or should I reinstall 4.4.4 clean, then root, fix recovery kernel and everything, and then lollipop or what goes first?
Does flash/kernel etc affect the fact that it has an unlocked bootloader ? do i need to do anything with that, or do it stay unlocked?
ImmoralCore said:
Ok, I will try that then, but if I use flashtool to update to lollipop, will I still be able to root easy, or should I reinstall 4.4.4 clean, then root, fix recovery kernel and everything, and then lollipop or what goes first?
Does flash/kernel etc affect the fact that it has an unlocked bootloader ? do i need to do anything with that, or do it stay unlocked?
Click to expand...
Click to collapse
If you have unlocked the bootloader it is always a trivial matter to root.
Just flash an insecure kernel.
If one does not exist use [NUT]'s online kernel builder to make one with recovery incorporated in it. Its very straightforward and an automated process.
So, update using flashtool, flash your custom kernel, and you have root and recovery.
gregbradley said:
If you have unlocked the bootloader it is always a trivial matter to root.
Just flash an insecure kernel.
If one does not exist use [NUT]'s online kernel builder to make one with recovery incorporated in it. Its very straightforward and an automated process.
So, update using flashtool, flash your custom kernel, and you have root and recovery.
Click to expand...
Click to collapse
1. Sorry for my noobish question, but define insecure kernel?
2. Did I get it right? I read about ppl downgrading their phones to 4.4.4 and then installing stuff. And for me it does not matter wich version it is, becouse the unlocked bootloader makes it easy to flash, even what version you are running?
ImmoralCore said:
1. Sorry for my noobish question, but define insecure kernel?
2. Did I get it right? I read about ppl downgrading their phones to 4.4.4 and then installing stuff. And for me it does not matter wich version it is, becouse the unlocked bootloader makes it easy to flash, even what version you are running?
Click to expand...
Click to collapse
1) a rooted kernel.
2) If you have unlocked there is no need to follow any of the locked bootloader guides, they are a waste of your time. One of the points point of unlocking the phone is to easily get root. You just flash a custom kernel to gain root.
If you have a locked bootloader then you have to go through all the fuss of downgrading etc etc.... but with an unlocked bootloader its so easy and straightforward
gregbradley said:
1) a rooted kernel.
2) If you have unlocked there is no need to follow any of the locked bootloader guides, they are a waste of your time. One of the points point of unlocking the phone is to easily get root. You just flash a custom kernel to gain root.
If you have a locked bootloader then you have to go through all the fuss of downgrading etc etc.... but with an unlocked bootloader its so easy and straightforward
Click to expand...
Click to collapse
Ok, thank you very much for your answers both of you!
I understand everything much better, now its just some flashing to do, c ya ! :good:
ImmoralCore said:
Ok, thank you very much for your answers both of you!
I understand everything much better, now its just some flashing to do, c ya ! :good:
Click to expand...
Click to collapse
Good luck.

Can I unlock bootloader on 5.1.1 eXistenZ rom?

How can I unlock the bootloader on my rooted 5.1.1 d6603 eXistenZ rom without having to loose all my data? And if that's not possible, then how can I unlock the bootloader period? Does it matter if you're rooted and can you do it while on 5.1.1?
CajunShizz said:
How can I unlock the bootloader on my rooted 5.1.1 d6603 eXistenZ rom without having to loose all my data? And if that's not possible, then how can I unlock the bootloader period? Does it matter if you're rooted and can you do it while on 5.1.1?
Click to expand...
Click to collapse
You always lose data when you unlock the bootloader.
It does not matter what ROM you are on or if you are rooted.
Any ROm that works on locked bootloader also works on unlocked bootloader
To unlock the bootloader go here http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
Will I loose root and my dual recovery and if so is there root for 5.1.1? Thanks for the help.
CajunShizz said:
Will I loose root and my dual recovery and if so is there root for 5.1.1? Thanks for the help.
Click to expand...
Click to collapse
No, (well you shouldn't) as root and recovery are installed to the system. Unlocking the boot does wipe data though.
And if once you have an unlocked bootloader you can always root any firmware on any android version. That's the main reason to unlock the bootloader. You will also be able to delete recovery from your system and have a custom kernel with recovery built into it.

Freshly rooted 60450...does my bootloader need to be unlocked

Currently on stock MM, rooted with Sahara and fire hose and installed twrp. Does the bootloader need to be unlocked before I go flashing roms? From what I am reading, I should be able to flash normally through TWRP, but I've been wrong before!!
I didn't think you could flash twrp unless the bootloader was unlocked.
audit13 said:
I didn't think you could flash twrp unless the bootloader was unlocked.
Click to expand...
Click to collapse
I just followed the instructions to push twrp through Sahara and then used it to install superuser. I never unlocked bootloader... That's why I was hesitant to start flashing
Edit: I have installed xposed and the modules I've used are all working

Will I get a brick if I lock bootloader with an old stock ROM?

I want to relock bootloader, but will I get brick if I lock bootloader with old stock ROM installed on device?
Look inside here:
Lock BootLoader after Rooting?
Thanks for taking time to read my query. I was wondering if I've to lock boot-loader after rooting ( I just rooted my Oero) and before looking can I take everything backup on titanium backup and then restore everything after locking ? I'm I...
forum.xda-developers.com
jwoegerbauer said:
Look inside here:
Lock BootLoader after Rooting?
Thanks for taking time to read my query. I was wondering if I've to lock boot-loader after rooting ( I just rooted my Oero) and before looking can I take everything backup on titanium backup and then restore everything after locking ? I'm I...
forum.xda-developers.com
Click to expand...
Click to collapse
I know that if I install modified ROM and lock bootloader I will get a brick. But will I get a brick if i install official (stock) ROM but old version and then lock bootloader? For example, I installed stock ROM (not modified) with Android 10, but the latest is Android 11 then I locked bootloader. Will I get a brick?
jwoegerbauer said:
Look inside here:
Lock BootLoader after Rooting?
Thanks for taking time to read my query. I was wondering if I've to lock boot-loader after rooting ( I just rooted my Oero) and before looking can I take everything backup on titanium backup and then restore everything after locking ? I'm I...
forum.xda-developers.com
Click to expand...
Click to collapse
The question is, can I lock the bootloader with the old version of the official firmware installed without getting a brick. Because the old version of the firmware works smoother.
Locking a bootloader doesn't affect ROM actually installed: Lock or Unlock will wipe your data, that's all.
jwoegerbauer said:
Locking a bootloader doesn't affect ROM actually installed: Lock or Unlock will wipe your data, that's all.
Click to expand...
Click to collapse
So can I install old version of fw? I heard something about rollback protection.
Oybek78 said:
So can I install old version of fw? I heard something about rollback protection.
Click to expand...
Click to collapse
You still, or I didn´t find, that you mention the model of your device, that´s matter to have the right answer.
Also, it depends on which method you used to flash the ROM, if you officially, flashed the ROM, and the rollback didn´t affect your device, then it won´t do, locking or unlocking it.
Oybek78 said:
So can I install old version of fw? I heard something about rollback protection.
Click to expand...
Click to collapse
The stock ROM can be installed on the phone at any time. Mostly via ADB / Fastboot tools.
SubwayChamp said:
You still, or I didn´t find, that you mention the model of your device, that´s matter to have the right answer.
Also, it depends on which method you used to flash the ROM, if you officially, flashed the ROM, and the rollback didn´t affect your device, then it won´t do, locking or unlocking it.
Click to expand...
Click to collapse
My phone is Sony Xperia 1 J9110. I flashed it officially to the latest ROM through settings. Then I unlocked the bootloader and flashed the old stock ROM via newflasher. Then I decided to relock the bootloader with old stock ROM installed. Does this mean that I will get my phone bricked if I lock the bootloader with old stock ROM actually installed?
jwoegerbauer said:
The stock ROM can be installed on the phone at any time. Mostly via ADB / Fastboot tools.
Click to expand...
Click to collapse
But can I lock the bootloader with old stock ROM installed?
I saw somewhere that if you lock the bootloader with the old firmware version, you may get brick. But I'm not sure about that.
Why steadily repeat your posts?
FYI: I hereby opt out of this thread.
jwoegerbauer said:
Why steadily repeat your posts?
FYI: I hereby opt out of this thread.
Click to expand...
Click to collapse
Because you answered me
Oybek78 said:
My phone is Sony Xperia 1 J9110. I flashed it officially to the latest ROM through settings. Then I unlocked the bootloader and flashed the old stock ROM via newflasher. Then I decided to relock the bootloader with old stock ROM installed. Does this mean that I will get my phone bricked if I lock the bootloader with old stock ROM actually installed?
Click to expand...
Click to collapse
Yes, always that you flash a stock ROM, you can re-lock it, fastboot will erase the data as a security measurement.

Categories

Resources