Re-installation of Stock Rom or Firmware Note 4

Re-installation of Stock Rom or Firmware Note 4



You are using an out of engagement browser. It may not display this or other websites correctly.
You lot should upgrade or use an
culling browser.

[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Notation 4 Snapdragon stock to Android 11 / LineageOS 18.1
[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4/4X Snapdragon SOC (codename mido) stock to Android 11 R / LineageOS 18.1

Complete guide to install Android xi on your Xiaomi Redmi Note 4 (Snapdragon).
This tutorial only applies to this model, to check the correct version:

in Android, go to Settings > About phone, make sure Device model is Redmi Note four.
It must be Snapdragon: below Device model, CPU must be Octa-core Max 2.0Ghz
### If CPU is not Octa-core Max ii.0Ghz, you have the Mediatek version (codename Nikel), see here:
https://forum.xda-developers.com/f/xiaomi-redmi-annotation-4-mediatek-roms-kernels-reco.5784/

### If phone is not Redmi Note iv, quit this tutorial


CHANGELOG

v2. BitGApps, updated TWRP + Magisk
v1. Initial release


one) WHAT Y’all Demand

– djibe Redmi Note iv pack:
https://fleck.ly/djibe-redminote4-pack

(contains all y’all need: USB drivers + Mi Unlock tool + fastboot & adb + TWRP Recovery 3.5.2_9-0 + OrangeFox recovery + Magisk root v23)

+ ROM LineageOS Unofficial 17.1:
https://forum.xda-developers.com/t/ota-3-xviii-4-9-unofficial-lineageos-17-i-mido.4039907/

Download latest build:
https://androidfilehost.com/?westward=files&flid=309016&sort_by=date&sort_dir=DESC

### Yes we need both 17.1 AND 18.1 LineageOS (LOS) ROMS !

+ ROM LineageOS Unofficial 18.1:
https://forum.xda-developers.com/t/…ineageos-18-1-mido-vanilla-past-zeelog.4186179/

Download latest build:
https://github.com/zeelog/OTA/releases

+ BiTGApps Package ARM64 xi R44+:
https://github.com/BiTGApps/BiTGApps-Release/releases


two) INSTALL DRIVERS

Go to the folder you lot unzipped before.
navigate to usb_driver_r13-windows > usb_driver.
Correct click on android_winusb.inf and select Install. Ostend with OK.
Restart Windows.


three) BACKUP YOUR DATA

Brand sure Google/provider business relationship is synchronized.
Backup photos, documents, contacts earlier going any further (ex: use the backupyourmobile app).
Connect phone to PC, search for all .jpg, .mp3, .mp4 files on your phone and call back information.


4) UNLOCK BOOTLOADER

### Before going farther, you need the latest official firmware.

Go to Settings > Virtually phone.
MIUI version must be eleven.0.2.0 (NCFMIXM).
Unlock Programmer settings:
Tap 7 times on MIUI version item.

If non: connect to Wifi, tap on Organization update > Check for updates.
### System won’t update ? Download latest firmware from hither:
https://xiaomifirmwareupdater.com/firmware/mido/

MIUI Account
Insert your SIM card.
Enter Sim PIN and turn off wifi, turn on mobile data and sync.
Become to Settings > Mi Account
Enter your telephone number adjusted to prefix and create an account (if not yet done).
Make sure phone Mi Business relationship is active, in Settings, too Mi account is written an identifier.

Go to Settings > Additional settings > Developer options and ringlet to Mi Unlock Status item.
Permission required, Concord
### Make sure Wifi is off and mobile information on, then tap on Add account and device, then Got it.
### As written, don’t sign out of Mi account, perform manufactory reset or erase system data for now.
### Keep calm and carry on.

Now open the \Mi Unlock subfolder from my pack.
Launch miflash_unlock.exe ad ambassador: correct click on .exe > Run as administrator
Agree to terms.
Login to your Mi account (with telephone number prefixed or email)
Confirm login with SMS verification.

### Culling: Open this webpage from your PC:
https://en.miui.com/unlock/

