Install PixelExperience on vayuBack to the overview
Important: Please read through the instructions at least once before actually following them, so as to avoid any problems due to any missed steps!
- Make sure your computer has
fastboot. Setup instructions can be found here.
- Enable USB debugging on your device.
Unlocking the bootloader
Note: The steps below only need to be run once per device.
Warning: Unlocking the bootloader will erase all data on your device! Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent. Please note that OEM backup solutions like Samsung and Motorola backup may not be accessible from PixelExperience once installed.
Note: The following instructions require a machine running Windows 7 or newer.
- Create a Mi account on Xiaomi’s website.
Tip: A Mi account is required to unlock the bootloader. Beware that one account is only allowed to unlock one unique device every 30 days.
- Add a phone number to your Mi account.
- Insert a SIM into your phone.
- Enable developer options in
About Phoneby repeatedly tapping
- Link the device to your Mi account in
Mi Unlock status.
- Download the Mi Unlock app (Windows is required to run the app).
- Run the Mi Unlock app and follow the instructions provided by the app.
Note: The app may tell you that you have to wait up to 30 days. If it does so, please wait the quoted amount of time before continuing to the next step.
- After device and Mi account are successfully verified, the bootloader should be unlocked.
- Since the device resets completely, you will need to re-enable USB debugging to continue.
Temporarily booting a custom recovery using
Download the PixelExperience Recovery. Simply download the latest recovery file.
- Connect your device to your PC via USB.
- On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
adb reboot bootloader
You can also boot into fastboot mode via a key combination:
- With the device powered off, hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release.
- Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devicesTip: If you see
no permissions fastbootwhile on Linux or macOS, try running
fastbootas root.Tip: Some devices have buggy USB support while in bootloader mode, if you see
fastboothanging with no output when using commands such as
fastboot getvar ...,
fastboot boot ...,
fastboot flash ...you may want to try a different USB port (preferably a USB Type-A 2.0 one) or a USB hub.
- Temporarily flash a recovery on your device by typing:
fastboot flash boot <recovery_filename>.imgNote: Outdated fastboot releases dropped legacy A/B support, so it might attempt to flash to
boot_bif you try to flash
boot. In this case, you must update
fastbootto a release newer than or equal to
31.0.2. Alternatively, you can manually specify which slot to flash to based on what slot fastboot failed to flash to. For example, if fastboot fails to flash to
boot__a, you must flash to
boot_a.Tip: The file may not be named identically to what stands in this command, so adjust accordingly.
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 Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
- Return to the main menu.
- Sideload the PixelExperience
- On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.
- On the host machine, sideload the package using:
adb sideload filename.zip.Tip: Normally, adb will report
Total xfer: 1.00x, but in some cases, even if
adb: failed to read command: Success/No error. In some cases it will report
adb: failed to read command: No errorwhich is also fine.
- Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.
Warning: Depending on which recovery you use, you may be prompted to install additional apps and services. We strongly advise you to opt out of installing these, as they may cause your device to bootloop, as well as attempt to access or corrupt your data.
If you have any questions or get stuck on any of the steps, feel free to ask on our Telegram group.