Redmi Note 7 Pro AospExtended Flashing Guide

4 min

Redmi Note 7 Pro AospExtended Flashing Guide

Disclaimer: This tutorial represents personal flashing experience and may not suit all devices.

If flashing fails according to this guide, you assume full responsibility.

Flashing carries risks; proceed with caution.

1. Backup / Prepare Necessary Files

“A workman must sharpen his tools if he is to do his work well.”

Flashing is straightforward, but losing important data is irreversible.

Backup

  • Contacts
  • Applications
  • Photos
  • Relevant files

No further details (too many painful lessons). Data is priceless. If you’ve decided to flash, plan your exit strategy in advance.

Downloads (Pay attention!!)

Prepare these in advance to avoid panic during unexpected situations. Everything is ready, all we need is the east wind.

2. Unlock the Device

  1. Visit the unlock page to apply for unlock permissions (Apply here). Wait for approval. If you already have permission, the page will automatically redirect to the unlock tool download page.

  2. On the device to be unlocked, log in with the Xiaomi account that has unlock permissions. Go to “Settings -> Developer Options -> Device Unlock Status” and Bind account and device (This option is available from MIUI V8.1 onwards). Don’t tell me you can’t find Developer Options no problem, let me guide you step by step:

    1. Open the phone, find the Settings option on the home screen and open it.
    2. In the Settings interface, find About Phone, click to enter.
    3. In the About Phone interface, click on MIUI Version to open.
    4. Then repeatedly tap the MIUI Version section about 6 times; a prompt indicating developer options will appear below.
    5. Return to the previous level, find Additional Settings or similar, click to enter.
    6. Find Developer Options, click to enter, and turn on the Developer Options switch.
  3. After successful binding, manually enter Bootloader mode (Power off, then hold Power button + Volume Down button simultaneously).

  4. On the PC, extract the Unlock Tool package, log in with the same Xiaomi account that has unlock permissions, and connect the phone via USB.

  5. Click the “Unlock” button in the PC unlock tool. It should take about 10 seconds to complete.

    Note:

    • The verification time for the first bound device varies. Mine was 168 hours; a friend had to wait 300 hours.
    • After unlocking, relocking and unlocking again does not require waiting.

3. Flash Recovery via Fastboot

  1. Manually enter Bootloader mode on the phone (Power off, then hold Power button + Volume Down button simultaneously).
  2. Connect the phone via USB. On the PC, extract the previously downloaded recovery file, open it, and run the bat batch file. Follow the prompts.
  3. Restart the phone into recovery (Power off, then hold Power button + Volume Up button simultaneously). Under Language, select Chinese(Simplified) or your preferred language if available.
  4. Select Wipe, Format Data Partition, type yes.
  5. Return to the main page, click Reboot, then Recovery.

4. Flash ROM and Gapps in Recovery

  1. Click Mount and enable MTP mode. Connect via USB, then drag the firmware package, the prepared ROM, and Gapps zip files into the phone’s storage.
  2. Create a ROM folder and place the ROM, Gapps (optional), and Firmware files inside.
  3. Go to Wipe, swipe to perform a Factory Reset (Wipe Data/Cache/Dalvik).
  4. Install in order: Firmware, ROM, Gapps.
  5. After success, return to the main page, go to Wipe, and Format Data Partition again (type yes). This is sometimes recommended for A/B devices or encryption issues.

5. Reboot the Device

If you didn’t flash Gapps, you can use it normally. If you did, please read below.

After flashing Gapps on an Android phone, the system will enter the Gapps setup wizard (setting up the Google account) upon booting. This requires connecting to Google for verification, which can be problematic without a proper connection.

Solutions for this situation:

  • Router with VPN / Proxy
  • Tap the four corners of the screen clockwise
  • Change USER_SETUP_COMPLETE and DEVICE_PROVISIONED via ADB

Tap the Four Corners Clockwise

I tried it and it worked. Tap the four corners of the screen sequentially (clockwise direction, starting from the upper left corner) to skip this guide.

Change USER_SETUP_COMPLETE and DEVICE_PROVISIONED

With the phone booted up, connect it to the computer and use the adb tool to modify the values of USER_SETUP_COMPLETE and DEVICE_PROVISIONED. Specific operations are as follows:

  • Open Command Prompt, enter the commands:
adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1
  • Reboot, done.

Note:

  • On WINDOWS, if the path containing adb.exe is not added to the Environment Variables, you need to open Command Prompt in the directory where adb.exe is located, then change adb in the above commands to .\adb.exe.
  • If the above commands run incorrectly, there will be a prompt; success shows no message.

Finally, the test environment:


  1. From xda-developers forum https://forum.xda-developers.com/redmi-note-7-pro/development/rom-aospextended-rom-v6-5-t3932741↩︎
  2. Highly recommended to add Gapps if you have a scientific internet connection, to improve cloud functionality.↩︎
  3. Recovery from xda-developers forum, one-click bat modified by me https://forum.xda-developers.com/redmi-note-7-pro/development/unofficial-twrp-3-3-1-proper-t3933531↩︎
  4. Firmware is a specific prerequisite for this ROM.↩︎
  5. Drivers are usually installed automatically. If not installed, please run MiUsbDriver.exe in the Unlock Tool package.↩︎