### Click on Unlock now, then Download Mi Unlock archive. Unzip and refer to previous steps.

Dorsum to phone, turn it off.
Then hold Volume down + Power buttons until phone vibrates and displays Fastboot screen.
Connect phone to USB.

Back to PC, Mi Unlock at present says “Phone connected”.
Unlock push is bachelor, click on it and confirm with Unlock anyway.
Wait until Unlocked successfully is displayed.
Click on Reboot telephone.
Unlocked is written at the lesser of screen during boot.

### Demand to quit Fastboot mode ? Concord Power until telephone vibrates and restarts.


5) Wink TWRP RECOVERY

Dorsum to Android, become to Settings > Boosted settings > Developer options,
switch OEM unlocking ON and USB debugging ON.

Connect telephone to PC.

Open a Windows command prompt on the /wink subfolder folder you unziped earlier:
select folder with left click, right click while holding SHIFT on keyboard > Open up command windows hither

In command, enter

Commands starts adb and returns: bfacf0c80104 unauthorized
On the phone, Let USB debugging and send command again.
Command now returns: bfacf0c80104 device
Now enter Phone restarts in bootloader/fastboot mode.

Enter

Command returns: bfacf0c80104 fastboot
### If not, you may try to reinstall USB drivers or try another PC.
At present enter

                              fastboot flash recovery twrp-3.5.2_9-0-mido.img
                            

Command returns: Finished. Total time: 1.540s

Now enter

                              fastboot boot twrp-3.5.2_9-0-mido.img
                            

and expect while TWRP recovery boots.

TWRP asks: Decrypt data, tap on Cancel.
so Swipe to Let Modifications.

Leave telephone connected to PC.

Nosotros must remove encryption to access partitions.
From TWRP Home screen, become to Wipe > Format Data. This will remove all data on telephone.
Blazon yes and confirm with bottom right icon.


6) Fill-in Organisation

Now go to Abode screen > Backup.
Select Organization, Vendor, Kick, Bootloader, Firmware and EFS partitions.
Swipe to Backup and wait during Fill-in.

Back to Habitation > Mount.
Using Windows Explorer, access Redmi Notation iv and copy the TWRP folder from Internal Storage folder to somewhere safe.

Then copy OrangeFox and LineageOS 17.ane to the same phone’s Internal Storage folder.


7) Wink ORANGEFOX RECOVERY

Now become to Home screen > Install
Select OrangeFox*.zilch and Swipe to confirm Flash, recovery will auto-reboot.


eight) Flash LINEAGEOS 17.ane

Coming from Android vii, nosotros need to wink Android 10 to prevent bugs with fingerprint or bootloops…

Once over again Swipe to Allow Modifications.

On bottom navigation bar, tap on Files.
And so select lineage-17.1*.zip and Swipe to Install.
So tap on Wipe Caches > Swipe to wipe,
and so Reboot Arrangement.

Expect during boot.
Quickly setup Android and try to skip configs.
In one case finished, turn telephone off.


9) FLASH LINEAGEOS 18.i

Kick in Recovery mode:

Concur Power + Volume+ until Mi logo shows upwards and release buttons.
Look during OrangeFox recovery kicking.

On bottom navigation bar, tap on Wipe.
Select Dalvik/Art enshroud, Enshroud, Arrangement, Data and Vendor partitions,
then Swipe to Wipe.

Dorsum to Home > Menu (right icon of navigation bar) > Mount

Copy lineage-18.1*.zip, BitGApps, Magisk*.zip on Internal Storage.

Then back to Files carte du jour (left item of navigation bar).
Tap in lineage > Add to Queue > Magisk (optional) > Add to Queue > BitGapps and Swipe to Install.

When flash is over > Wipe Caches and Reboot System.


10) ROOT ACCESS AND DEVELOPER Carte du jour (OPTIONAL)

