Latest 8.1 July build (9.6.4.0) erase system when locking bootloader - Xiaomi Mi A1 Guides, News, & Discussion

It happens to me that this build wipes user data both in unlocking and locking the bootloader.
Then procedure to activate camera2api and relock the bootloader are not valid anymore.

Samhain77 said:
It happens to me that this build wipes user data both in unlocking and locking the bootloader.
Then procedure to activate camera2api and relock the bootloader are not valid anymore.
Click to expand...
Click to collapse
Since may update this happens. Standart android security. Every time you unlock bootloader device is wiped. In every device. Ours was the exception. Not anymore
Sent from Mi A1 with Tapatalk Pro

taurelio said:
Since may update this happens. Standart android security. Every time you unlock bootloader device is wiped. In every device. Ours was the exception. Not anymore
Sent from Mi A1 with Tapatalk Pro
Click to expand...
Click to collapse
Sure, when you unlock I know... but also when relock now?

Samhain77 said:
Sure, when you unlock I know... but also when relock now?
Click to expand...
Click to collapse
It's been like that since the May update.

Samhain77 said:
Sure, when you unlock I know... but also when relock now?
Click to expand...
Click to collapse
Yup, since may update. U just did not realize it!

Last time I unlock and relock was on 8.0 some months ago...
So If I want to activate camera2api and relock the bootloader I should flash an 8.0 build with miflash, do the modification, relock the bootloader and wait for OTA to update?

Isn't this too complicated? Why just don't keep bootloader unlocked?

qd42 said:
Isn't this too complicated? Why just don't keep bootloader unlocked?
Click to expand...
Click to collapse
rather than complicated is frustrating...
I don't like to have unlocked bootloader

There's a solution: Click me hard!. It works for lock and unlock.

MattCB72 said:
There's a solution: Click me hard!. It works for lock and unlock.
Click to expand...
Click to collapse
I've seen it, but it seems when you then launch temporary twrp it also wipes.
Now I'm back in April update, modified camera2api options, relocked everything and updating to May... after that it should notify the July update.

Samhain77 said:
I've seen it, but it seems when you then launch temporary twrp it also wipes.
Now I'm back in April update, modified camera2api options, relocked everything and updating to May... after that it should notify the July update.
Click to expand...
Click to collapse
It will only wipe once. After that, you can boot into twrp, set camera 2, then relock.

taurnilf said:
It will only wipe once. After that, you can boot into twrp, set camera 2, then relock.
Click to expand...
Click to collapse
Good to know for the future! Now I'm updating to July build.

Related

BootUnlocker for Nexus Devices worth it?

