• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

How To Guide [GUIDE][UNLOCK][ROOT] How to unlock bootloader, flash ArrowOS v11.0 ROM and root Xiaomi Poco X3 Pro

Search This thread

pl1992aw

Senior Member
Apr 5, 2019
1,040
634
But I forgot something: the OS must first be configured to disable fingerprint / lockscreen, otherwise I won't be able to mount / install ROMs.

For some reason I fail to understand, when I rebooted into recovery, I could still mount internal storage, copy the official + gapps zip, and flash it. But after I formatted it and rebooted it... no more.

My guide is here:

Follow Section 2.

If it fail for some reason, first format data, reboot to TWRP, put MIUI ROM zip in the phone, flash MIUI, format data, then reboot to TWRP again.

When any strange error encountered, it's recommended first go back to MIUI, then proceed flashing ROMs and other zips.

There are some bugs in the latest ArrowOS version 0723 of vayu. Download the 0709 version. Look in the reply of the ROM thread for that version.
 
Last edited:
  • Like
Reactions: urbanman2004

Rhaegar85

Senior Member
Oct 26, 2014
126
26
Xiaomi Poco X3 Pro
My guide is here:

Follow Section 2.

If it fail for some reason, first format data, reboot to TWRP, put MIUI ROM zip in the phone, flash MIUI, format data, then reboot to TWRP again.

When any strange error encountered, it's recommended first go back to MIUI, then proceed flashing ROMs and other zips.

There are some bugs in the latest ArrowOS version 0723 of vayu. Download the 0709 version. Look in the reply of the ROM thread for that version.
Thanks that did help to an extent. Even when I removed password in TWRP it shows device can not be decrypted. I wiped dalvik/data/cache / Reboot to recovery. At this point I'm not able to access internal memeory again, had to flash using USBotg. But after 4-5 times of wiping and rebooting finally I was able to flash miui then reboot to recovery again wipe data, reboot to recovery. Flash ROM was successful after that. Before I was trying to dirty flash to update Arrow OS, I always got an error unable to mount system root (even when trying to flash miui). Is everybody facing this issue or just some IN variant or did I do something to break my phone 🤔
Screenshot_2021-07-30-06-28-41.png
 

popej

Senior Member
Feb 17, 2008
98
24
www.gmaptool.eu
I have similar problem. Boot to TWRP (latest by Nebrassy), format data, flash ArrowOS (it was version 20210709). Then I get error like:

Code:
Unable to find partition for path 'system_root'
Failed umounting System
Error installing zip file 'usb_otg/Arrow...'

No such a problem, when flashing by ArrowOS recovery. And no problem dirty flashing ArrowOS from TWRP. Just problems after formatting data.

BTW, you went from 28th version to 23rd? As I understand, 28th include OSS vendor, but 23rd uses stock vendor. I don't know if stock vendor is included in 23rd zip. Maybe you should flash MIUI before downgrading?
 

Rhaegar85

Senior Member
Oct 26, 2014
126
26
Xiaomi Poco X3 Pro
I have similar problem. Boot to TWRP (latest by Nebrassy), format data, flash ArrowOS (it was version 20210709). Then I get error like:

Code:
Unable to find partition for path 'system_root'
Failed umounting System
Error installing zip file 'usb_otg/Arrow...'

No such a problem, when flashing by ArrowOS recovery. And no problem dirty flashing ArrowOS from TWRP. Just problems after formatting data.

BTW, you went from 28th version to 23rd? As I understand, 28th include OSS vendor, but 23rd uses stock vendor. I don't know if stock vendor is included in 23rd zip. Maybe you should flash MIUI before downgrading?
No the community build was my first Rom, unlocked the phone last week, just got it. Now I'm on ArrowOS 07/29 build. I have not tried ArrowOS recovery, on TWRP latest. Problem is after wiping data TWRP doesn't read internal storage (nor on laptop as well).
I have similar problem. Boot to TWRP (latest by Nebrassy), format data, flash ArrowOS (it was version 20210709). Then I get error like:

Code:
Unable to find partition for path 'system_root'
Failed umounting System
Error installing zip file 'usb_otg/Arrow...'

No such a problem, when flashing by ArrowOS recovery. And no problem dirty flashing ArrowOS from TWRP. Just problems after formatting data.

