Question How to lock bootloader without factory reset? - Redmi Note 10 Pro

I've an unlocked bootloader on stock MIUI. I know how to lock the bootloader but this does a factory reset. Is there a workaround so I don't lose all data?
I've seen some older posts for unlocking without losing data, by NOT clicking reboot but turning phone off and on.

Anyone? Thanks heaps.

boland said:
I've an unlocked bootloader on stock MIUI. I know how to lock the bootloader but this does a factory reset. Is there a workaround so I don't lose all data?
I've seen some older posts for unlocking without losing data, by NOT clicking reboot but turning phone off and on.
Click to expand...
Click to collapse
AFAIK you really can't relock bootloader without format data. Either lock it and face format data or keep it unlocked and move to a custom ROM. There are many ways to backup your data but the best method for me is backing up through PC or SD card. If you're worried that having bootloader unlock can prevent you from using certain apps then you can always root and (somewhat) hide that.

BigChungus321 said:
AFAIK you really can't relock bootloader without format data. Either lock it and face format data or keep it unlocked and move to a custom ROM. There are many ways to backup your data but the best method for me is backing up through PC or SD card. If you're worried that having bootloader unlock can prevent you from using certain apps then you can always root and (somewhat) hide that.
Click to expand...
Click to collapse
Thanks. I've moved away from custom ROMs as it's just too time consuming for me.
Google Pay doesn't work when the bootloader is unlocked. Yes, I can install Magisk and Magisk Hide, but with Magisk installed OTA are no longer possible.

boland said:
Thanks. I've moved away from custom ROMs as it's just too time consuming for me.
Google Pay doesn't work when the bootloader is unlocked. Yes, I can install Magisk and Magisk Hide, but with Magisk installed OTA are no longer possible.
Click to expand...
Click to collapse
Still possible but the method is now manually flashing instead of just download and reboot.

Related

How to go from AT&T LMY48Z to latest AND get updates

AT&T has not released Marshmallow for the Nexus 6 so I'm ready to root and flash my way there, but, I'd like to make sure I get future updates. Can you tell me if there are any flaws in this process I should know about? Is there any way to do this that will not erase user data? Thanks in advance.
1. Unlock bootloader
2. Root phone
3. Install recovery
4. Flash latest factory image
5. Lock bootloader?
If I do this will I then receive future update?
Is your bootloader locked? If it is I'm sorry you can't because when you unlock its going to wipe your device,if you want to do it
1. Unlock bootloader
2. Flash factory image
3. I don't recommend it but if you must relock bootloader only after you verify it boots and operates correctly
Other steps are not necessary
holeindalip said:
Is your bootloader locked? If it is I'm sorry you can't because when you unlock its going to wipe your device,if you want to do it
1. Unlock bootloader
2. Flash factory image
3. I don't recommend it but if you must relock bootloader only after you verify it boots and operates correctly
Other steps are not necessary
Click to expand...
Click to collapse
Are you saying I do not need to root to flash the factory image? Do I need to lock the bootloader in order to receive updates?
jeffery fisherman said:
Are you saying I do not need to Roy to flash the factory image? Do I need to lock the bootloader in order to receive updates?
Click to expand...
Click to collapse
if you root the device then flashing the factory image will unroot it. If you want to preserve ota ability and get to marshmallow then take a adb backup of all your apps and backup your internal storage files to your computer, unlocking your bootloader will wipe out the device to factory condition, flash the latest marshmallow image MMB29S, restore your adb backup to get your apps and data back, drag and drop your other files back into internal storage. DO NOT! relock your bootloader because that will wipe everything again and you don't need to be locked to get an update and if anything were to go wrong down the road with mods or root or whatever having a locked bootloader on nexus 6 or newer is basically an easy way to hard brick your device since you have to enable OEM Unlock inside the OS to unlock your bootloader and whenever you'd need an unlocked bootloader to fix something then the device probably won't boot. If you're worried about security then keep in mind that if you have an encryption password set (booting the phone asks you to put in your lockscreen code), even if someone pulls all your files off your phone they can't access them without your password.
jeffery fisherman said:
Are you saying I do not need to root to flash the factory image? Do I need to lock the bootloader in order to receive updates?
Click to expand...
Click to collapse
correct bootloader does not need to be locked to recieve ota

