Redmi Note 7 Pro AospExtended Flashing Guide
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!!)
- ROM[1] View here
- Gapps[2] (Optional) View here
- Recovery[3] Download here
- Firmware[4] Download here
- Drivers[5]
- USB Cable
- Fastboot ROM (
In case it bricks, need for rescue flashing) View here - Unlock Tool Download here
Prepare these in advance to avoid panic during unexpected situations. Everything is ready, all we need is the east wind.
2. Unlock the Device
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.
On the device to be unlocked, log in with the Xiaomi account that has unlock permissions. Go to “
Settings->Developer Options->Device Unlock Status” andBind account and device(This option is available from MIUI V8.1 onwards). Don’t tell me you can’t findDeveloper Optionsno problem, let me guide you step by step:- Open the phone, find the
Settingsoption on the home screen and open it. - In the
Settingsinterface, findAbout Phone, click to enter. - In the
About Phoneinterface, click onMIUI Versionto open. - Then repeatedly tap the
MIUI Versionsection about 6 times; a prompt indicating developer options will appear below. - Return to the previous level, find
Additional Settingsor similar, click to enter. - Find
Developer Options, click to enter, and turn on theDeveloper Optionsswitch.
- Open the phone, find the
After successful binding, manually enter
Bootloadermode (Power off, then hold Power button + Volume Down button simultaneously).On the PC, extract the
Unlock Toolpackage, log in with the same Xiaomi account that has unlock permissions, and connect the phone viaUSB.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
- Manually enter
Bootloader modeon the phone (Power off, then hold Power button + Volume Down button simultaneously). - Connect the phone via
USB. On the PC, extract the previously downloaded recovery file, open it, and run thebat batch file. Follow the prompts. - Restart the phone into
recovery(Power off, then hold Power button + Volume Up button simultaneously). UnderLanguage, selectChinese(Simplified)or your preferred language if available. - Select
Wipe,Format Data Partition, typeyes. - Return to the main page, click
Reboot, thenRecovery.
4. Flash ROM and Gapps in Recovery
- Click
Mountand enableMTP mode. Connect viaUSB, then drag the firmware package, the prepared ROM, and Gapps zip files into the phone’s storage. - Create a
ROM folderand place theROM,Gapps(optional), andFirmwarefiles inside. - Go to
Wipe, swipe to perform aFactory Reset(Wipe Data/Cache/Dalvik). - Install in order:
Firmware,ROM,Gapps. - After success, return to the main page, go to
Wipe, andFormat Data Partitionagain (typeyes). 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_COMPLETEandDEVICE_PROVISIONEDvia 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 containingadb.exeis not added to the Environment Variables, you need to open Command Prompt in the directory whereadb.exeis located, then changeadbin 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:
- PC: Windows 10
- ROM: AospExtended-v6.5-violet-20190602-1244-Derped.zip
- Gapps: open_gapps-arm64-9.0-stock-20190606
- From xda-developers forum https://forum.xda-developers.com/redmi-note-7-pro/development/rom-aospextended-rom-v6-5-t3932741↩︎
- Highly recommended to add Gapps if you have a scientific internet connection, to improve cloud functionality.↩︎
- 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↩︎
- Firmware is a specific prerequisite for this ROM.↩︎
- Drivers are usually installed automatically. If not installed, please run
MiUsbDriver.exein theUnlock Toolpackage.↩︎