Featured image of post Flashing the Xiaomi 9 SE - From EDL Cables to LineageOS Updates

Flashing the Xiaomi 9 SE - From EDL Cables to LineageOS Updates

What started as a question about an EDL cable turned into a full refresher on flashing the Xiaomi 9 SE. This guide covers everything from choosing the right flashing method to updating LineageOS on a Mac.

1. It Started with an EDL Cable

I recently dug up an EDL (Emergency Download) cable and remembered I had a Xiaomi 9 SE (codename: grus) sitting in a drawer. The phone was already bootloader-unlocked and running LineageOS, but it had been a while and I’d forgotten most of the process.

So the first question that came to mind: Can I use this EDL cable to flash the Xiaomi 9 SE?

After some research, the answer is: Yes, but with conditions.

2. EDL vs. Fastboot: Which One Do You Need?

USB Cable

First, let’s clarify the difference between these two flashing modes:

Mode When to Use Authorization Required?
Fastboot Bootloader unlocked, normal flashing No
9008/EDL Bootloader locked, bricked device Newer devices need Xiaomi authorization

The Xiaomi 9 SE runs on a Qualcomm Snapdragon 712, which does support 9008 EDL mode. However, the reality is:

  • Phone works fine, bootloader unlocked → Regular USB cable + Fastboot mode
  • Bricked or bootloader locked → EDL cable + Xiaomi authorized account + EDL firmware

Since my device was already unlocked, I didn’t need the EDL cable at all—a regular data cable was enough.

Bottom line: The EDL cable is an “unbricking tool,” not something you need for everyday flashing. If you just want to update your system, don’t bother with it.

3. Updating LineageOS: Two Simple Methods

With the EDL cable question settled, the real question became: How do I update an already-running LineageOS device to the latest version?

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 1. Download the latest LineageOS ROM from the grus device page
# URL: https://download.lineageos.org/grus

# 2. Boot into Recovery mode
adb reboot recovery

# 3. In Recovery, select: Apply update → Apply from ADB

# 4. Run sideload from your computer
adb sideload lineage-xx.x-xxxxxxx-signed.zip

Method 2: Install from Storage

  1. Copy the ROM zip to your phone’s internal storage
  2. Boot into Recovery → Apply update → Choose from internal storage
  3. Select the zip file to install

Both methods are straightforward. I recommend the first one since you don’t need to transfer files to the phone first.

4. Installing ADB on Mac

Terminal

Before flashing, you need ADB set up on your computer.

Option 1: Homebrew (Easiest)

1
brew install android-platform-tools

Verify the installation:

1
adb --version

Option 2: Manual Installation

  1. Download SDK Platform Tools
  2. Extract and add to your PATH:
1
2
3
mv ~/Downloads/platform-tools ~/android-platform-tools
echo 'export PATH="$HOME/android-platform-tools:$PATH"' >> ~/.zshrc
source ~/.zshrc

Recommendation: If you have Homebrew, use it. One command and you’re done, plus it’s easy to update later.

5. Enabling Developer Options and USB Debugging

With ADB installed, you need to prepare your phone:

On MIUI

  1. Settings → My Device → All specs
  2. Tap MIUI version 7 times
  3. You’ll see “You are now a developer”
  4. Settings → Additional settings → Developer options → Enable USB debugging

On LineageOS

  1. Settings → About phone → Build number → Tap 7 times
  2. Settings → System → Developer options → Enable USB debugging

When you connect to your computer, the phone will prompt for permission—make sure to tap “Allow.”

6. The Complete Workflow

Putting it all together, here’s the full update process:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
1. Install ADB on Mac
   └─ brew install android-platform-tools

2. Enable Developer Options and USB Debugging
   └─ Settings → About phone → Build number (tap 7x)
   └─ Settings → System → Developer options → USB debugging

3. Download the latest LineageOS ROM
   └─ https://download.lineageos.org/grus

4. Connect phone and boot to Recovery
   └─ adb reboot recovery

5. Sideload the ROM
   └─ Recovery: Apply update → Apply from ADB
   └─ Computer: adb sideload xxx.zip

6. Reboot and done

7. Key Takeaways

Tech Work

7.1 You Don’t Always Need “Pro” Tools

The EDL cable looks “professional,” but for an unlocked device, it’s unnecessary. Match your tools to the task—don’t use a sledgehammer to crack a nut.

7.2 ADB Is Essential for Android Enthusiasts

Whether it’s flashing, debugging, or everyday operations, ADB is incredibly useful. Installing it via Homebrew on Mac is trivial—there’s no reason not to have it.

7.3 LineageOS Updates Are Simpler Than You Think

I used to think flashing was complicated. Turns out, once the bootloader is unlocked, updating a ROM is just a few commands. The key is knowing your device’s current state.

7.4 Documentation Matters

The reason I had to look everything up again was because I didn’t write it down the first time. Always document your technical processes—otherwise, you’ll be starting from scratch next time.

8. References