Advertisement
Guest User

LOS20

a guest
Jan 30th, 2023
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. Flashing LOS on Cupid
  2.  
  3.  
  4. Xiaomi 12 LOS 20 ROM flashing
  5.  
  6. Prerequisites:
  7.  
  8. Your bootloader must be unlocked.
  9.  
  10. You should use latest platform tools on Windows. https://dl.google.com/android/repository/platform-tools-latest-windows.zip
  11.  
  12. Your device should be charged above 50%. Well, it doesn't have to be, but this is just for your phones safety.
  13.  
  14. Download all required files - ROM, boot, vendor_boot, dtbo and recovery.
  15.  
  16. Make a proper backup if needed and push it to another storage.
  17.  
  18. First steps:
  19.  
  20. After you have unlocked the bootloader, device will reboot automatically. Finish the setup, enable developer settings and finally enable USB-Debugging in developer settings.
  21.  
  22. In Windows open the folder in which you have unzipped the platform tools.
  23.  
  24. Hold left shift and press right click
  25. click "open powershell window here"
  26.  
  27. Type in Terminal for example "adb devices" and grant the permissions for this PC on your device.
  28.  
  29. Reboot your device to fastboot and connect it with your PC.
  30.  
  31.  
  32. The flashing procedure:
  33.  
  34. Flash boot, vendor_boot, dtbo and recovery:
  35.  
  36. Type in Windows Terminal:
  37.  
  38.  
  39. fastboot flash boot lineage-20-20230128-UNOFFICIAL-cupid-boot.img
  40.  
  41. fastboot flash vendor_boot lineage-20-20230128-UNOFFICIAL-cupid-vendor_boot.img
  42.  
  43. fastboot flash dtbo_ab lineage-20-20230128-UNOFFICIAL-cupid-dtbo.img
  44.  
  45. fastboot flash recovery lineage-20-20230128-UNOFFICIAL-cupid-recovery.img
  46.  
  47. and finally
  48.  
  49. fastboot reboot recovery or
  50.  
  51. reboot to recovery by holding volume up and power buttons until you see Mi logo on your screen (on device).
  52.  
  53. In LOS recovery:
  54.  
  55. do a factory reset first
  56.  
  57. go to "Factory reset" and perform "Format data / Factory reset"
  58.  
  59. all data will be erased. Then....
  60.  
  61. go to "Apply update", followed by "Apply from ADB"
  62.  
  63. First sideload the MIUI 14 firmware, if you're not coming from MIUI 14 :
  64.  
  65. type in Windows Terminal
  66.  
  67. adb sideload fw_cupid_miui_CUPID_V14.0.4.0.TLCCNXM_ac05f40933_13.0.zip
  68.  
  69. Then sideload the ROM itself :
  70.  
  71. adb sideload
  72. lineage-20-20230128-UNOFFICIAL-cupid.zip
  73.  
  74.  
  75. You can also drag ROM zip file into your terminal window, instead of typing the full name/path to file.
  76.  
  77. When finished, reboot simply your device.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement