Re- lock bootloader on stock firmware - Xperia Z5 Compact Q&A, Help & Troubleshooting

Hi,
My phone is running official stock firmware, however the bootloader remains unlocked, as such apps protected by the SafetyNet do not work.
I've seen guides saying that you can simply run some code via adb, but I'm guessing this won't work in this case..?
Unfortunately I do not have a backup of the TA partition- does this make re-locking the bootloader impossible?
If so, are there alternatives for patching the safetyNet that would work?
Many thanks

Related

[Q] How to Lock Bootloader After Unlocking Bootloader

I have this PadFone S for over a week, and it's my 5th android device, but certainly the 1st one having a locked bootloader. So far I have read how to flash stock firmware, how to root and unroot, which requires unlocking bootloader first using CrowLock, how to install CWM and CM12 etc. I haven't try anything yet (still uprooted, and my bootloader is still unlocked).
One question still unanswered, is there any way to lock the bootloader after it's unlocked ? Perhaps by using the CrowLock app, or simply flashing stock firmware ? I need to be assured that any changes I do is reversible.
Thanks in advance
I too purchased the Padfone S and have the same question. Also, does anyone know if flashing crowlock will void the warranty of the phone? Can someone who has unlocked their bootloader using crowlock paste the output of "fastboot oem device-info"?
Does Asus' bootloader not check the signature for the recovery partition before booting from recovery? Given that everyone is flashing the recovery after rooting and running crowlock from the recovery, it seems so, but I'm not sure.
Anyone know if the bootloader's source code is available? I know it's based on the littlekernel, but I'm not sure which version it was built from.
Bump! I need the answer too.

Easiest way to root and some questions.

So read this thread [Guide] Safe bootloader unlock, restore DRM, custom recovery, root, bootloader relock
Is this the easiest way to root as it appears complex(sorry not very technically minded).
Also once rooted will I be able to update the tablet or it becomes impossible please?
marvi0 said:
So read this thread [Guide] Safe bootloader unlock, restore DRM, custom recovery, root, bootloader relock
Is this the easiest way to root as it appears complex(sorry not very technically minded).
Also once rooted will I be able to update the tablet or it becomes impossible please?
Click to expand...
Click to collapse
No, easiest way to root is to unlock bootloadrer and flash custom rom or root stock by flashing twrp, kernel, and supersu.
You need drm keys in case if you want to get back unrooted stock.so do you really need them? In order to restore drm functionality on rooted device, use universal drm restore patch.
With unlocked bootloder, to update custom, use twrp, to update stock, use flashtool.
alex009988 said:
No, easiest way to root is to unlock bootloadrer and flash custom rom or root stock by flashing twrp, kernel, and supersu.
You need drm keys in case if you want to get back unrooted stock.so do you really need them? In order to restore drm functionality on rooted device, use universal drm restore patch.
With unlocked bootloder, to update custom, use twrp, to update stock, use flashtool.
Click to expand...
Click to collapse
Hello many thanks, did you follow the same guide I quoted in my initial post?

Relock bootloader

Is there any way to relock the bootloader on exynos s9+? Ive tried reflashing stock via Odin but the bootloader is still unlocked and not allowing me to use android pay etc.
I know knox will be tripped but there's no reason that I can't use android pay with a non rooted phone surely? I've tried the root checker app as well and that shows that I do not have root.
When I check in developer options it says the bootloader is already unlocked and the slider is to the left for the oem unlock option. I have tried to slide it to the right which factory resets the device but then on going into developer options again it still shows as the same status (bootloader already unlocked with oem unlock slider to the left)
What can I do to get my phone properly back to stock?
Thanks
hookguy said:
Is there any way to relock the bootloader on exynos s9+? Ive tried reflashing stock via Odin but the bootloader is still unlocked and not allowing me to use android pay etc.
I know knox will be tripped but there's no reason that I can't use android pay with a non rooted phone surely? I've tried the root checker app as well and that shows that I do not have root.
When I check in developer options it says the bootloader is already unlocked and the slider is to the left for the oem unlock option. I have tried to slide it to the right which factory resets the device but then on going into developer options again it still shows as the same status (bootloader already unlocked with oem unlock slider to the left)
What can I do to get my phone properly back to stock?
Thanks
Click to expand...
Click to collapse
Actually there is a good reason why google pay wouldn't work even if the device isn't rooted. There are Payment/banking (and other apps I am sure) require that the device be secure. With the bootloader unlocked the security on your device is severely weakened.
Did you root the phone at all, flash anything to the phone or do anything to modify it at all (something like this as an example). If there was nothing at all done to the phone other then toggling the oem unlock, then it sounds like flashing the proper firmware to the phone, unticking the oem unlock option and factory resetting the phone should work.
If knox is tripped then there is no reversing that. Google searching also shows this would be a likely cause as to why you can not relock the bootloader.. Once knox is tripped it is irreversible (this is because it is an E-fuse), not even flashing stock will not make it go away.
I think your best bet at this point might actually be to have root and then use Magisk to hide root from the apps you want to use. I'm not sure which apps this will work for but it's probably worth looking into since there may be no going back with your bootloader
Thank you for the help guys. I did suspect that may be the case and I wouldnt be able to relock but it seemed some people were able to.
Will just root with magisk and use magisk hide to make it work. Thanks!

