1

So what I want to do is boot into my own custom ROM with a locked bootloader. I have a OnePlus 6T so it's possible, but can I have root access after I boot with a locked bootloader? If I replace my custom ROM's boot.img with a patched Magisk boot image, will it be possible to have root access after locking my BL? Also, will I be able to use TWRP and flash updates through it?

  • 2
    You question is a bit "misspelled" because with a custom signed system you never get root access but you can sign your apps so that they become system apps. System apps have way more permissions that regular apps, but AFAIK this is not root access (root is even more powerful). – Robert Jul 10 at 11:17
  • How will you boot the patched Magisk boot image and TWRP after locking bootloader? Locked bootloader only boots the boot/recovery images signed with OEM's private keys which obviously you don't have. So device won't boot simply. Rooting device with locked bootloader is possible only through some vulnerability. – Irfan Latif Jul 10 at 14:04
  • 1
    @IrfanLatif what about CopperOS they do exactly what OP want – alecxs Jul 10 at 15:56
  • 1
    @alecxs hmm CopperHeadOS, which the developer of GrapheneOS claims to be his work. You are talking about User-settable root of trust which is one of the main features of AVB (VB2), right? There aren't many devices in my knowledge which support this feature because it's against OEMs' business strategies. Most of the currently available devices have either bootloader unlocking disabled, or is irreversible, or is reversible only with OEM's factory firmware. – Irfan Latif Jul 10 at 17:40
  • 1
    If OP's device (bootloader) supports custom AVB keys, then it's definitely possible to lock bootloader after flashing a (possibly rooted) custom ROM, not CopperHeadOS only but any ROM theoretically. In that case it's a pure development related question. – Irfan Latif Jul 10 at 17:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.