Hi guys, I found this program "I'm root" my question is, I'd like to close the boot-loader jut for security reasons, but now I've set up everything as I wanted so I don't want to delete everything again.
Can I use this program it seem to be really good.
"BootUnlocker for Nexus Devices"
https://play.google.com/store/apps/details?id=net.segv11.bootunlocker
Waiting for answers.
Yes. I use this to lock and unlock my bootloader once rooted. It doesn't wipe anything.
Sent from my Nexus 5 using Tapatalk
rootSU said:
Yes. I use this to lock and unlock my bootloader once rooted. It doesn't wipe anything.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
WOW perfect then I'll do it. Like this if I lose my phone no one will be able to steal anything. (Steal I say xD, they can't do that much. but you know what I mean.)
If you have a custom recovery they can. So make sure you have a stock recovery
Sent from my Nexus 5 using Tapatalk
rootSU said:
Yes. I use this to lock and unlock my bootloader once rooted. It doesn't wipe anything.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Can I lock the bootloader using this app with a custom recovery installed so that when I need to install updates to the rom or flash something I wouldn't need to flash/boot Philz again after unlocking?
Or do I need to flash the stock recovery before locking with this app??
vin4yak said:
Can I lock the bootloader using this app with a custom recovery installed so that when I need to install updates to the rom or flash something I wouldn't need to flash/boot Philz again after unlocking?
Or do I need to flash the stock recovery before locking with this app??
Click to expand...
Click to collapse
As long as you're rooted it'll work with a custom recovery or stock. Edit, just be careful if you do a lot of messing around on your phone. You may be locked when you wish you weren't
Sent from my Nexus 5
jd1639 said:
As long as you're rooted it'll work with a custom recovery or stock. Edit, just be careful if you do a lot of messing around on your phone. You may be locked when you wish you weren't
Sent from my Nexus 5
Click to expand...
Click to collapse
Yes, I get that.. If I end up in a bootloop I would need to use fastboot which will erase all my data.. That's what you're warning me about, right?
To tell you the truth, I'm actually worried about this eMMC failure thing as I have a 1 year LG warranty (not google's). I have seen a few threads where they weren't able to relock their bootloaders before sending it in as the eMMC's write function was screwed up. If I send my device in with a unlocked bootloader, warranty will go down the drain for sure. LG is very strict regarding this matter.
May be I'm thinking too much but my friend had faced similar issues with his HTC One and he had to shell out half the price of the phone to get the mobo replaced even though he had warranty
vin4yak said:
Yes, I get that.. If I end up in a bootloop I would need to use fastboot which will erase all my data.. That's what you're warning me about, right?
To tell you the truth, I'm actually worried about this eMMC failure thing as I have a 1 year LG warranty (not google's). I have seen a few threads where they weren't able to relock their bootloaders before sending it in as the eMMC's write function was screwed up. If I send my device in with a unlocked bootloader, warranty will go down the drain for sure. LG is very strict regarding this matter.
May be I'm thinking too much but my friend had faced similar issues with his HTC One and he had to shell out half the price of the phone to get the mobo replaced even though he had warranty
Click to expand...
Click to collapse
I'm guessing that if your emmc failed you wouldn't be able to lock using this app. Boot it is an easy way to keep it locked until you need to unlock. It is a good app and it's been on my phone for months. But I usually keep it unlocked
Sent from my Nexus 5
rootSU said:
If you have a custom recovery they can. So make sure you have a stock recovery
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
So if I have a custom recovery I can!!!! and then you said make sure you have a stock recovery...
What I have to have, stock or custom?
When you say custom you mean, -hammerhead or clockwork- right?
Thanks.
you can have a custom recovery and use that app to lock and unlock your bootloader, just as you can have a custom recovery and lock/unlock your bootloader with the fastboot command.. fastboot oem lock(fastboot oem unlock).
jd1639 said:
I'm guessing that if your emmc failed you wouldn't be able to lock using this app. Boot it is an easy way to keep it locked until you need to unlock. It is a good app and it's been on my phone for months. But I usually keep it unlocked
Sent from my Nexus 5
Click to expand...
Click to collapse
That's why I was thinking to after flashing what I want to, I would lock the bootloader with the app so suppose one fine day my eMMC gets fried, I wouldn't be in trouble as it will be locked.
If I want to flash anything, unlock with the app, flash via recovery, reboot and then lock the bootloader again! Does sound good, right??
LOL, now I'm surely thinking too much
ivan333 said:
So if I have a custom recovery I can!!!! and then you said make sure you have a stock recovery...
What I have to have, stock or custom?
When you say custom you mean, -hammerhead or clockwork- right?
Thanks.
Click to expand...
Click to collapse
Rootsu was referring to the ability to hack onto your phone not the bootunlocker app. Bootunlocker will work if you're rooted and it doesn't matter if you have stock or a custom recovery
Sent from my Nexus 5
vin4yak said:
That's why I was thinking to after flashing what I want to, I would lock the bootloader with the app so suppose one fine day my eMMC gets fried, I wouldn't be in trouble as it will be locked.
If I want to flash anything, unlock with the app, flash via recovery, reboot and then lock the bootloader again! Does sound good, right??
LOL, now I'm sure thinking too much
Click to expand...
Click to collapse
then you dont need the app. after you unlock your bootloader and root it, just boot into your bootloader after and lock it.
simms22 said:
then you dont need the app. after you unlock your bootloader and root it, just boot into your bootloader after and lock it.
Click to expand...
Click to collapse
But then, when I need to flash a nightly or any mod, I would need to unlock the bootloader via fastboot to access the custom recovery which will wipe everyhting, right? If I have the app, I can simply unlock it without wiping.
Or should I just use fastboot boot on a locked bootloader to flash any mod/nightly??
vin4yak said:
That's why I was thinking to after flashing what I want to, I would lock the bootloader with the app so suppose one fine day my eMMC gets fried, I wouldn't be in trouble as it will be locked.
If I want to flash anything, unlock with the app, flash via recovery, reboot and then lock the bootloader again! Does sound good, right??
LOL, now I'm surely thinking too much
Click to expand...
Click to collapse
Yep, that would work
Sent from my Nexus 5
simms22 said:
then you dont need the app. after you unlock your bootloader and root it, just boot into your bootloader after and lock it.
Click to expand...
Click to collapse
But that will swap (WIPE sorry) all your phone... that's what I don't want. (Sorry maybe I misunderstood something but later I'll read it again and carefully.)
vin4yak said:
But then, when I need to flash a nightly or any mod, I would need to unlock the bootloader via fastboot to access the custom recovery which will wipe everyhting, right? If I have the app, I can simply unlock it without wiping.
Or should I just use fastboot boot on a locked bootloader to flash any mod/nightly??
Click to expand...
Click to collapse
no, wont wipe everything. just that first time.
simms22 said:
no, wont wipe everything. just that first time.
Click to expand...
Click to collapse
Are you sure? If you oem lock and then oem unlock I think it wipes it each time.
Sent from my Nexus 5
simms22 said:
no, wont wipe everything. just that first time.
Click to expand...
Click to collapse
Wooaaahh?! Thanks for the clarification... Just curious though, why does it not wipe everything when I unlock it the 2nd time? is it because the tamper flag is set to "true"? How does the bootloader determine that it's being unlocked the second time?
Thanks a lot!
vin4yak said:
Wooaaahh?! Thanks for the clarification... Just curious though, why does it not wipe everything when I unlock it the 2nd time? is it because the tamper flag is set to "true"? How does the bootloader determine that it's being unlocked the second time?
Thanks a lot!
Click to expand...
Click to collapse
As an fyi, I locked with bootunlocker once and then messed up by device where I had to use fastboot commands. It does wipe if you have to fastboot unlock the device again
Sent from my Nexus 5

Unlocked Verizon Bootloader

So I have a Verizon Pixel and I unlocked the bootloader using depixel8 my question is if I accept any updates will my bootloader still be unlocked?
mpappas87 said:
So I have a Verizon Pixel and I unlocked the bootloader using depixel8 my question is if I accept any updates will my bootloader still be unlocked?
Click to expand...
Click to collapse
Yes the only way it will lock again is if you do it. And it is advised not to.
mac796 said:
Yes the only way it will lock again is if you do it. And it is advised not to.
Click to expand...
Click to collapse
Thank you, I don't intend to I just wasn't sure if I wanted to change the recovery yet and I didn't want it to relock on me if it updated OTA.
mpappas87 said:
So I have a Verizon Pixel and I unlocked the bootloader using depixel8 my question is if I accept any updates will my bootloader still be unlocked?
Click to expand...
Click to collapse
mpappas87 said:
Thank you, I don't intend to I just wasn't sure if I wanted to change the recovery yet and I didn't want it to relock on me if it updated OTA.
Click to expand...
Click to collapse
You will be ok to update. you have to boot Twrp again if you want it and flash su Again if you want it. flash fire is suppose to take a update now and keep root. I haven't tested it through. Going to try it soon
mac796 said:
You will be ok to update. you have to boot Twrp again if you want it and flash su Again if you want it. flash fire is suppose to take a update now and keep root. I haven't tested it through. Going to try it soon
Click to expand...
Click to collapse
I don't have TWRP or any other recovery installed. I left it stock just unlocked bootloader and flashed SuperSU so I could edit the build.prop to use tethering with my unlimited data plan. I'm a little afraid to change much since nothing seems to be designed for my build number.
mpappas87 said:
I don't have TWRP or any other recovery installed. I left it stock just unlocked bootloader and flashed SuperSU so I could edit the build.prop to use tethering with my unlimited data plan. I'm a little afraid to change much since nothing seems to be designed for my build number.
Click to expand...
Click to collapse
I also have Verizon pixel. I have been running pure Nexus and like it so much I prob never go back to stock. Has slot of extras built in. And very stable
mac796 said:
I also have Verizon pixel. I have been running pure Nexus and like it so much I prob never go back to stock. Has slot of extras built in. And very stable
Click to expand...
Click to collapse
So you flashed TWRP and custom ROM with no problem then? I'm actually pretty happy with the stock ROM I just want to make sure not to lose unlocked bootloader in case I want to later. Thank you for the input.
mpappas87 said:
So you flashed TWRP and custom ROM with no problem then? I'm actually pretty happy with the stock ROM I just want to make sure not to lose unlocked bootloader in case I want to later. Thank you for the input.
Click to expand...
Click to collapse
Yea no problems. My main reason we're for the nav bar settings, I hate having my back button on the left. And tethering. But you can find those mods with stock to

Factory images are up....

Factory images are up... https://developers.google.com/android/images#coral
Thanks, gonna try to root now!
Are the images only useful if you have your bootloader unlocked or can they help unlock bootloader?
Who-Lep said:
Are the images only useful if you have your bootloader unlocked or can they help unlock bootloader?
Click to expand...
Click to collapse
You should be able to flash it, regardless, but I am not sure why you would. This is mainly for getting root and you have to be unlocked for that
ZeroKool76 said:
You should be able to flash it, regardless, but I am not sure why you would. This is mainly for getting root and you have to be unlocked for that
Click to expand...
Click to collapse
I see, thanks!
Seems firmware's are universal now. Don't see a Verizon one.
Who-Lep said:
Are the images only useful if you have your bootloader unlocked or can they help unlock bootloader?
Click to expand...
Click to collapse
Factory images can ONLY be flashed if you have an unlocked bootloader.
They on their own cannot help unlock the bootloader.
You can sideload the factory OTA zips with a locked bootloader.
uicnren said:
Factory images can ONLY be flashed if you have an unlocked bootloader.
They on their own cannot help unlock the bootloader.
You can sideload the factory OTA zips with a locked bootloader.
Click to expand...
Click to collapse
Thanks for the explanation!
If I sideload the factory image over the AT&T variant; will it finally let me enable oem unlocking? Currently, it's grayed out.
KillerBytes said:
If I sideload the factory image over the AT&T variant; will it finally let me enable oem unlocking? Currently, it's grayed out.
Click to expand...
Click to collapse
1. You don't sideload a factory image.
2. No
Moderator, you can close this thread since it has served it's purpose. Thank you

Did anyone try to relock bootloader with patched Magisk boot image?

I am wondering if I should root my new device, but I'd like to keep the security benefits too (and SafetyNet might need locked bootloader in the near future), so I would only do it if relocking is possible. Has anyone tried to relock the bootloader after patching with Magisk and signing the boot.img?
geiszla said:
I am wondering if I should root my new device, but I'd like to keep the security benefits too (and SafetyNet might need locked bootloader in the near future), so I would only do it if relocking is possible. Has anyone tried to relock the bootloader after patching with Magisk and signing the boot.img?
Click to expand...
Click to collapse
Don't ever do that u loose fingerprint or u end up in a bootloop because of the persist partition and the bootloader whats getting corrupt. Only when you are on a normal or stock firmware u can lock your bootloader without issues.
mastersjef said:
Don't ever do that u loose fingerprint or u end up in a bootloop because of the persist partition and the bootloader whats getting corrupt. Only when you are on a normal or stock firmware u can lock your bootloader without issues.
Click to expand...
Click to collapse
I wouldn't change any other partition except replace the boot.img, but I would sign that one too. What do you mean by bootloader getting corrupt?
geiszla said:
I wouldn't change any other partition except replace the boot.img, but I would sign that one too. What do you mean by bootloader getting corrupt?
Click to expand...
Click to collapse
Because the relock locks the bootloader and the bootloader is patched how you wanna do that?
mastersjef said:
Because the relock locks the bootloader and the bootloader is patched how you wanna do that?
Click to expand...
Click to collapse
The bootloader is not patched, it's just unlocked than locked. When it's unlocked, it doesn't check the signatures of the loaded components, when it's locked, it does. It won't boot if any of the system components is not signed, but I can sign the changed boot image and then it should boot just fine. At least in theory... I've seen a few people who's done it even with custom ROM and recovery, but I haven't done it before and don't know if it would work with the OP8.
I know it also depends on the signature verification method used by the bootloader and I think OnePlus devices use AVB, but not sure about that either and don't want to brick my brand new device
geiszla said:
I wouldn't change any other partition except replace the boot.img, but I would sign that one too. What do you mean by bootloader getting corrupt?
Click to expand...
Click to collapse
How do you sign the boot.img?
rossrosh007 said:
How do you sign the boot.img?
Click to expand...
Click to collapse
I too would like to know more about this.
It would be nice to be able to run your own boot image and re-lock the bootloader.

bootloader

hi, running a nexus 5 with twrp and custom rom. going good! having some problems with an app not playing, can i relock my bootloader and keep twrp and rom?
funny thing, am having no problem with Android pay. that's working fine!
leejasonsmith said:
hi, running a nexus 5 with twrp and custom rom. going good! having some problems with an app not playing, can i relock my bootloader and keep twrp and rom?
funny thing, am having no problem with Android pay. that's working fine!
Click to expand...
Click to collapse
No. The only way you can relock your bootloader without bricking your device is to be completely stock before relocking.
Lughnasadh said:
No. The only way you can relock your bootloader without bricking your device is to be completely stock before relocking.
Click to expand...
Click to collapse
thought so! thanks

Categories

Resources