BTW, you went from 28th version to 23rd? As I understand, 28th include OSS vendor, but 23rd uses stock vendor. I don't know if stock vendor is included in 23rd zip. Maybe you should flash MIUI before downgrading?
The troubleshoot above worked after a few attempts. After every action you need to reboot to recovery. So wipe data-- reboot -- flash miui (get error) -- reboot -- wipe data. I repeated this cycle till miui flashed without an error then again rebooted to install Arrow Os. Worked like a charm 😂😅
 

Jeffrey68

Member
Dec 12, 2017
13
1
hello, I just did the last update of ArrowOs via pitch black recovery. So far everything is fine but I have to reinstall magisk. I patch my boot.img, I set it up via fastboot and there bootloop (blinking) on the arrow logo.
Could someone help me? thanks a lot
 

Rhaegar85

Senior Member
Oct 26, 2014
126
26
Xiaomi Poco X3 Pro
hello, I just did the last update of ArrowOs via pitch black recovery. So far everything is fine but I have to reinstall magisk. I patch my boot.img, I set it up via fastboot and there bootloop (blinking) on the arrow logo.
Could someone help me? thanks a lot
I think pitch black recovery is outdated, please try TWRP 3.5.2 and I know the magisk author prefers patching boot img method but you can also try and flash magisk from recovery, that works 😄
 

Rhaegar85

Senior Member
Oct 26, 2014
126
26
Xiaomi Poco X3 Pro
thx @Rhaegar85 and @k3lcior .
when can I format the data? can i still do this before trying the twrp method?
Sure. Boot to recovery and then format data not wipe, you have to type yes. You had to format data after flashing Arrow rom. You can still just format data and try to reboot. Else just do the same process again and format data before reboot. You can install magisk later using either method.
 

Jeffrey68

Member
Dec 12, 2017
13
1
From which version did you upgrade to this? OEM & OSS are like miui vendor and non-miui vendor. Try the above method or with TWRP else I don't think there is any other option than format data.
OK. i have updated from the july version. Indeed, by formatting the data it worked. But isn't it possible to do the OTA updates without reinstalling everything each time (magisk, apps, etc.)?
 

k3lcior

Senior Member
Feb 23, 2011
4,503
2,116
Kraków
Moto G5
Xiaomi Poco X3 Pro
OK. i have updated from the july version. Indeed, by formatting the data it worked. But isn't it possible to do the OTA updates without reinstalling everything each time (magisk, apps, etc.)?
You dont have to format Data or reinstall apps when updating, this time it was needed because the ROM was rebased from MIUI to OSS vendor so clean flash was required.
Idk about Magisk not using it.
 
  • Like
Reactions: urbanman2004

popej

