[Mi 3 Android Development] sato886:
My complete steps of installing AOSP 10 on Mi3W

1) Backup​

Backup any user data on mi3

The steps below will erase all user data

2) Install ADB driver and fastboot​

[MIUI Class] Latest ADB Fastboot and USB driver installer tool for Windows

3) Unlock bootloader​

[Announcement] Mi Devices Bootloader Unlocking FAQ: Announcement, Troubleshoot, and Tips

Download miui unlock miflash_unlock-en-3.3.525.23

http://xiaomi-miui-ota-3rdrom.ks3-c...1/3.3.525.23/miflash_unlock-en-3.3.525.23.zip

Login miflash with Xiaomi account

Connect mi3 to pc with USB cable

miflash should detect mi3

Choose mi3 and click unlock

4) Flash TWRP recovery​

Download Recovery(Recommended TWRP) image recovery.img from #2

Power off mi3, then press VOLUMN-DOWN + power button and boot to fastboot mode

Connect mi3 to pc with USB cable

Start command prompt

Enter the following cmd to confirm whether pc can detect mi3.

fastboot devices

It should print the s/n number of mi3

Change directory to folder stores recovery.img

Enter the following cmd to flasg recovery which takes a few seconds

fastboot flash recovery recovery.img

5) Choose ONE alternative (arm(32) + Android 10 + pico) GApps below:​

Option A) BiTGApps-arm-10.0.0-R20_signed.zip (It works for my mi3W)​

Browse the file: https://bitgapps.com/ > Choose "ARM" > MOD EDIT: Link Removed > Click tab "Files" > Save as "BiTGApps-arm-10.0.0-R20_signed.zip"

Direct link: http://bitgapps.ga/arm/Q/BiTGApps-arm-10.0.0-R20_signed.zip

Option B) BiTGApps-arm-10.0.0-v0.6_signed.zip (It works for my mi3W)​

Browse the file: https://androidfilehost.com/?w=files&flid=302727 > Go to BiTGApps-arm-10.0.0-v0.6_signed.zip

Direct link: https://androidfilehost.com/?fid=4349826312261650978

Option C) open_gapps-arm-10.0-pico-20210403.zip (Failed to install in TWRP: Insufficient space in system partition)​

https://opengapps.org/ > choose arm(32) + Android 10 + pico > click download

6) Download AOSP 10 ROM and GApps​

7) Wipe mi3​

Power off mi3, then press VOLUME-UP + POWER button and boot to TWRP recovery

[TWRP] Press "Wipe" > "Swipe to Factory Reset" to execute

[TWRP] Press "home" back to the main menu

8) (Optional) Wipe mi3 "Internal Storage" and "System"​

[TWRP] Press "Wipe" > Press "Advanced Wipe" > Choose "Internal Storage" and "System" > "Swipe to Wipe" to execute

[TWRP] Press "home" back to the main menu

9) Copy GApps and AOSP 10 ROM to mi3​

[TWRP] Press "Mount"

Connect mi3 to pc with USB cable

[PC] Start file explorer on pc, open device mi3, and browse mi3 internal storage

[PC] Copy GApps and AOSP 10 ROM zip file to mi3

[PC] Press "Safely remove mi3" to disconnect mi3 from pc

[TWRP] Press "home" back to the main menu

10) Install AOSP 10 ROM and THEN GApps​

[TWRP] Press "Install" and it will show the internal storage of mi3

[TWRP] Browse to Aosp-10-cancro-20190915.zip, press it, "Swipe to confirm to Flash" to install

[TWRP] Wait for the installation to complete, press "back" and return to the internal storage of mi3

[TWRP] Browse to GApps zip file, press it, "Swipe to confirm to Flash" to install

[TWRP] Wait for the installation to complete, press "home" back to the main menu

11) Boot to AOSP 10​

[TWRP] Press "Reboot", press "System" and press "Do Not Install" to boot to AOSP 10

mi3 will show a Google logo with a loading bar, start system initialization, and take few mins to complete

Wait for mi3 to have DARK SCREEN and the system initialization is completed.

Press the power button once to confirm mi3 has DARK SCREEN which is not screen power save

Press the power button a few second to power on mi3 until the "mi" logo to show

mi3 will boot to AOSP 10

Done~:p