Cell Phones Maintenance

Opening into Cell Phones Software maintenance. 02 – Android Bootloader

Basel November 11, 2026 5 min read

In the last post, We have explained The mental model we are trying to reach, understanding how a system functions from the bottom to the top layer and we gave an example how a Samsung Firmware files are combined.

Regardless of the brand, we focus on the core thing that powers the system – The CPU.

We have said, that an sboot file inside the bootloader indicates an Exynos CPU – abl/xbl files indicate a Qualcomm CPU. and Preloader.bin indicates an MTK (MediaTek) CPU.

But what But what are are sboot, abl/xbl and the preloader?

XBL and SBOOT are the second boot stage in a modern Android device. They are the lowest layer we can touch and program as cell phone technicians.

Why are we starting from the second stage not and not the first one ?

You will understand in a second. first understand the following :

SBOOT (Samsung, Exynos): Samsung has never published what the name stands for. it could be Secondary Boot or Secure Boot ? what matters is : It’s the Download-mode part which is what the device uses to verify and then write to device memory (yes the device verifies a file then writes it to the memory).

XBL = eXtensible Boot Loader: Also the second stage of the boot.it’s Qualcomm’s replacement for SBL, from roughly the Snapdragon 820 era (2016). “Extensible” comes from UEFI, the Unified Extensible Firmware Interface. XBL is built on UEFI, which is why it can carry drivers and a config file (xbl_config).

ABL = Android Bootloader: This is the last Qualcomm stage, a UEFI app that runs after XBL. It handles fastboot (or Odin Download mode on Samsung Snapdragon models), picks the A/B slot, runs the verified-boot check and loads the kernel. It replaced the older aboot, which was based on LK (Little Kernel).

SBL = Secondary Boot Loader (Qualcomm): On older Snapdragon phones the chain was PBL (Primary Boot Loader, in ROM) → SBL1 → aboot.

Preloader: Just like Samsung Download mode or Qualcomm Fastboot/Bootloader mode, Preloader is the standard MTK flashing mode. It runs with no graphics unlike Exynos/Qcom CPUs.

Take a look at the following diagram :

Every modern Android phone follows the same chain of trust. Each stage is small and does three things: set up just enough hardware, verify the next stage’s signature, then hand over control. The first link is code (PBL-BROM-iRom) burned into the CPU (SoC) itself, so trust starts in silicon, not on the flash chip.

Each yellow rectangle is as you can read, burned into the CPU,You use this stage to communicate with the device at the lowest level possible, it’s also called in technical terms the emergency download mode.

The terms are per CPU :
Qualcomm= EDL 9008 mode (Sahara Protocol), Samsung = EUB mode, MTK= BROM mode.

Enough technical terms and let’s build a skill that never fails when you working with any device.

Think like this, from the last stage to the earliest one, each later stage is safer to work with than the one before it.

Does the Device boot at all ?

Yes > The bootloader is functional – I need to work on the System/kernel etc.

No > we go one step Backward > the emergency mode.

Emergency Mode is typically protected either by a button combo or hardware short (Test Points).

Ask: which CPU is it → how can i access emergency mode for that CPU?

If you are sure about the method to access the emergency mode and you tried it,and there is still no connection to the device. you stop here and diagnose for hardware fallure.

More diagrams to print the image in your brain 😉.

Generic boot chain:

Quick recap:

what is the most preferable way to flash a software on android device ?

The official method is the safest :

Samsung: Odin Download mode (typically reached by pressing and holding Volume Down + Power). On some newer models press and hold Volume Down + plug in the cable.

Qualcomm generic [Google Pixel, Motorola, OnePlus, Xiaomi, etc.]: Bootloader mode (typically Volume Down + Power) or (Volume Down + plug in the cable)

MTK generic: Preloader mode (countless models and brands) Because there are too many different models and brands and each adds its own configuration and key combos Bootloader mode + plug in the cable for Preloader mode, or Volume Up/Down or both + plug in the cable for BROM mode.

Preloader and BROM mode are similar as a flashing mode concept, there is some different there are some differences but we will not cover them now.

Fastboot mode is the generic Android flashing mode. That means a device for example can have an MTK CPU and still be flashable through Fastboot mode such as some Xiaomi devices.

Most of the time Fastboot won’t allow you to flash stock firmware unless the bootloader is unlocked, that happens because brands try protect the device by not allowing unauthorized flashing.

Responses

No responses yet — be the first.

Leave a response

Join the conversation

Create a reader account or log in to leave a response in the margin.