How to relock the bootloader?

Hi,
I've searched and found how to do it but it was for Android 5.1 but I'm on 7.0 and I my recovery is TWRP 3.0.2-0 and apparently there are more steps to do if you are on TWRP, I'm wondering what are they.
Thanks
test84 said:
Hi,
I've searched and found how to do it but it was for Android 5.1 but I'm on 7.0 and I my recovery is TWRP 3.0.2-0 and apparently there are more steps to do if you are on TWRP, I'm wondering what are they.
Thanks
Click to expand...
Click to collapse
First, questions need to go in the Nexus 6 Q&A, Help & Troubleshooting Thread, not the General thread. Second, the steps to lock the bootloader have not changed. It's done from the bootloader with fastboot and the command "fastboot oem lock". It shouldn't matter what recovery you have.
Re-locking needs stock recovery(maybe full stock; boot, recovery, system) if you try to re-lock your boot loader without stock recovery you might hardbrick your phone. So just backup your apps and files, flash a stock image from google and re-lock your boot loader with "fastboot oem lock". Which probably needs wiping your phone.
Before you do anything search these forums for the many people who locked their bootloader and then when they had problems ended up with a bricked and useless device. Unless you have a very special reason for locking, leave it unlocked
dahawthorne said:
Before you do anything search these forums for the many people who locked their bootloader and then when they had problems ended up with a bricked and useless device. Unless you have a very special reason for locking, leave it unlocked
Click to expand...
Click to collapse
this right here...there is really no reason to ever re lock your bootloader
I flashed the factory image and and it went fine. But the bootloader is still unlocked. My main concern for locking the bootloader is to prevent any malicious app to root the phone and hide themselves by like installing as system app or something. And I'm not planning to flash any custom ROM. So:
1- Since I'm on stock ROM, is there still a possibility of hard bricking my phone if I relock?
2- If I leave it unlocked, will malwares be able to tamper with the phone by the means I mentioned or similar approaches?
Thanks
2. No, they don't. Bootloader is on a completly different layer.
test84 said:
I flashed the factory image and and it went fine. But the bootloader is still unlocked. My main concern for locking the bootloader is to prevent any malicious app to root the phone and hide themselves by like installing as system app or something. And I'm not planning to flash any custom ROM. So:
1- Since I'm on stock ROM, is there still a possibility of hard bricking my phone if I relock?
2- If I leave it unlocked, will malwares be able to tamper with the phone by the means I mentioned or similar approaches?
Thanks
Click to expand...
Click to collapse
I feel your concerns. I think the safest bet is to watch where you download apps and content from. And make sure "unknown sources" is turned off. That should minimize your potential for problems. I think the main thing is watching where you get apps from.

[Q] No OEM Unlock, Rooting, and stock ROM

