Clean Restoration to Stock MIUI from Custom Marshmallow ROMS - Xiaomi Redmi Note 3 Guides, News, & Discussion

Custom ROMs are awesome! But sometimes, you need to get back to stock MIUI. But you cannot directly flash the MIUI rom. Eventhough, if you have made a backup of stock miui, you ll face problems while restoring back from marshmallow based custom roms. You will get an error as " extractTarFork() process ended with ERROR 255 ".
Dirty Solution:
In TWRP, mount all partitions
Go to restore, and untick only "firmware"
Restore everything; and wipe cache, dalvik cache
Reboot system
Clean Solution:
Now from above solution eventhough you ll come back to miui, but while updating through updater app, you ll not be able to flash the OTA files. This happens only on some devices. If you are facing this, you need to follow all the above steps of dirty solution. Additionally, download fastboot rom, and flash using "Flash all", which will wipe your data and internal sd card data too.
Press Thanks if i helped you

Thank-you was searching for this..I'll try restoring now ..I'm on RR with cm13 radio flashed.and I never mind about ota but can I flash full recovery rom.zip from alka again ??

Pranbellam said:
Thank-you was searching for this..I'll try restoring now ..I'm on RR with cm13 radio flashed.and I never mind about ota but can I flash full recovery rom.zip from alka again ??
Click to expand...
Click to collapse
It will do.
Sent from my Redmi Note 3 using XDA Labs

MOVZX said:
It will do.
Sent from my Redmi Note 3 using XDA Labs
Click to expand...
Click to collapse
Bro ,can u plz tell me y is firmware failing to restore ..if u know..

This tutorial works 100%fine if any1 wants to go back to miui from cm13 based roms.but all u need to have is a twrp alka backup of miui ..

Yeah. Alka backup is required

How about we don't have miui backup to restore? Can I flash any miui fastboot ROM via miflash?
I have Unofficially unlocked boadloader with CM13 radio.

I have no problem with restore miui backup. But I am not able to flash ota updates. While flashing its opening twrp recovery and I have flashed it manually, but showing error.

Related

Flashing CM 13, Resurrection remix or AOSP ROM results in bootloop or boot stuck

I have HM2014818 model (variant of HM2014811) and had the latest MIUI ROM 7.2 (developer). I decided to flash CM 13 first which resulted in bootloop then I flashed Resurrection remix which also ended in error. Now the procedure which i followed is.
1. Enter recovery mode TWRP 3.0.2-0-wt88047
2. Wipe data, system, cache , dalvik cache (formatted user data as well for last resort)
3.Flashed The ROM
4. FLashed GAPPS (Tried without flashing as well)
5. Wipe cache/dalvik cache (tried without it also)
6. Reboot System results in boot loop or boot stuck (with MI logo)
Here what I have done so far to correct it.
Downloaded stock ROM for Redmi 2 (latest developer version 6.4.14) unzipped it extracted boot.img file, replaced the resurrection remix boot.img file with stock boot.img file. The system booted, the only problem is the resurrection remix logo takes 15 minutes to change its animation sequence, it is not at all smooth. It is laggy. How to fix this can anyone give the appropriate boot.img image for faster boot keeping in mind my phone only boots from stock Boot.img file.
Restore to kitkat partitions (instructions from here).
Then wipe all data, reboot to recovery, and then flash again.
zeomal said:
Restore to kitkat partitions (instructions from here).
Then wipe all data, reboot to recovery, and then flash again.
Click to expand...
Click to collapse
What is the error ? And how is this method gonna correct it ?
nrdnandan said:
What is the error ? And how is this method gonna correct it ?
Click to expand...
Click to collapse
I have no idea of what the error per se is, but I remember having faced a similar problem and this is how I corrected it. I'm no developer.
nrdnandan said:
What is the error ? And how is this method gonna correct it ?
Click to expand...
Click to collapse
U can't flash cm13 or other mm ROMs if u r on miui lollipop bootloader.. Just downgrade to KitKat.
U can use this guide http://forum.xda-developers.com/redmi-2/how-to/rom-stock-kitkat-miui-6-fastboot-rom-t3375693
Sent from my 2014818 using XDA-Developers mobile app

