- Before : Android 9 MIUI Global 10.4.1
- After : /e/ Android 8.1.0 : https://e.foundation/
Very important: please read the following carefully before proceeding!
Installing a new operating system on a mobile device can potentially
1. lead to all data destruction on the device
2. make it an unrecoverable brick.
So please only flash your device if you know what you are doing and are OK with taking the associated risk. I deny any and all responsibility about the consequences of using /e/ software and/or /e/ services.
- Start configuration
- Backup your current files and data
- Make sure your device battery is charged above 50%
Settings > About phone
, enable- Developer Options (Tap on the MIUI version 7 times)
Settings > SYSTEM SETTINGS > Additional settings > Developer Options
, enable- OEM unlocking
- USB Debugging
- Mi Unlock Status
- Give permission
- Add mi account
- Unlock bootloader
- On PC Windows, go to https://en.miui.com/unlock/
- Log to mi account and download
Mi Unlock
- Shut down your phone. Hold volume down key and power button to enter
Fastboot mode
- Connect your phone to PC using USB cable and click
miflash_unlock.exe
- Replace recovery : TWRP
- Install ADB drivers
- Shut down your phone and connect phone to pc
- Enter
Fastboot mode
(hold volume down key and power button) - Check usb link2
- $ fastboot devices -l
6bb90eca fastboot usb:1-1.2
- $ fastboot flash recovery recovery.img
- $ fastboot boot recovery.img
- $ adb devices
List of devices attached 6bb90eca recovery
- $ fastboot devices -l
- Transfer zip
- $ adb push Disable Force Encryption3 /sdcard
- $ adb push Magisk4 /sdcard
- Install zip with
TWRP > Home > Install > Select
- Install /e/
- Download /e/ rom5
TWRP > Home > Advanced > ADB Sideload
, then swipe to begin sideload.- On the host machine, sideload the package using
- $ adb sideload chiron.zip
- Once finished,
TWRP > Home > Reboot > System
1 https://eu.dl.twrp.me/chiron/twrp-3.3.1-1-chiron.img.html
2 adb usb link help
- $ lsusb
Bus 002 Device 009: ID 18d1:d00d Google Inc. vendor id: 18d1 product id: d00d
- $ sudo vim /etc/udev/rules.d/51-android.rules
only fasboot menu
- $ sudo udevadm control --reload-rules
- $ sudo usermod -aG adbusers $LOGNAME
- $ sudo adb kill-server
- $ sudo adb start-server
3 https://www.cyanogenmods.org/downloads/disable-force-encryption-twrp-flashable-zip-treble/
4 https://github.com/topjohnwu/Magisk/releases/
5 This rom has been modified because of error when flashing
assert failed : xiaomi.verify_trustzone("TZ.BF.4.0.6-00124","TZ.BF.4.0.6-00130") == "1"
solution
- Unzippe /e/ rom
- Delete 2nd line from file
META-INF/com/google/android/updater-script
- Zipped it and push it to http://ionl.fr/chiron.zip