Official download link for the best Android phone wifi router system LineageOS: https://lineageos.org/
Official download link for ADB platform tool: https://developer.android.com/tools/releases/platform-tools
Xiaomi phone 6 flashing command:
fastboot flash recovery recovery.img
adb -d sideload filename.zip
Notes: For computers with win10/win11 system, if after entering the first flashing Recovery command above, the black box command line displays "Waiting for any device!", it means that your computer cannot recognize the phone. You may need to install ADB driver on your computer so that it can recognize the phone and proceed with flashing normally. Download link for ADB usb driver: https://www.mediafire.com/file/a0vszuq2cyqdnuv/usb_driver.zip/file
After downloading, unzip the file, select android_winusb.inf in the folder, then right-click with your mouse and choose "Install" from the menu to install ADB usb driver. Once installed, your computer will be able to recognize the phone and you can proceed with flashing normally.