Revert Back to MiUI 8 (based in KK) from MM and Viceversa

I am currently in MM, i want to go back to MIUI to try MIUI8 Global beta. I have one twrp back for MIUI7, but when i flash that from recovery (twrp 3.0.2), it shows error. Then i tried with twrp 2.8.7. but same error.
Now when i go back to MM by restoring the MM roms from TWRP recovery, phone is not unlocking even if i am entering the correct pattern. First i flashed revert back to TWRP 3.0.2, then tried to restore the back up MM roms.
I also tried to flash new MM roms, but the SIM and Wifi is not detecting.
Is there anyway that i can flash ROM. I don't think my phone is bricked, but somehow there was some error happened while i flashed MIUI backup from TWRP 2.8.7.
Device name Redmi2 2014818
You have to do Fastboot Update.
Persizi said:
You have to do Fastboot Update.
Click to expand...
Click to collapse
So will the MM recovery ROMs will work now if i again move to MM based on CM13.
rkpg said:
So will the MM recovery ROMs will work now if i again move to MM based on CM13.
Click to expand...
Click to collapse
Exactly. Just flash the TWRP recovery and you will good to go.
you may try flashing miui 7 rom from fastboot then install miui 8 from recovery ( from update > choose update package)
Flash phillz recovery by jav team and boot up in recovery then-clean to install a new rom-and flash miui 8 kk ROM it will successfully flash the ROM and will restore original firmware and ur good to go...phillz recovery will give no error while flashing...
Some times twrp gives an error by saying that its a ROM for 2014811 and u cannot install it on 2014818 better use phillz for flashing miui ROMs...
I hope this method will help u.

How to revert back to miui8 stable rom from any custom rom?

Guys help me i am currently using cm14.1 with twrp recovery . i tried to flash the miui 8 stable rom using twrp but it was unsuccessful . how can i revert back to miui without using pc .thanks in advance
Arupam46 said:
Guys help me i am currently using cm14.1 with twrp recovery . i tried to flash the miui 8 stable rom using twrp but it was unsuccessful . how can i revert back to miui without using pc .thanks in advance
Click to expand...
Click to collapse
Without PC....
1)Flash stock recovery(search it in xda) by rashr/flashify/t.w.r.p.
2)Rename the ROM file by "update.zip" and place it in the root (best is outside of any folder)of internal memory.
3)reboot in stock recovery.
4)wipe user data (not all data )
5)select update.zip from stock recovery.
I flashed miui ROM by this process many time .But. It is best to flash miui ROM by fastboot..
I tried to flash stock recovery but it stucks on mi logo while flashing through flashify
Arupam46 said:
I tried to flash stock recovery but it stucks on mi logo while flashing through flashify
Click to expand...
Click to collapse
Did u try it from here.It always work with me.Or you have to search for a compatible stock recovery with ur model for flashing global miui ROM(without PC).
I tried this but it didnt workd
easy..!! flash twrp whichever build you were on.. reboot to twrp, wipe system, data, caches then flash miui8 any official build, you may get error 7 then go back and mount everything choose reboot to recovery again and flash miui8 this time it will be installed showing flashing firmware.
do caches wipe then reboot. done..!!
Arupam46 said:
Guys help me i am currently using cm14.1 with twrp recovery . i tried to flash the miui 8 stable rom using twrp but it was unsuccessful . how can i revert back to miui without using pc .thanks in advance
Click to expand...
Click to collapse
Stable MIUI, without Computer, Use Xiaomi.eu ROM for your device, they are zip which can be flashed easily with twrp 3.0 !! It's Pure MIUI with some more feature, also it gets update every Friday.

TWRP recovery error 7