Senior Member
Feb 17, 2008
98
24
www.gmaptool.eu
Idk about Magisk not using it.
If you have installed Magisk by patched boot.img, then you have to repat the same procedure after OTA. It is because ArrowOS OTA installs full OS including new boot.img. And there is no script for restoring Magisk in addon.d.
You could try to install Magisk by zip in TWRP, which is not recommended but probably would install missing script.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    is it okay if my MIUI already upgraded to 12.5.x.x ?
    If you are installing ArrowOS, yes that is OK. Most roms now require 12.5.x.x now.
    1
    .oh ,wait🤔 .I think I`m lil missunderstood something ,so for the unlock request there is no need pc? ,allready read couple ``how to`` guide tho and download all the stuff since a month ago ,because my laptop just death at perfect timing😤 ,and I did allready ``add accont and device`` in the ``settings -> additional settings -> developers option -> mi unlock status`` that one is the UBL request?

    Correct.
    1
    Hello,
    I've the X3 Pro already unlocked, with Pbrb (test3) and dotOs already installed.
    Is there contraindications to install the TWRP instead of Pbrb? I need to perform a complete backup of the smartphone...

    Should be no contraindications to install TWRP.

    Backup and restore may or may not work even with TWRP depending on the condition.

    Be prepared that any Backup you made with TWRP or Pbrb or OrangeFox may have chance that cannot be restored. Do it at your own risk.
  • 28
    If you've recently purchased a Xiaomi Poco X3 Pro, but were on the fence about using it until an AOSP ROM became available then you're in luck. Kudos to @kubersharma for his contribution by providing us the first official AOSP release, ArrowOS v11.0 [vayu].
    Now, throughout this guide, I have linked the page or post based on information I gathered to put this guide together in order to credit that person instead of having to name drop them individually. These are fully detailed instructions to make it easier for newbs.
    I've spent the better part of my day figuring all of this stuff out so hopefully you won't go through the trouble I did. PLEASE DO NOT PM ME FOR HELP. REPLY TO THIS GUIDE BELOW, THANKS. NOW LET'S BEGIN!!!

    UNLOCK BOOTLOADER
    1. Unlock the bootloader with Xiaomi Unlocker tool.
    a. Be aware this process will factory reset the device before proceeding.
    b. Download the Mi Unlock app onto your PC. Extract the contents within the zip file into an empty folder then run the app.
    c. Register for Xiaomi account and sign in with your Mi Account.
    d. Your Mi Account must be added to your Mi Settings
    • Sign into your Mi Account on the device.
    • Go to Settings –> About Phone –> tap on MIUI version (For POCO) until it says Developer options is enabled.
    • Back out of About Phone, Additional Settings –> Developer options –> Mi Unlock status.
    • Agree, then "Add account and device".
    e. Shut down your phone manually, and hold Vol down + Power button to enter Fastboot mode.
    • Download and install the latest Xiaomi USB Drivers or here (or Google's latest USB drivers for Windows if all else fails) for your PC.
    • Connect the device to the computer via USB cable, and confirm that your phone shows up recognized as "Android Bootloader Interface" (in Device Manager), and click "Unlock" in the Unlock app.
    • NOTE: If Windows does not recognize the device due to it automatically installing the wrong "Kedacom Device Driver" then you will have to manually install the drivers for "Android ADB Interface/Android Bootloader Interface".
    f. After your first initial unlock attempt, you MUST wait 168 hours before unlock process can fully complete.
    • Wiping the device or removing the Mi account from the device could result in the timer being reset.
    g. After the waiting period expires, click "Unlock" in the Unlock app. You will notice the phone will restart followed by subsequent different screens during the phone's boot sequence including the "POCO" screen which now displays an "open lock icon" at the top, indicating your bootloader unlock attempt and will eventually end up on a "This device is locked" screen where you have to confirm you are the device owner by entering your Mi Account password to "activate this device"; connect to your WiFi prior to doing so if the device lacks an active sim card.

    FLASH CUSTOM RECOVERY, DECRYPTION DISABLER, & ROM THEN ROOT
    2. Download the Official ArrowOS v11.0-vayu fastboot ROM for POCO X3 Pro [direct link here].
    a. NOTE: ArrowOS requires MIUI V12.0.4.0 firmware so it recommended to downgrade to this version before flashing ArrowOS otherwise the ROM may not boot.
    b. Choose the GApps build type which "includes Play services and now some AOSP apps have been replaced with GApps... All GApps packages and other[sic] files [were] extracted from original firmware images for Pixel4XL (coral)."
    3. [OPTIONAL] Download the latest version of Encryption Disabler then copy it along with the fastboot ROM into a folder named 'TWRP' on the root of your microSD.
    4. Ensure USB Debugging is already enabled on your device (in Settings –> Additional Settings –> Developer options).
    5. Remove any screen unlock (i.e., fingerprint, PIN, pattern or password) in MIUI.
    6. Power off device and put it in Fastboot mode (Vol down + Power button).
    7. Download the latest SDK Platform Tools from Google for adb compatibility and create a folder called "adb" in the root of the "C:\" drive.
    a. Extract the files adb, AdbWinApi.dll, AdbWinUsbApi.dll, and fastboot into the folder.
    b. Ensure the latest USB drivers are installed for your PC, connect the device to the computer via USB cable, and confirm that your phone shows up recognized as "Android Bootloader Interface".
    c. Launch "Command Prompt" on your PC and run the command:
    cd C:/adb
    • To show a list of devices (including your phone) connected to your PC, enter the command:
    fastboot devices
    8. Download the unofficial Pbrb (test3) recovery file (PitchBlack Recovery Project 3.1.0 unofficial) by Alex Besida and copy it into the ADB install folder and rename it to "recovery.img".
    9. Flash custom recovery file in CMD, run commands:
    fastboot flash recovery "recovery.img"
    fastboot boot recovery.img
    10. Your device should automatically boot into custom recovery. At this point, the microSD will become accessible from recovery or the PC, but the device's internal storage will not be which makes using a microSD card much more imperative for this process since the recovery is in early access development.
    a. Go to Wipe –> Format Data, type "yes" to perform data wipe; Back out to the main menu.
    b. Go to Install –> Navigate to the TWRP folder on the microSD (via "external_sd").
    • Select "Arrow-v11.0-vayu-OFFICIAL-20210424-GAPPS.zip" and flash the ROM, but do not change any of the checkboxes that show up before doing so.
    • Format data (not wipe) before rebooting into the new ROM.
    • NOTE: At most it takes around 1 minute to boot back up.
    11. [OPTIONAL] Power off the device and boot back into recovery.
    a. Go to Install –> Navigate to the TWRP folder on the microSD.
    • Select " Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip" and flash it, but do not change any of the checkboxes that show up before doing so.
    • NOTE: This will disable forced encryption of data partition for better performance and internal SD + Data mounting in TWRP. It's not needed for the ROM to work, but due to disabling encryption it compromises security.
    • Reboot into the new ROM.
    12. After going through the phone's boot sequence, you'll be presented with the initial phone setup process onscreen where you can begin recovering your data.
    13. Go to Settings –> About phone –>tap on Build number until it says Developer options is enabled.
    a. Back out to Settings –> System –> to access Developer options –> Enable USB Debugging.
    14. Installing Magisk via custom recovery will fail in the background, resulting in an unresponsive "POCO" screen which is caused by installer scripts not being able to properly detect the correct device info or the recovery environment does not meet its expectation. In this case, you will need to use the Patch Image method as it is guaranteed to work 100% of the time. Installing Magisk through custom recoveries on modern devices is no longer recommended due to this reason.
    a. Pull down the Notification Bar from the top of the screen and change "Charging this device via USB" to "File Transfer".
    b. Open " Arrow-v11.0-vayu-OFFICIAL-20210424-GAPPS.zip " and copy "boot.img" to the phone's internal storage.
    c. Download the latest version of Magisk (Magisk v22.1) and copy it to the phone's internal storage and use the native "Files" app to install the apk.
    • NOTE: Magisk binaries (ZIP) are now included within Magisk Manager APK file. Now you don’t have to download it separately. You can install the .apk file or rename its extension to .zip then flash it through custom recovery / TWRP.
    d. Launch Magisk from the app drawer and go to "Install" under Magisk –> "Select and Patch a File," select the "boot.img" you copied internally –> "LET'S GO".
    e. Copy the generated patched file to the ADB folder and flash it via fastboot by running the following commands:
    cd C:/adb
    fastboot flash boot boot.img
    f. Reboot into the new ROM and voila!
    fastboot reboot
    g. Use an app such as Root Checker or BusyBox Checker (from the Play Store) to confirm root status.
    h. To bypass/restore SafetyNet validation, open the Magisk app, go to Settings (cogwheel icon) and enable MagiskHide.
    5
    I have asked this question elsewhere but maybe somebody here has some experience. Is it possible to install ArrowOS OTA with another TWRP than from ArrowOS ?

    I'm asking because this AOS TWRP is very limited in functionality.
    So I have some breaking news:
    I can confirm that the latest unofficial alpha version of TWRP (TWRP-3.5.1-vayu-Nebrassy-1) is capable of decrypting and reading internal storage. Due to this advancement, I can also confirm that ArrowOS OTA updates will officially work using TWRP. There is NO NEED TO USE ANY OTHER CUSTOM RECOVERY BESIDES TWRP.
    2
    SIDENOTES:
    These are either my comments or other user's comments that may be considered helpful as it relates to ArrowOS

    Picture guide unlock bootloader, flash custom ROMs & root Xiaomi Poco X3 Pro (Credits to @pl1992aw)

    Using TWRP to install OTA Updates

    Installing OTA updates

    Stability of 'PitchBlack Recovery Project' Recovery

    How to verify SafetyNet status

    Feel feel to let me know of other threads or comments that are also related to installing ArrowOS.
    2
    Hi, when you say to downgrade, do you mean to flash the entire Miui version or just the firmware as a zip file in twrp?
    Entire MIUI. Flashing vendor and firmware packages would be sufficient, but I'm not aware of any place you can get vendor packages for this device.