I am seeing a growing discussion on the need for more Linux phones in the market given Google’s problematic behaviour w.r.t the changes that will be introduced to that OS.

One very good point that some community member raised was that Android itself wasn’t the problem but the locking of the bootloader in the phone. If the bootloader could be unlocked, then it significantly lowers the bar for the end user to install their OS of choice.

I have dabbled with flashing OSs in old smartphones (GrapheneOS, Post market and Lineage). I commend the developers because I could do that without truly having to “understand the code” at the lower levels. But I assume that was possible because the boot loader could be unlocked somehow*. It seems that isn’t the case with many/most phone fro. Samsung / Xiomi, etc.

Are their bootloaders truly unlockable? Is it simply impossible to unlock and relock bootloaders?

  • I know that with lineage, the bootloader couldn’t be relocked and that was touted as a security flaw. If someone could explain why this lock/unlock is so complex, I’d appreciate it.
  • gandalf_der_12te@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 days ago

    Uhm, so, the problem isn’t only the unlocking but also the re-locking of the bootloader.

    Leaving the bootloader unlocked while you’re storing sensitive data on the phone means that thieves, but also law enforcement, can read the data that’s stored on your phone if they guess the cryptographic key that protects your data correctly. If you’re using a 4-digit PIN, there’s only 9999 combinations, and guessing the PIN correctly can be done in a few minutes on a modern computer.

    If you use a strong password, your data would be secured against thieves and law enforcement. But then you’d have to enter a strong password every time that you boot up the device, which is annoying.

    So, if you can re-lock the bootloader after having installed the operating system, then an attacker can’t just access the raw, encrypted data and try every possible PIN combination on it. Instead, they’d have to go through the operating system’s user interface that’s installed on the phone, and that can limit the number of allowed password attempts down to 10 or so, so they probably won’t have access to the data on the phone if they don’t guess the PIN correctly within 10 attempts.