I flashed this official lineage os for zuk z1 , which is the first build but I am getting error 7 in TWRP while flashing and the installation is aborted. I am attaching screenshots taken of the error I encountered, please kindly check and give me any solution to this problem
I am using TWRP 3.0.2
Last ROM :-Official CM13 18-12-2016 nightly
turnoff signature verification in twrp setting
singh.9yashpal9 said:
turnoff signature verification in twrp setting
Click to expand...
Click to collapse
It won't work..i'm facing the exact same problem with the same version of the twrp recovery and i did try turning of the zip verification too.
singh.9yashpal9 said:
turnoff signature verification in twrp setting
Click to expand...
Click to collapse
Tried turning off zip signature verification, it didn't help... Then I googled the problem, I found out that we should modify code in update_script... Decompress the file, that is
1) unzip the nightly zip
2) go into META-INF>com>Google>Android
There you'll find two files , select updater-script and rename it to updater-script.txt
It will convert into txt file so you can edit it.
3) delete the assert commands till last semicolon or delete all from assert till you see ”mount(ext......” (don't delete​ Mount....)
4) save the changes. Then again rename it that is from updater-script.txt to updater-script..
5) compress the file again into zip format.
There you go, you can flash this without any errors.... I tried this , it works fine...
Anyone have any other solution? No one's facing this issue?
I read that old bootloader is also one of the problem to get this issue? How to update bootloader?
tanmeshn said:
I flashed this official lineage os for zuk z1 , which is the first build but I am getting error 7 in TWRP while flashing and the installation is aborted. I am attaching screenshots taken of the error I encountered, please kindly check and give me any solution to this problem
I am using TWRP 3.0.2
Last ROM :-Official CM13 18-12-2016 nightly
Click to expand...
Click to collapse
http://forum.xda-developers.com/zuk-...overy-t3572069
Try this Version of TWRP, What i figured is like some versions of twrp do cause some problems,..
STEPS :-
1.) Download that Image file
2.) YOU DON'T HAVE TO WIPE ANYTHING IF YOU INSTALLED ANY ROM, BECAUSE YOU ARE JUST CHANGING YOUR TWRP VERSION.
3.) IT'S JUST THE WAY YOU FLASH A ZIP FILE BUT HERE WHEN YOU GO TO THE INSTALL OPTION BOTTOM RIGHT CHANGE INTO INSTALL IMAGE.
4.) SEARCH FOR THE IMAGE AND FLASH IT. AND THEN REBOOT THEN REBOOT INTO RECOVERY AND HAVE FUN FLASHING OFFICIAL LINEAGE.
----SENT FROM LINEAGE ZUK.
tanmeshn said:
Tried turning off zip signature verification, it didn't help... Then I googled the problem, I found out that we should modify code in update_script... Decompress the file, that is
1) unzip the nightly zip
2) go into META-INF>com>Google>Android
There you'll find two files , select updater-script and rename it to updater-script.txt
It will convert into txt file so you can edit it.
3) delete the assert commands till last semicolon or delete all from assert till you see ”mount(ext......” (don't delete​ Mount....)
4) save the changes. Then again rename it that is from updater-script.txt to updater-script..
5) compress the file again into zip format.
There you go, you can flash this without any errors.... I tried this , it works fine...
Anyone have any other solution? No one's facing this issue?
I read that old bootloader is also one of the problem to get this issue? How to update bootloader?
Click to expand...
Click to collapse
Well,turning off signature verification worked for me after i clean flashed over unofficial los 14.1 and using twrp 3.1.0.0...
This worked for me,give a try
1.Wipe-> apvance wipe system dalvik data cache
2.flash unofficial recursion remix rom
3.Wipe-> apvance wipe system dalvik data cache
4.flash offical cm /los
5.flash gapps
ameyau said:
This worked for me,give a try
1.Wipe-> apvance wipe system dalvik data cache
2.flash unofficial recursion remix rom
3.Wipe-> apvance wipe system dalvik data cache
4.flash offical cm /los
5.flash gapps
Click to expand...
Click to collapse
Is this the only way?? There's no other way to do it without wiping data?
tanmeshn said:
Is this the only way?? There's no other way to do it without wiping data?
Click to expand...
Click to collapse
I installed latest TWRP recovery 3.1.0, but it didn't help, I am getting that same error 7.. never got this error before only for official lineage os I am getting this error....
tanmeshn said:
Is this the only way?? There's no other way to do it without wiping data?
Click to expand...
Click to collapse
I shall recommend u to create a back up in twrp..
After that follow above steps
And after 1st boot..restore only data part...
If that dont work u have complete backup u can restore any time
tanmeshn said:
I installed latest TWRP recovery 3.1.0, but it didn't help, I am getting that same error 7.. never got this error before only for official lineage os I am getting this error....
Click to expand...
Click to collapse
Did u installed zui?
ameyau said:
Did u installed zui?
Click to expand...
Click to collapse
Ya.. I had installed ZUI 2.5.306... It's because of it?
tanmeshn said:
Ya.. I had installed ZUI 2.5.306... It's because of it?
Click to expand...
Click to collapse
Yep there is a mismatch... Are u using mokee rom??
From stock cos12.1 I came to cm13 ... Then I flashed many roms like RR, nuclear ROM, mokee, unofficial LOS even ZUI.
Before flashing official LOS I had official cm13 nightly.. but before flashing Los I wanted to try ZUI nougat so I took backup of Cm13 ROM through TWRP then clean flashed ZUI 2.5.306 based on nougat. I didn't find this ROM interesting so I restored my previous ROM that is CM13...
Then after few days I did clean install of this official Lineage OS nightly and started getting this error 7 while installing...
ameyau said:
Yep there is a mismatch... Are u using mokee rom??
Click to expand...
Click to collapse
Just check my reply no.14
tanmeshn said:
From stock cos12.1 I came to cm13 ... Then I flashed many roms like RR, nuclear ROM, mokee, unofficial LOS even ZUI.
Before flashing official LOS I had official cm13 nightly.. but before flashing Los I wanted to try ZUI nougat so I took backup of Cm13 ROM through TWRP then clean flashed ZUI 2.5.306 based on nougat. I didn't find this ROM interesting so I restored my previous ROM that is CM13...
Then after few days I did clean install of this official Lineage OS nightly and started getting this error 7 while installing...
Click to expand...
Click to collapse
Internal data will be safe
Titanium backup can help to backup and restore... But unfortunately u have to clean install.. Unofficial rr rom (nougat)1st and then official Los.
ameyau said:
Titanium backup can help to backup and restore... But unfortunately u have to clean install.. Unofficial rom 1st and then official Los
Click to expand...
Click to collapse
I have just found some firmware for nougat, just check it out if it can help solve me my problem..https://www.androidfilehost.com/?w=f...e22a8afb52d809
Just tell me if it's firmware with latest bootloader
Check this link.. https://www.androidfilehost.com/?fid=745425885120705241
tanmeshn said:
Check this link.. https://www.androidfilehost.com/?fid=745425885120705241
Click to expand...
Click to collapse
https://www.androidfilehost.com/?fid=385035244224405398 try this one..
I am not a developer so i cant suggest u on this link u posted...
I can suggest u another method.. It will work..
Backup cm13 with data in twrp..
Clean install unofficial(rr/los) rom nougat one..
Restore the back up
Now u can flash official los..
Hope this will help u
ameyau said:
https://www.androidfilehost.com/?fid=385035244224405398 try this one..
I am not a developer so i cant suggest u on this link u posted...
I can suggest u another method.. It will work..
Backup cm13 with data in twrp..
Clean install unofficial(rr/los) rom nougat one..
Restore the back up
Now u can flash official los..
Hope this will help u
Click to expand...
Click to collapse
I'll try this once.. I hope it works out.. thanks