With Magisk, you are root once phone is started. No extra manipulation needed.
Superuser permissions tin be managed from Magisk Manager app (information technology was flashed during Magisk wink. Or go it
https://github.com/topjohnwu/Magisk/releases).

Yous tin can now remove install files from Internal storage.

For developer menu:
open the Settings menu, select “Almost Phone”.
Tap on the “Build number” entry vii times. You lot should be notified, that the developer settings are at present active.
Now go to Settings carte du jour > System > Developer settings.

That’s it.

Enjoy,
djibe

Cheers: anandsvm, Zeelog, Aryan Kedare,
@xtrymind
@flex1911, LineageOS team, TWRP team, OrangeFox recovery team

Last edited:

Thanks for this… Will endeavor it in 2-3 days

Thanks for this… Will attempt information technology in ii-3 days

Hi,
Any feedback is very welcome.

Normally you take all you need to hack it.

Enjoy
:D

Volition payment apps work after installing magisk? like Gpay, PhonePe
Also volition it have 7 days to unlock bootloader?

Will payment apps work afterward installing magisk? similar Gpay, PhonePe
Also will it have vii days to unlock bootloader?

Hi, no idead for payment.
Only MagiskHide normally does the trick.

Unlock bootloader is fast with all the tools in my pack.

Volition payment apps work afterwards installing magisk? like Gpay, PhonePe
Also will information technology take seven days to unlock bootloader?

Root is optional.

Tin’t become majisk install after several times can’t install it tried for super su but that likewise not installing in los 18.1

Can’t get majisk install after several times can’t install it tried for super su simply that too non installing in los 18.ane

Hi, what is the error during flash in TWRP ?

Error1 displayed but later reflashing with mindgapps majisk is working now

Error1 displayed but subsequently reflashing with mindgapps majisk is working at present

Cool, enjoy. The telephone is still good


A very nice and clean tutorial, thanks for that!

I already unlocked bootloader with another tutorial and for now I volition leave the device on the last stock firmware. Merely I already tested magisk. It’s very new to me. The terminal phone I flashed is some years ago and I only knew SuperSU.

The Note iv is but a “2nd device” and I won’t use information technology as a daily driver. But it’s fun to play effectually with it and test some things.

@djibe89
Good hint, that I have to employ an older rom as an intermediate footstep to avoid problem, this is new to me.

Also I wondered when I looked up the partitions to backup. There are 15 (!?) partitions (Pics attached). Yous are writing, that following partitions have to be backed upwardly: System, Vendor, Boot, Bootloader, Firmware and EFS partitions.
When I flash lineage and then want to become back, tin can I simply restore the partitions? What happens to the other partitions when I flash a rom? Will they be deleted? Some years ago a phone just had 4 or five partitions…

Attachments

Many thanks for the guide. Worked well. Tin I remove Magisk to unroot or would I need to start Over?

Many thank you for the guide. Worked well. Can I remove Magisk to unroot or would I demand to first Over?

Hullo, you can uninstall from the Magisk app

Great guide, Im new to flashing roms and this seems understandable. Is this usable for Xiaomi Redmi Note 4x (snapdragon)?

Great guide, Im new to flashing roms and this seems understandable. Is this usable for Xiaomi Redmi Annotation 4x (snapdragon)?

Howdy,
Yes.
Like written in the Title, information technology is for the snapdragon version, Aka 4X

Ooh i did not know the only divergence between the annotation 4 and note 4x is that the 4x uses snapdragon.

The reason I was doubting is that I got a unlike device ID so I thought i my telephone is a unlike model

List of devices fastened
e640de900903 device

I volition proceed later tonight, thank you for your quick response.

[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Notation iv Snapdragon SOC (codename mido) stock to Android 11 R / LineageOS 18.ane

Complete guide to install Android 11 on your Xiaomi Redmi Notation four (Snapdragon).
This tutorial only applies to this model, to check the correct version:
in Android, go to Settings > About phone, make sure Device model is Redmi Note 4.
It must be Snapdragon: below Device model, CPU must exist Octa-cadre Max 2.0Ghz
### If CPU is non Octa-cadre Max 2.0Ghz, yous accept the Mediatek version (codename Nikel), come across hither:
https://forum.xda-developers.com/f/xiaomi-redmi-annotation-four-mediatek-roms-kernels-reco.5784/

### If phone is not Redmi Note four, quit this tutorial

CHANGELOG —————————————-

v1. Initial release

1 ) WHAT YOU Demand

– djibe Redmi Note 4 pack:
https://flake.ly/djibe-redminote4-pack

(contains all you lot need: USB drivers + Mi Unlock tool + fastboot & adb + TWRP Recovery iii.five.0_9-0 + OrangeFox recovery + Magisk root)

+ ROM LineageOS Unofficial 17.1:
https://forum.xda-developers.com/t/ota-3-18-4-9-unofficial-lineageos-17-ane-mido.4039907/

Download latest build:
https://androidfilehost.com/?westward=files&flid=309016&sort_by=date&sort_dir=DESC

Yes nosotros demand both LineageOS (LOS) ROMS !

+ ROM LineageOS Unofficial 18.1:
https://forum.xda-developers.com/t/…ineageos-18-ane-mido-vanilla-past-zeelog.4186179/

Download latest build:
https://github.com/zeelog/OTA/releases

+ FlameGApps Basic:
https://sourceforge.internet/projects/flamegapps/files/arm64/android-11/BETA/

two ) INSTALL DRIVERS

