Steps (assumed bootloader is unlocked)
- Prepare materials listed in "Materials" sections
- Navigate to References section, 3rd link to download the adb fastboot drivers, make sure all the necessary executables are configured in system environment variables. Test it with typing adb command in cli.
- Boot up the MiPad 4 to fastboot mode by pressing volume down together with on / off button, connect the device to the Windows host
- If this is the first time you ever perform connection between Windows and Android devices in debug mode or ADB flash mode, install the driver in folder "android-bootloader-interface-driver"
- You may see "Other devices > Android" with exclaimation mark beside in device manager, right click the item, choose "Update driver > Browser my computer for drivers > Let me pick from a list of available drivers on my computer > Show all devices", then browse to the folder downloaded in step 3, choose the file "android_winusb.inf" file to install the driver
- Choose "Android bootloader interface" and install.
- Run the "usb-conn-fix-run-as-admin.bat" in administrator mode.
- Connect the Mipad 4 in fastboot mode again.
- Flash the "recovery-20241226-clover.img" with command by "fastboot flash recovery recovery-20241226-clover.img", make sure to navigate to the directory where the img locates. Wait for the completion.
- Shutdown the MiPad 4, and press Volume up and on / off button get into the recovery interface just flashed in step 9
- Format data first, and then use the "adb sideload" command to flash the LineageOS ROM with file name "lineage-22.2-20250616-UNOFFICIAL-clover.zip", make sure you configured the ADB sideload mode first in the recovery interface first. Back to the Windows host, run "adb sideload lineage-22.2-20250510-UNOFFICIAL-clover.zip", wait for completion.
- Do not restart to system at the moment, run "adb sideload MindTheGapps-15.0.0-arm64-20250214_082511.zip" twice
- Restart again and it should boot to the Lineage OS
References
- Lineage OS 22 Install Guide
- [Guide] Fix for device not working in fastboot / unable to install official driver in Windows 10 / 11
- [OFFICIAL][TOOL][WINDOWS] ADB, Fastboot and Drivers - 15 seconds ADB Installer v1.4.3
- Android tool set (ADB and fastboot tools drivers)
- Drivers (.inf) for connecting devices in fastboot mode
- Fastboot recovery img
- ROM (.zip)
- GApps (.zip)
- USB registry fix (.bat)