Unroot and relock bootloader in order to get OTA updates

Hi,
I'm using HD01BA (= EU version) with unlocked bootloader and root with Magisk. I understand that updating OOS or updating Magisk is quite annonying as there's no TWRP and as it needs specific precautions such as disabling Magisk modules and reinstalling them after updating.
Since I now barely use root, I think I would benefit more from being able to get OTA updates than having root. I'd like to know how to unroot - and relock bootloader if necessary - without bricking the phone.
Would I have to wipe everything ? Will unrooting enable OTA updates or do I need to relock bootloader as well ?
Thanks
Edit : Wrong category, I asked moderators to delete this and have posted it in Questions & Answers
Use MSMTool. it will take care everything for you.
Lossyx said:
Use MSMTool. it will take care everything for you.
Click to expand...
Click to collapse
Thanks for the reply. Will it erase all data ? Will it relock bootloader ?
DrBazinga said:
Thanks for the reply. Will it erase all data ? Will it relock bootloader ?
Click to expand...
Click to collapse
It will erase everything and lock the bootloader, yes.
Is there a way to only unroot (flashing a clean boot maybe?) in order to get OTA updates? Even if the bootloader remains unlocked
DrBazinga said:
Is there a way to only unroot (flashing a clean boot maybe?) in order to get OTA updates? Even if the bootloader remains unlocked
Click to expand...
Click to collapse
Yes you can unroot by flashing stock boot.img, but why?
You get new updates when they are available through system updates in your settings/updater app regardless of the bootloader/root conditions.
The additional steps that has to happen after the OOS update is to keep Magisk/root.
Hw4ng3r said:
Yes you can unroot by flashing stock boot.img, but why?
You get new updates when they are available through system updates in your settings/updater app regardless of the bootloader/root conditions.
The additional steps that has to happen after the OOS update is to keep Magisk/root.
Click to expand...
Click to collapse
I don't think I do, I'm still on 10.0.9 and there's no update showing up, even in the settings. I remember reading somewhere that on this phone, unlocking bootloader or rooting (I forgot which one) disables updates notifications.
What bothers me is that i) if I want to update OOS I need to delete all Magisk modules then reinstall them to avoid bootloop and ii) if I want to update Magisk, I'd have to do all the steps again including flashing a patched boot, right ?
In addition, Magisk may no longer be able to hide bootloader unlocking from apps with Android 11.
DrBazinga said:
I don't think I do, I'm still on 10.0.9 and there's no update showing up, even in the settings. I remember reading somewhere that on this phone, unlocking bootloader or rooting (I forgot which one) disables updates notifications.
What bothers me is that i) if I want to update OOS I need to delete all Magisk modules then reinstall them to avoid bootloop and ii) if I want to update Magisk, I'd have to do all the steps again including flashing a patched boot, right ?
In addition, Magisk may no longer be able to hide bootloader unlocking from apps with Android 11.
Thanks
Click to expand...
Click to collapse
You can use Oxygen Updater https://play.google.com/store/apps/details?id=com.arjanvlek.oxygenupdater
And the bootloader unlock check is Google's doing with hardware key attestation. This may not get cracked.

Is my bootloader unlocked?

I have tried for multiple hours to get fastboot and ADB to work with my S6 Edge but it is not working. I suspect I might need to try older Samsung drivers (I only tried the latest ones as far as I remember). I wanted these tools in order to check if my bootloader was unlocked so that I wouldn't brick my device if I tried to install a custom ROM and TWRP. Anyway I followed a video and installed TWRP on my phone and installed Lineage OS Android 10 without checking the bootloader since the guy in the video did not mention doing so and still installed the custom ROM and TWRP. It is working fine. I know it is most likely that since this was possible, the bootloader should probably be unlocked but I just wanted to confirm with more experienced smartphone modders if this is indeed the case. Is it then safe to root my phone without checking bootloader?
Sub-question: If a person were to theoretically attmept to install custom ROM or TWRP or root the phone while the bootloader is locked, would that result in the root failing but the device still being usable or would the attempt result in the device being bricked? IE if the bootloader is locked is it dangerous to attempt to flash software to the phone or will it result in a harmless "failed" message, etc.?
Thank you.

Categories

Resources