Become to the binder you unzipped earlier.
navigate to usb_driver_r13-windows > usb_driver.
Right click on android_winusb.inf and select Install. Confirm with OK.
Restart Windows.

iii ) Backup YOUR DATA

Make sure Google/provider account is synchronized.
Backup photos, documents, contacts before going whatsoever further (ex: utilize the backupyourmobile app).
Connect telephone to PC, search for all .jpg, .mp3, .mp4 files on your phone and call up information.

4 ) UNLOCK BOOTLOADER

### Before going farther, y’all need the latest official firmware.

Go to Settings > About phone.
MIUI version must be 11.0.2.0 (NCFMIXM).
Unlock Developer settings:
Tap 7 times on MIUI version item.

If not: connect to Wifi, tap on System update > Bank check for updates.
### System won’t update ? Download latest firmware from here:
https://xiaomifirmwareupdater.com/firmware/mido/

MIUI Business relationship
Insert your SIM menu.
Enter Sim Pin and turn off wifi, plough on mobile data and sync.
Go to Settings > Mi Business relationship
Enter your telephone number adapted to prefix and create an account (if not even so done).
Brand sure phone Mi Business relationship is active, in Settings, also Mi business relationship is written an identifier.

Go to Settings > Additional settings > Programmer options and roll to Mi Unlock Status particular.
Permission required, Agree
### Make certain Wifi is off and mobile information on, then tap on Add together account and device, then Got it.
### As written, don’t sign out of Mi account, perform factory reset or erase system data for at present.
### Keep at-home and bear on.

Now open up the \Mi Unlock subfolder from my pack.
Launch miflash_unlock.exe ad ambassador: right click on .exe > Run as ambassador
Concord to terms.
Login to your Mi account (with telephone number prefixed or e-mail)
Confirm login with SMS verification.

### Alternative: Open this webpage from your PC:
https://en.miui.com/unlock/

### Click on Unlock now, then Download Mi Unlock archive. Unzip and refer to previous steps.

Back to telephone, plough it off.
Then hold Volume down + Power buttons until phone vibrates and displays Fastboot screen.
Connect phone to USB.

Back to PC, Mi Unlock now says “Telephone continued”.
Unlock button is available, click on it and ostend with Unlock anyway.
Wait until Unlocked successfully is displayed.
Click on Reboot phone.
Unlocked is written at the bottom of screen during boot.

### Need to quit Fastboot mode ? Hold Power until phone vibrates and restarts.

five ) Flash TWRP RECOVERY

Back to Android, go to Settings > Boosted settings > Developer options,
switch OEM unlocking ON and USB debugging ON.

Connect phone to PC.

Open a Windows command prompt on the /wink subfolder folder you unziped before:
select folder with left click, right click while belongings SHIFT on keyboard > Open control windows hither

In command, enter