I know that there are a lot of the missing OEM Unlock posts, but this isn't about how to force it to appear.
What I would like to know is that if I want to stay on the stock ROM, but I don't have the OEM unlocked option, would I be able to factory reset to clear out encryption and then root with Magisk?
The guide says that I need to have OEM unlocked to be able to root, so I'm curious what would happen if I tried to root with the OEM still being locked? Would I soft brick it?
This is quite different from the other phones I've used and it's extremely frustrating that Samsung decided to pull this kind of bs on everyone and so far, there's no solution to it.
Thanks
If the OEM switch is not visible and switched on, then you cannot flash any non-official binaries, which means you can't flash TWRP or Magisk, which at this point means you can't get root. That's why everything boils down to the OEM switch being enabled. Please contact Samsung expressing your dissatisfaction about this OEM issue. All of us should, until they react to remedy this.
If we can get to fastboot, why can't we boot TWRP, install Supersu/magisk and dm-verity thus gaining root.
This wouldn't replace the stock recovery.
I believe this was how the Axon 7 was rooted prior to bootloader unlock being presented/found.
I do this on one of my phones (not Samsung) as I only want root access and still be able to get OTA updates.
Would booting TWRP instead of flashing it trip Knox and would root be gained or would you find the boot partition or other system files be altered and you get the error that seems to popping up on these devices?
Just throwing this out there as food for thought.
ultramag69 said:
If we can get to fastboot, why can't we boot TWRP, install Supersu/magisk and dm-verity thus gaining root.
This wouldn't replace the stock recovery.
I believe this was how the Axon 7 was rooted prior to bootloader unlock being presented/found.
I do this on one of my phones (not Samsung) as I only want root access and still be able to get OTA updates.
Would booting TWRP instead of flashing it trip Knox and would root be gained or would you find the boot partition or other system files be altered and you get the error that seems to popping up on these devices?
Just throwing this out there as food for thought.
Click to expand...
Click to collapse
Having an unlocked bootloader is what would allow us to use fastboot to boot or flash an image. Just because we can access fastboot, doesn't mean we can get it to write to partitions, even temporarily. I haven't messed with a Samsung phone for years, so I could be wrong. This has been my experience with google bootloader in general.
fragtion said:
If the OEM switch is not visible and switched on, then you cannot flash any non-official binaries, which means you can't flash TWRP or Magisk, which at this point means you can't get root. That's why everything boils down to the OEM switch being enabled. Please contact Samsung expressing your dissatisfaction about this OEM issue. All of us should, until they react to remedy this.
Click to expand...
Click to collapse
From what I did read from other threads, if you don't see the option in the Developer Option Settings, then you shouldn't need to enable it
77Eric77 said:
From what I did read from other threads, if you don't see the option in the Developer Option Settings, then you shouldn't need to enable it
Click to expand...
Click to collapse
I was reading about this as well and what I got from that was in regards to custom roms, the oem unlock option is default to unlock and hidden. but for the stock rom, it's locked by default unless visibly given the option. otherwise when you go into download mode, it'll show FRP Lock: On.
Sent from my SM-G930F using Tapatalk
di11igaf said:
Having an unlocked bootloader is what would allow us to use fastboot to boot or flash an image. Just because we can access fastboot, doesn't mean we can get it to write to partitions, even temporarily. I haven't messed with a Samsung phone for years, so I could be wrong. This has been my experience with google bootloader in general.
Click to expand...
Click to collapse
Ah, but if I want to just root and nothing else, would I still need to have the bootloader unlocked? I'm used to rooting stuff but the technicalities and mechanics of the process escapes mr.
my hope is to atleast root the stock rom and factory reset including wiping the internal sd to start fresh. but if I factory reset on a stock rom, the internal storage would still be encrypted right?
Sent from my SM-G930F using Tapatalk
mputtr said:
Ah, but if I want to just root and nothing else, would I still need to have the bootloader unlocked? I'm used to rooting stuff but the technicalities and mechanics of the process escapes mr.
my hope is to atleast root the stock rom and factory reset including wiping the internal sd to start fresh. but if I factory reset on a stock rom, the internal storage would still be encrypted right?
Sent from my SM-G930F using Tapatalk
Click to expand...
Click to collapse
This is why I want to know if we can boot TWRP. It boots TWRP but leaves the stock recovery.
However, I'm not sure if the boot image is altered when flashing root. I know Magisk seems to alter the boot image but not sure if SuperSU does.
Would this trigger KNOX?
If it does trip KNOX, it's not worth booting into TWRP, might as well just bite the bullet and install but only if bootloader is unlocked 1st... Too expensive to just brick it for an experiment...
ultramag69 said:
This is why I want to know if we can boot TWRP. It boots TWRP but leaves the stock recovery.
However, I'm not sure if the boot image is altered when flashing root. I know Magisk seems to alter the boot image but not sure if SuperSU does.
Would this trigger KNOX?
If it does trip KNOX, it's not worth booting into TWRP, might as well just bite the bullet and install but only if bootloader is unlocked 1st... Too expensive to just brick it for an experiment...
Click to expand...
Click to collapse
personally I don't care about knox. I just want to be able to root and restore my apps so I can transfer my stuff from my s7 to the note 8 and freeze all the bloatware like touchwiz and stuff.
from what I gleaned from reading the threads is magisk makes a copy of the boot image as a backup.
but again I just want root and I can wait for a longer term solution in how to fix this moronic 7 day jail bs.
but I think knox will get tripped the moment you root
Sent from my SM-G930F using Tapatalk
mputtr said:
I was reading about this as well and what I got from that was in regards to custom roms, the oem unlock option is default to unlock and hidden. but for the stock rom, it's locked by default unless visibly given the option. otherwise when you go into download mode, it'll show FRP Lock: On.
Sent from my SM-G930F using Tapatalk
Click to expand...
Click to collapse
I didn't have OEM option as well (FRP lock was ON), I just followed me2151 guide but I was getting the partition error, so in first part I also added BL and after that everything went smoothly.
KNOX wasn't tripped, it's rooted as of this moment and tomorrow I will be installing custom rom.
PS: And yes it was an experiment but I was willing to take the risk because after reading half a day about no OEM option in developer options everyone was saying if it's not there you don't need it, I wasn't 100% sure but I was 98% sure I'm not going to brick it. btw I'm using Telus N950W note8 (locked)
I think you might want to be careful on that. I'm not sure who "everyone" is but the others like Dr.Ketan did not even recommend rooting without unlocking the option first and it seems to me that the general gist of the other thread (the 150+ page thread) was that you need it explicitly unlocked.
The ones who talked about not seeing the option means you probably don't need it are talking about custom roms (like renovate) that purposefully hid the option since it's already defaulted to unlocked on that rom.
I haven't used any custom roms yet, but that seems to be what I'm reading.
77Eric77 said:
I didn't have OEM option as well (FRP lock was ON), I just followed me2151 guide but I was getting the partition error, so in first part I also added BL and after that everything went smoothly.
KNOX wasn't tripped, it's rooted as of this moment and tomorrow I will be installing custom rom.
PS: And yes it was an experiment but I was willing to take the risk because after reading half a day about no OEM option in developer options everyone was saying if it's not there you don't need it, I wasn't 100% sure but I was 98% sure I'm not going to brick it. btw I'm using Telus N950W note8 (locked)
Click to expand...
Click to collapse
just following up. Were you able to root and flash a custom rom with OEM Unlocked checked after all?
Sent from my SM-G930F using Tapatalk
mputtr said:
just following up. Were you able to root and flash a custom rom with OEM Unlocked checked after all?
Sent from my SM-G930F using Tapatalk
Click to expand...
Click to collapse
I was able to root it but the boot loader is still locked. It's faster without the bloatware and what not. KNOX is disabled. There is still no twrp and custom rom for Snapdragon to the best of my knowledge. It did change the model of the phone from N950W to N950U1.
finally got the OEM Unlock option and rooted + stock recovery... i had to restart my phone to bring my android ID back to the one I always used.. and got locked out...
so 7 more days for me. And all I wanted to do was to have Titanium backup up and running so i can transfer my phone over....
i am hating what samsung has done