How do I revert to stock miui without pc

I am running resurrection remix mm 5.7.4 with twrp 3.0.2 by kumajaya on my redmi 2 prime with lollipop bootloader( 2014818 Indian 2 gb ram variant )
I lost my miui twrp backups and now my pc is not working too.
I want to install miui on my phone back preferably lollipop miui 7.
Is there any way to do so without a pc recovery itself?
Download the recovery zip file of MIUI by googling it. (Version you required)
If you want latest version.
Then Google 'MIUI downloads' and search your device and download the ROM.
Then head over to TWRP and flash the zip.
It will give error for the first time.
Flash it again.
It will get flashed.
Then hit reboot, and reboot your device.
Voila! Now you have MIUI on your device.
I have successfully installed miui lollipop base on my redmi 2 prime without any errors.
Also I have confirmed from external app and settings the information of the device that it shows the correct device info.( provided my custom showed correct device info ).
I tried installing the miui ROM as sethidheeraj said. I started wiping system artcache cache and data but was not able to install miui after repeated tries
Then I restored my custom ROM backup
Then by following these steps I got miui back :
1 install your custom ROM( I had rr 5.7.4 mm) or restore your custom ROM backup
2 boot to recovery and flash the miui ROM without wiping system partition
3 it will take real good amount of time and the logs displayed on twrp also aren't very long, don't worry it is still being installed
4 just for your surity wipe data and caches and again flash the miui ROM
5 reboot to system and take a drink for a while coz it is the first boot
Tadaaaa
You have your stock miui back
Also no damages to your recovery or anything.
Download twrp 3.0.2.0 of kumajaya twrp because its device model no will be in wt88047etc...not hm2014818...use flashify app tp flash recovery. Img on using ur rooted custom rr remix...boot to recovery... Wipe cache, dalvil, system,data....then make sure Miui lp rom is in internal memory.... Then install it...it will give some error on start....then install again...it will take around 20min for install plus full boot up.
Riyanx55tu said:
Download twrp 3.0.2.0 of kumajaya twrp because its device model no will be in wt88047etc...not hm2014818...use flashify app tp flash recovery. Img on using ur rooted custom rr remix...boot to recovery... Wipe cache, dalvil, system,data....then make sure Miui lp rom is in internal memory.... .
Click to expand...
Click to collapse
I already installed MIUI and I have posted it's method above your post in my post.
Jamie446677 said:
I already installed MIUI and I have posted it's method above your post in my post.
Click to expand...
Click to collapse
Great ?
Jamie446677 said:
I have successfully installed miui lollipop base on my redmi 2 prime without any errors.
Also I have confirmed from external app and settings the information of the device that it shows the correct device info.( provided my custom showed correct device info ).
I tried installing the miui ROM as sethidheeraj said. I started wiping system artcache cache and data but was not able to install miui after repeated tries
Then I restored my custom ROM backup
Then by following these steps I got miui back :
1 install your custom ROM( I had rr 5.7.4 mm) or restore your custom ROM backup
2 boot to recovery and flash the miui ROM without wiping system partition
3 it will take real good amount of time and the logs displayed on twrp also aren't very long, don't worry it is still being installed
4 just for your surity wipe data and caches and again flash the miui ROM
5 reboot to system and take a drink for a while coz it is the first boot
Tadaaaa
You have your stock miui back
Also no damages to your recovery or anything.
Click to expand...
Click to collapse
Can you give me a video of that i didn't understand that without wiping system partition it was giving the error 7
Sent from my Xiaomi Redmi 2 using XDA Labs
Bhavesh Tak said:
Can you give me a video of that i didn't understand that without wiping system partition it was giving the error 7
Click to expand...
Click to collapse
I don't have a video tho but I meant that you should only wipe data and caches but leave system as it is. ( My phone had rr marshmallow installed before.) After rr I haven't tried any custom roms so I don't know whether it will work on others. So just flash miui 7.5 like you would for an OTA but do wipe your data and caches

Categories

Resources