Enable USB-Debugging and unlock phone
# Connect phone to Wifi
Settings > About Phone > Build number > tap 7x times to become developer
Settings > System > Advanced > Developer Options > OEM unclocking
Settings > System > Advanced > Developer Options > USB Debugging > OKUnlock phone
# Connect phone to computer
adb devices
# Accept "Allow access with your computer RSA key" on phone
adb reboot bootloader
fastboot oem unlockBoot bootloader
Power Off phone
Hold volume_down + power
OPTIONAL: Recovery phone with original Xiaomi image to update firmware
Flash custom image
https://arrowos.net/download
# ArrowOS download: https://get.mirror1.arrowos.net/download.php?token=oD03QRrG9umnU1Egj6VspKXNwaiIlcYSOqbfCdyP4x8WzMtT7kL2hHZFJAv5&version=arrow-11.0&variant=community&device=daisy
#OpenGA apps: https://netix.dl.sourceforge.net/project/opengapps/arm64/test/20210130/open_gapps-arm64-11.0-pico-20210130-TEST.zip
NikGapps: https://sourceforge.net/projects/nikgapps/files/Releases/NikGapps-SL/18-Feb-2023/NikGapps-core-arm64-12.1-20230218-signed.zip/download
# https://twrp.me/xiaomi/xiaomimia2lite.html
adb reboot bootloader
#fastboot boot Downloads/twrp-3.5.0_9-1-daisy-unofficial.img
fastboot boot Downloads/twrp-3.5.2_9-2-daisy-unofficial.img
#fastboot getvar current-slot
#fastboot set_active a
#fastboot reboot emergency
#
# install image
#
# image will by flashed to inactive slot b
adb devices
adb shell twrp wipe data
#adb shell twrp wipe cache
adb shell twrp wipe dalvik
adb shell twrp sideload zip from host adb
#adb sideload Downloads/Arrow-v11.0-daisy-COMMUNITY-20210508-VANILLA.zip
adb sideload Downloads/Arrow-v12.1-daisy-OFFICIAL-20221117-VANILLA.zip
#
# install GA APPS
#
#https://androidfilehost.com/?fid=15664248565197177719
https://mindthegapps.com/download/
adb reboot bootloader
fastboot boot Downloads/twrp-3.5.2_9-2-daisy-unofficial.img
adb shell twrp sideload zip from host adb
#adb sideload Downloads/NikGapps-core-arm64-12.1-20230218-signed.zip
adb sideload Downloads/MindTheGapps-12.1.0-arm64-20220605_112439.zip
# finisch
adb reboot
Power off phone
Hold volume_down + power
fastboot boot Downloads/twrp-3.5.0_9-1-daisy-unofficial.img
Wipe > Format data
reboot system
Roms
https://forum.xda-developers.com/f/xiaomi-mi-a2-lite-roms-kernels-recoveries-oth.8009/
# ArrowOS
https://arrowos.net/download > daisy
https://forum.xda-developers.com/t/rom-11-0-0_r33-arrowos-11-0-community.4242847/
# LineageOS
https://forum.xda-developers.com/t/rom-unofficial-11-0-lineage-os-18-1-xiaomi-a2-lite.4229439/
bootloader
# TWRP
https://dl.twrp.me/daisy/
https://dl.twrp.me/daisy/twrp-3.5.2_9-dees_troy-daisy.img.html
# OrangeFox
https://orangefox.download/de-DE/device/daisy
Download OrangeFox-daisy-stable@R11.0.zip
Extract OrangeFox-daisy-stable@R11.0.zip
reboot with volume_down + power
fastboot boot Downloads/OrangeFox-daisy-stable@R11.0/recovery.img
fastboot boot Downloads/twrp-3.5.2_9-dees_troy-daisy.img
fastboot boot Downloads/twrp-3.5.0_9-1-daisy-unofficial.img
#fastboot flash boot_a Downloads/OrangeFox-daisy-stable@R11.0/recovery.img
fastboot rebootadb devices
adb reboot bootloader
adb reboot recoveryfastboot reboot emergencyadb pull /tmp/recovery.logPartitions
adb shell fdisk -l /dev/block/mmcblk0
$ adb shell fdisk -l /dev/block/mmcblk0
Found valid GPT with protective MBR; using GPT
Disk /dev/block/mmcblk0: 122142720 sectors, 2296M
Logical sector size: 512
Disk identifier (GUID): 98101b32-bbe2-4bf2-a06e-2bb33d000c20
Partition table holds up to 60 entries
First usable sector is 34, last usable sector is 122142686
Number Start (sector) End (sector) Size Code Name
1 34 49 8192 0700 fsc
2 50 65 8192 0700 ssd
3 66 81 8192 0700 dpo
4 82 113 16384 0700 sec
5 114 145 16384 0700 bk1
6 146 185 20480 0700 bk2
7 186 249 32768 0700 DDR
8 250 313 32768 0700 limits
9 314 377 32768 0700 config
10 378 505 65536 0700 bk3
11 506 761 128K 0700 lksecapp
12 762 1017 128K 0700 lksecappbak
13 1018 1529 256K 0700 devcfg_a
14 1530 2041 256K 0700 devcfg_b
15 2042 2553 256K 0700 apdp
16 2554 3065 256K 0700 msadp
17 3066 4089 512K 0700 sbl1_a
18 4090 5113 512K 0700 sbl1_b
19 5114 6137 512K 0700 rpm_a
20 6138 7161 512K 0700 rpm_b
21 7162 8185 512K 0700 mota
22 8186 9209 512K 0700 keystore
23 9210 10233 512K 0700 syscfg
24 10234 12281 1024K 0700 cmnlib_a
25 12282 14329 1024K 0700 cmnlib_b
26 14330 16377 1024K 0700 cmnlib64_a
27 16378 18425 1024K 0700 cmnlib64_b
28 18426 20473 1024K 0700 keymaster_a
29 20474 22521 1024K 0700 keymaster_b
30 22522 24569 1024K 0700 misc
31 24570 26617 1024K 0700 aboot_a
32 26618 28665 1024K 0700 aboot_b
33 28666 30713 1024K 0700 dip
34 30714 32761 1024K 0700 bk4
35 32762 36857 2048K 0700 tz_a
36 36858 40953 2048K 0700 tz_b
37 40954 49145 4096K 0700 mcfg
38 49146 65529 8192K 0700 devinfo
39 65530 81913 8192K 0700 fsg
40 81914 98297 8192K 0700 modemst1
41 98298 114681 8192K 0700 modemst2
42 114682 131065 8192K 0700 bk5
43 131066 163833 16.0M 0700 splash
44 163834 196601 16.0M 0700 dsp_a
45 196602 229369 16.0M 0700 dsp_b
46 229370 262137 16.0M 0700 bk6
47 262138 327673 32.0M 0700 mdtp_a
48 327674 393209 32.0M 0700 mdtp_b
49 393210 458745 32.0M 0700 persist
50 458746 524281 32.0M 0700 persistbak
51 524288 655359 64.0M 0700 boot_a
52 655360 786431 64.0M 0700 boot_b
53 786432 917503 64.0M 0700 logdump
54 917504 1179647 128M 0700 modem_a
55 1179648 1441791 128M 0700 modem_b
56 1441792 6684671 2560M 0700 system_a
57 6684672 11927551 2560M 0700 system_b
58 11927552 13500415 768M 0700 vendor_a
59 13500416 15073279 768M 0700 vendor_b
60 15073280 122142686 51.0G 0700 userdataadb shell twrp sideload zip from host adb
adb sideload Downloads/Arrow-v11.0-daisy-COMMUNITY-20210408-VANILLA.zip
adb sideload Downloads/lineage-18.1-20210221-UNOFFICIAL-daisy.zip
adb sideload Downloads/open_gapps-arm64-10.0-pico-20210413.zip
GA apps
https://opengapps.org/
https://netix.dl.sourceforge.net/project/opengapps/arm64/test/20210130/open_gapps-arm64-11.0-pico-20210130-TEST.zip
#adb sideload Downloads/FlameGApps-11.0-basic-arm64-20210420-BETA.zip
adb shell twrp sideload zip from host adb
adb sideload Downloads/open_gapps-arm64-11.0-nano-20200911-UNOFFICIAL.zip
adb reboot
Links
https://castrillo.gitlab.io/figaro/post/lineageos17-xiaomi/
fastboot oem edl# show active slot
fastboot getvar current-slot
fastboot flash boot_b Downloads/OrangeFox-daisy-stable@R11.0/recovery.img
fastboot set_active b
fastboot reboot
Recovery / Fastboot Update
https://xiaomirom.com/en/download/mi-a2-lite-daisy-stable-V11.0.21.0.QDLMIXM/#global-fastboot
wget https://bigota.d.miui.com/V11.0.21.0.QDLMIXM/daisy_global_images_V11.0.21.0.QDLMIXM_20210630.0000.00_10.0_5cab9352ea.tgz
extract
adb reboot bootloader
# full recovery
cd daisy_global_images_V11.0.21.0.QDLMIXM_10.0
./flash_all.sh
# recovery bootloader only
fastboot flash boot_a Downloads/daisy_global_images_V11.0.18.0.QDLMIXM_10.0/images/boot.img
fastboot set_active a
fastboot rebooot
Links
https://castrillo.gitlab.io/figaro/post/lineageos17-xiaomi/