A locked bootloader looks for official ROM signatures, which a custom ROM doesn't have.
That's why this is impossible. You can hard-brick your phone, that's why LineageOS doesn't allow you to relock.
Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
1. All posts must be relevant to Android devices/operating system.
2. Posts cannot be illegal or NSFW material.
3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.
4. Non-whitelisted bots will be banned.
5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.
6. Memes are not allowed to be posts, but are allowed in the comments.
7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.
8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.
Community Resources:
We are Android girls*,
In our Lemmy.world.
The back is plastic,
It's fantastic.
*Well, not just girls: people of all gender identities are welcomed here.
Our Partner Communities:
A locked bootloader looks for official ROM signatures, which a custom ROM doesn't have.
That's why this is impossible. You can hard-brick your phone, that's why LineageOS doesn't allow you to relock.
i am asking this as CalyxOS and GrapheneOS support locking the Bootloader, so i thought surely it must be possible to make a rom that has magisk included and can relock the Bootloader
The OS needs access to the keys accepted by the bl. Pixels have that, so graphene can relock. Other vendors don't give this opportunity, so Roms like los which support many devices, better be safe than sorry.
Try relock on a xiaomi device and you have unrecoverable hard brick.
Yeah it is possible, GrapheneOS flashes their own verified boot key when you install it. This also means you have to reset these keys if you want to go back to stock.
I'm not sure why lineageos doesn't do this, might just be a lot of work for all the devices they support. GrapheneOS only has to support the last couple of pixels after all.
I've used WhatsApp on unlocked bootloaders for years. What isn't working?
Also, I think DivestOS allows locking the bootloader in some cases.
Yeah iirc WhatsApp does show a warning when you first set it up with an unlocked bootloader, but you can just continue anyway.
cause i need a locked Bootloader or otherweise WhatsApp (which i unfortunately need) wont work, but coming from a rooted rom, unrooted android is unbearable> You can keep your bootloader unlocked and rooted and still get WA to work. Check this xda post: https://xdaforums.com/t/problem-with-whatsapp-and-bootloader-unlock.4642218/post-89755699
I have PIF and LSposed installed with denylist active for WA, Gplay and GplayServices. It's working.
i really hope this will work, as that seems to be the easiest one, although i already tried all that and kt didn't work (as "documented" in one of my previous posts)
I'm using the stick pixel os (rooted) and keep my bootloader locked with this https://github.com/chenxiaolong/avbroot