Commands starts adb and returns: bfacf0c80104 unauthorized
On the phone, Allow USB debugging and send control over again.
Command now returns: bfacf0c80104 device
Now enter Phone restarts in bootloader/fastboot style.

Enter

Command returns: bfacf0c80104 fastboot
### If non, y’all may try to reinstall USB drivers or try another PC.
Now enter

                                fastboot flash recovery twrp-3.v.0_9-0-mido.img
                              

Command returns: Finished. Total time: one.540s

At present enter

                                fastboot kicking twrp-iii.5.0_9-0-mido.img
                              

and wait while TWRP recovery boots.

TWRP asks: Decrypt data, tap on Cancel.
and then Swipe to Allow Modifications.

Leave telephone connected to PC.

We must remove encryption to access partitions.
From TWRP Domicile screen, go to Wipe > Format Information. This will remove all data on phone.
Type yes and confirm with bottom right icon.

6 ) Fill-in SYSTEM

Now become to Abode screen > Backup.
Select Arrangement, Vendor, Kicking, Bootloader, Firmware and EFS partitions.
Swipe to Fill-in and wait during Backup.

Back to Dwelling > Mount.
Using Windows Explorer, access Redmi Note 4 and copy the TWRP binder from Internal Storage folder to somewhere safe.

Then re-create OrangeFox and LineageOS 17.i to the aforementioned telephone’s Internal Storage binder.

7 ) FLASH ORANGEFOX RECOVERY

Now go to Dwelling screen > Install
Select OrangeFox*.zip and Swipe to confirm Flash, recovery volition car-reboot.

eight ) FLASH LINEAGEOS 17.1

Coming from Android 7, we need to flash Android x to prevent bugs with fingerprint or bootloops…

Once again Swipe to Allow Modifications.

On bottom navigation bar, tap on Files.
Then select lineage-17.1*.zip and Swipe to Install.
Then tap on Wipe Caches > Swipe to wipe,
and then Reboot System.

Wait during boot.
Quickly setup Android and try to skip configs.
Once finished, plow phone off.

nine ) Flash LINEAGEOS eighteen.1

Boot in Recovery way:

Hold Power + Volume+ until Mi logo shows up and release buttons.
Await during OrangeFox recovery boot.

On lesser navigation bar, tap on Wipe.
Select Dalvik/ART cache, Cache, System, Data and Vendor partitions,
then Swipe to Wipe.

Back to Home > Menu (right icon of navigation bar) > Mount

Copy lineage-eighteen.1*.zip, FlameGApps, Magisk*.zip and Magisk Managing director*.apk on Internal Storage.

Then dorsum to Files menu (left particular of navigation bar).
Tap in lineage > Add to Queue > Magisk > Add to Queue > FlameGApps and Swipe to Install.

When wink is over > Wipe Caches and Reboot Organisation.

10 ) ROOT Admission AND DEVELOPER Card

With Magisk, you are root once phone is started. No actress manipulation needed.
Superuser permissions tin can be managed from Magisk Manager app (it was flashed during Magisk flash. Or get it
https://github.com/topjohnwu/Magisk/releases).

You can now remove install files from Internal storage.

For developer carte:
open the Settings bill of fare, select “Nigh Telephone”.
Tap on the “Build number” entry seven times. You should exist notified, that the developer settings are now active.
At present become to Settings carte > Organisation > Developer settings.

That’s it.

Enjoy,
djibe

Thank you: anandsvm, Zeelog, Aryan Kedare,
@xtrymind
@flex1911, LineageOS team, TWRP team, OrangeFox recovery team

Howdy @syzw,

Tin can y’all reinstall USB drivers in Administrator manner ?
Or try another estimator ?

Hi @syzw,

Can you lot reinstall USB drivers in Administrator mode ?
Or try some other calculator ?

I updated USB drivers in device director of PC.
Now I am enjoying A11.
Cheers.

Like threads

Re-installation of Stock Rom or Firmware Note 4

Read:  Tm-ac1900 Firmware Merlin Showing 376 Instead of 380

You May Also Like