紅米K40刷安卓原生系統

https://get.pixelexperience.org/alioth

教程
https://wiki.pixelexperience.org/devices/alioth/install/

1. Unlocking the bootloader

2. Flashing the vendor boot partition

  • Connect your device to your PC via USB if it isn’t already.

  • If your device isn’t already in fastboot mode, on the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:

    adb reboot bootloader
  • Once the device is in fastboot mode, verify your PC finds it by typing:

    fastboot devices
  • Download this vendor_boot.img file.

    fastboot flash vendor_boot <vendor_boot>.img

2.5 如果提示 recovery 刷入失敗:

Mac@Air ~ % fastboot flash recovery /Users/Mac/Desktop/PixelExperience_Plus_alioth-12.1
-20220920-0633-OFFICIAL.img 
< waiting for any device >
Warning: skip copying recovery image avb footer (recovery partition size: 0, recovery image size: 201326592).
Sending 'recovery' (196608 KB)                     OKAY [4.931s]
Writing 'recovery'                                 FAILED (remote: '(recovery_a) No such partition')
fastboot: error: Command failed

則分別刷入兩個分區:

fastboot flash boot_a /Users/zhangkaishen/Desktop/PixelExperience_Plus_alioth-12.1-20220920-0633-OFFICIAL.img
fastboot flash boot_b /Users/zhangkaishen/Desktop/PixelExperience_Plus_alioth-12.1-20220920-0633-OFFICIAL.img

3. Booting a custom recovery using fastboot

  • Flash recovery onto your device (replace with the actual filename!

    fastboot flash recovery <recovery_filename>.img
  • Now reboot into recovery to verify the installation. Do not reboot into the existing OS, since it will overwrite the recovery you just installed!

  • With the device powered off, hold Volume Up + Power. Keep holding both buttons until the“MI”logo appears on the screen, then release.

3.Installing PixelExperience from recovery

  • Download the PixelExperience installation package that you would like to install or build the package yourself.
  • If you are not in recovery, reboot into recovery:
    With the device powered off, hold Volume Up + Power. Keep holding both buttons until the“MI”logo appears on the screen, then release.
  • Now tap Wipe.
  • Now tap Format Data and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.
  • Sideload the PixelExperience .zip package:

    • On the device, select“Advanced”,“ADB Sideload”, then swipe to begin sideload.
    • On the host machine, sideload the package using:
      adb sideload filename.zip.

正文完
 0