Relock and Unlock bootloader with LineageOS installed? - Xiaomi Mi 5 Questions & Answers

I have a Mi5 running LineageOS 14.1
I flashed this ROM a few months ago without the optional root package, so (obviously) there's no root access. However there's a few apps that will not open if root was detected, and while the ROM doesn't have root, I think the apps knew the bootloader was unlocked. So I was wondering if it's possible to relock the bootloader, and then unlock it again if I need to change the ROM.
Can this be done? I flashed the ROM with TWRP; however I didn't keep TWRP as a permanent recovery so it should be running the stock recovery.

Steve977 said:
I have a Mi5 running LineageOS 14.1
I flashed this ROM a few months ago without the optional root package, so (obviously) there's no root access. However there's a few apps that will not open if root was detected, and while the ROM doesn't have root, I think the apps knew the bootloader was unlocked. So I was wondering if it's possible to relock the bootloader, and then unlock it again if I need to change the ROM.
Can this be done? I flashed the ROM with TWRP; however I didn't keep TWRP as a permanent recovery so it should be running the stock recovery.
Click to expand...
Click to collapse
I think you shouldn't. You can't unlock bootloader if you not on miui. And one mi account can unlock bootloader only once on 30 days.

Related

[Q] Re-lock after root, and keep root?

Hi all - I've read that in order to root it is necessary to unlock the bootloader and then root, but I've also read some threads where the bootloader can be re-locked. My question is whether I can still be rooted then, maybe with the use of OTA rootkeeper or some such. I haven't rooted yet (my prime uses would initially be for adblocking and wifi tether), but I'm thinking I will soon. However, I'd really like to be able to hold out until the 4.2/4.3 OTA comes out before flashing ROMS (need stable bluetooth in a bunch of areas, and want to wait and see if there are problems with that update in stock).
So, any way to be stock, re-locked and rooted?
Can't you just root using the normal method then flash stock recovery to remove "*** Tampered***" and then re-lock with fastboot? You're system partition wont be stock obviously because it will have the su binary. You're boot loader will say "*** Relocked ***" though. I'm thinking it might be possible to remove "*** Relocked ***" using JTAG if someone can find the area in memory where the history of unlocking is stored.
Unlock bootloader, flash custom recovery, use Aroma File manager to copy su to /system/bin and set permissions, reflash stock recovery, relock bootloader, install Superuser from play store. This should work but I haven't tried it.

What if: I want to completely unroot, unlock and install OTA

I am currently Rooted, unlocked bootloader, running a 5.0.2 ROM and TWRP. If I just wanted to unroot, lock boot loader and star from scratch. Meaning, accept OTA, unlock bootloader, root and install TWRP. Is this possible?
Yes.
If you want to make it easy
http://forum.xda-developers.com/showthread.php?t=2947452
Sent from my Nexus 6
Xirix12 said:
I am currently Rooted, unlocked bootloader, running a 5.0.2 ROM and TWRP. If I just wanted to unroot, lock boot loader and star from scratch. Meaning, accept OTA, unlock bootloader, root and install TWRP. Is this possible?
Click to expand...
Click to collapse
I wouldn't re-lock these devices ever... maybe if you sell it or turn it in. Too risky. Just use Wugs from that link, once 5.1 is there, flash it using his toolkit. Then root. Done.
I can't believe the amount of threads here and in the Nexus 9 board where guys are bricking their devices due to that darn "OEM unlock" being unchecked.

Le S3...X522 still can't be unlocked?

Still looking for the Le S3 X522 version bootloader unlock, as far as I know it still can't be unlocked, or can it?
Would be nice to have it unlocked.
How does a locked bootloader affect root? I know you can temporarily unlock bootloader, does any of this affect xposed?
Ummm yes... It can be unlocked. I'm running Lineage 7.1.1 on the S3 right now...
Bootloader still cannot be unlocked permanently, only temporary, in other words I can unlock it and flash everything I needed but once it is rebooted it will lock again and in order to flash something it will have to be unlocked again, it has nothing to do with booting into twrp, it might even look like it is flashing but really it will not, maybe some things can be flashed but things that affect system will not.
You don't need to permanently unlock the bootloader. You just unlock it long enough to install twrp. Once you have twrp you can flash whatever you want.
bdogz24 said:
You don't need to permanently unlock the bootloader. You just unlock it long enough to install twrp. Once you have twrp you can flash whatever you want.
Click to expand...
Click to collapse
But how exactly?

[Q] Relocking after Magisk install

Is it possible to install Magisk and then relock the bootloader?
This is on OPWS27.1.3 (March update, Android 8.0)
Aka:
1) unlock bootloader
2) flash Magisk boot
3) install Magisk
4) relock bootloader
The general advice is to not lock the bootloader with custom or modded ROMs. If you want to throw caution to the wind, you probably want to have a stable, custom recovery first.
The dangers of locking it is that you will probably get stuck with a soft bricked device.
gee one said:
The general advice is to not lock the bootloader with custom or modded ROMs. If you want to throw caution to the wind, you probably want to have a stable, custom recovery first.
The dangers of locking it is that you will probably get stuck with a soft bricked device.
Click to expand...
Click to collapse
Ah, that's unfortunate. I was hoping to be able to essentially add sudo usable via adb when debugging is enabled leaving everything else intact. Is it possible to gain root privileges without unlocking the bootloader or using a modded ROM?

Question Mi 11 Black Screen after Update to MIUI 12.0.9.0 RKBMIXM via Updater app

Please help fellow person in trouble here guys, i have so many data stored in the device and the device only shows Always on Display (AOD) running after the update finished and restart. Can somebody tell is it possible to at least get my data back? My bootloader are not unlocked and I use global device performing local update using zip via Updater app. Then suddenly the black screen happen after the device prompt to reboot :/
You flashed the whole rom or the ota update? Im asking because i flashed the same as you yesterday 12.0.9.0 RKBMIXM but my bootloader is unlocked and i flashed the whole rom file (3.1gb) and everythings working fine for me
Same thing happened to mine, when updating via updater, flashed whole 3.1gb, after updating then rebooted it got stuck on bootloader, so i factory reset then it got locked, had to go to service center as the password on my mi account wont work. My bootloader was locked also btw.
Seems like the locked bootloader is the problem. Can someone else confirm this?
Usually you can try to enter recovery mode to wipe data. Which will format the phone, because the version you're trying to flash isn't yet stable to flash. Hope this helps.
Yes, after flash and reboot it will become blank screen, but when try to turn off, the usual four icon menu will appear, just restart into recovery and wipe data will start the phone successfully.
Disyraq said:
You flashed the whole rom or the ota update? Im asking because i flashed the same as you yesterday 12.0.9.0 RKBMIXM but my bootloader is unlocked and i flashed the whole rom file (3.1gb) and everythings working fine for me
Click to expand...
Click to collapse
Guys I want to have some infos on Xiaomi mi 11 lite 5g.. i just buy it and want to root, I think there is no recovery for the moment. For root, I need to unlock bootloader, and it wipe the entire phone. But after root, does it block OTA, or I have to relock to update and so on...thanks
rayman95 said:
Guys I want to have some infos on Xiaomi mi 11 lite 5g.. i just buy it and want to root, I think there is no recovery for the moment. For root, I need to unlock bootloader, and it wipe the entire phone. But after root, does it block OTA, or I have to relock to update and so on...thanks
Click to expand...
Click to collapse
It doesnt block OTA if you unlock bootloader. You will be able to get OTA as long as you have stock recovery
Disyraq said:
It doesnt block OTA if you unlock bootloader. But im not sure if you get OTA if you root because you are modifying the system partition.
Click to expand...
Click to collapse
so in case of update, I have to relock BL, update, and then unlock, so wipe everything, and root...
no way to do differently??
rayman95 said:
so in case of update, I have to relock BL, update, and then unlock, so wipe everything, and root...
no way to do differently??
Click to expand...
Click to collapse
Dont need to relock BL. Just uninstall all magisk components, update, then re-root with magisk
Disyraq said:
Dont need to relock BL. Just uninstall all magisk components, update, then re-root with magisk
Click to expand...
Click to collapse
good to know..have to create xiaomi account to get oem unlock and find a good tuto...that's 8 years I'm on a galaxy note 3....have to adapt to xiaomi device....

Categories

Resources