Re Locking Bootloader

I'm just wondering if it's possible to like...
Unlock bootloader then restores your Titanium backup apps and then relock.. or no?
Because as far as I know there's no twrp that can read the encrypted memory and MIUI automatically encrypts the system right?
So basically there's no way to install Magisk ..
If anyone know if it's possible let me know please
I don't understand your question.
I have unlocked my Mi9, installed TWRP,deleted DATA partition, flashed xiaomi.eu,flashed magisk than restored a titanium backup taken from my old phone simply by transfer the folder with pc....
And I don't understand why people wanna relock bootloader!? In most cases you brick your phone, because it's not stock.
Guys I mean with stock global ROM not with xiaomi.eu or any other none official ROM.
I wanna lock bootloader in case my device gets stolen, lost etc.
You never know on which hands it can end.
Relock bootloader only if you flash the stock untouched image. It'useless to have a rooted locked device.... And you may cause a brick.
Yeah as we said... Don't do it if you rooted your device or flashed TWRP or anything. Relock only if it's totally stock. You may risk to brick your phone otherwise.
I was asking if it's possible to root only to being able to restore titanium apps, then remove root and then somehow restore default boot img and re lock bootloader.
PriPhaze said:
I was asking if it's possible to root only to being able to restore titanium apps, then remove root and then somehow restore default boot img and re lock bootloader.
Click to expand...
Click to collapse
I wouldn't try that. It's maybe possible but it's also possible to brick phone while there is something more changed after root and twrp. I don't know I'm not a Dev.
PriPhaze said:
I was asking if it's possible to root only to being able to restore titanium apps, then remove root and then somehow restore default boot img and re lock bootloader.
Click to expand...
Click to collapse
I think you will mess the storage due to encription....

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