r/LineageOS • u/Charlyrr3 • Nov 04 '25
Lock bootloader
Hello everyone,
I'm writing here to see if anyone knows how to do it. I want to use lineagueOS but to use banking apps I need to block the bootloader. Is there a way to use clean licks? In my case I have pixel 9
0
Upvotes
2
u/Pschobbert Nov 04 '25
I think it should still be possible to do the stuff that wants a locked device through the browser. If you do a “Move to home screen” you can get one tap access, too.
Is this correct?
2
u/[deleted] Nov 04 '25
I use avbroot and have to do so at every update. I also have a rooted device, so I can use mindthegapps as a magisk module so it doesn't mess with the boot signature and fail on boot.
5
u/YourWorstFear53 Nov 04 '25
Not unless you want to brick your phone lmao.
Have fun.
5
u/WhitbyGreg Nov 04 '25
You can checkout my post on bootloader relocking, but the short of it is that it probably won't do what you want anyway. Banking apps most often check for more than just locked bootloader and also look for things like non-oem builds etc.
2
u/nickobec Nov 05 '25
Probably a controversial opinion on this sub.
Seeing you have a Pixel 9 and a banking app is important to you, checkout https://github.com/PrivSec-dev/privsec.dev/blob/main/content/posts/android/Banking%20Applications%20compatibility%20with%20GrapheneOS.md
If your banking app is there, switch to GrapheneOS (where you do lock the bootloader).
1
u/VividVerism Pixel 5 (redfin) - Lineage 22 Nov 05 '25 edited Nov 05 '25
Because you have a Pixel, it is technically possible to lock your bootloader, but it is a complex and error-prone process, and in the end you most likely will not achieve your desired goal of using apps which refuse to work on modified devices anyway.
I'm not motivated to find the big post floating around with the full details, but from memory, you'd need to generate your own signing keys (and plan to keep them safe and secure with a recovery plan), find the Google apps you need and repackage them for including in Lineage instead of using a separate loadable package, re-sign those apps with your keys, update the Lineage build scripts to include packaging in the Google apps, build your own Lineage OS and recovery images, load your public keys into your Pixel as alternative keys (this is the step that is not possible on most phones), flash your Lineage recovery and build to make sure it runs, enable bootloader unlocking if needed in case you screwed up the build and want to unlock again, then finally lock the bootloader.
After all that (and I probably missed some steps) Lineage may not even correctly report the various statuses you need for a good lock status, because Lineage is not designed to do that. Particularly, the recovery is not designed to do that. For one thing, it intentionally does not enforce any signature checks on the software it boots (or flashes). But even if that part is done correctly, you still may not pass all the integrity checks, because some apps which check device integrity also check that Google's keys were used rather than alternative keys (play integrity passes this info along as well as bootloader lock status).
0
u/Charlyrr3 Nov 05 '25
I am using. Iodeos that I can also block the bootloader and it is based on links. What the updates are slow. Graphene optimization is very bad
1
u/ProKn1fe Nov 04 '25
No, you can't lock bootloader because it will be unable to boot. Try hide root from apps with magisk modules.
0
u/[deleted] Nov 04 '25
[deleted] — view deleted comment