• NeatNit@discuss.tchncs.de
    link
    fedilink
    arrow-up
    15
    ·
    3 days ago

    Where is this message coming from? It’s obviously not written by Xiaomi. If fastboot isn’t available, what is available to show this error?

        • xia@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 day ago

          In theory, yes. There is a first-stage bootloader (that actually finds, loads, verifies, and jumps-into fastboot) baked into the hardware (implemented in fuses and ROMs [like REAL roms, not “flashable” ROMs]), and AFAIK it cannot effectively be modified after the phone is manufactured, so they try to keep it as simple as possible.

          So if it were real, the psuedocode would be something like this:

          var fastbootPartition=locateFastbootPartition();
          
          if (fastbootPartition == null || !verifySignature(fastbootPartition))
          {
               // AFAIK, this code block is already a thing in production, but the
              // message is more like a "signature failed" or "corrupted" than
              // a "you done goofed".
              displayRudeMessage();
              halt();
          }
          
          var fastbootAddress=load(fastBootPartition);
          jumpTo(fastbootAddress);