[SOLVED!] Unable to flash MIUI - Status 7

Search This thread

Omga4000

Senior Member
Sep 4, 2011
97
29
PROBLEM FOUND AND FIXED! Answer in Post #3
http://xdaforums.com/showpost.php?p=53784248&postcount=3

Hey guys :)

I've been trying to install MIUI for hours, using both CWM or TWRP, and I'm always receiving the same error message:
Writing recovery
set-perm: some changes failed
E:Error in /sdcard/miui_i9500_4.6.20_27061504e7_4.2.zip
(Status 7)
Installation aborted

I've flashed CM without a problem, and an original stock ROM as well.
Why is MIUI giving me a hard time?

**I already followed this guide: http://en.miui.com/thread-13226-1-1.html**

Thank you!
 
Last edited:

11calcal

Senior Member
Mar 28, 2010
1,072
230
Liverpool
Hey guys :)

I've been trying to install MIUI for hours, using both CWM or TWRP, and I'm always receiving the same error message:


I've flashed CM without a problem, and an original stock ROM as well.
Why is MIUI giving me a hard time?

**I already followed this guide: http://en.miui.com/thread-13226-1-1.html**

Thank you!

Use Philz recovery (just flash zip attch in rec) it's something to do with the older binary code-that's why it's status 7 ? :cowboy:
 

Attachments

  • philz_touch_6.24.6-jflte.zip
    8.8 MB · Views: 2,187

Omga4000

Senior Member
Sep 4, 2011
97
29
Well, after deciding to fix this problem once and for all, I added a "ui_print" after
every (well not every) line, to see exactly where is the installation failing.
The discovery? It fails at:
set_perm(0, 0, 0555, "/data/local/tmp/relink");

The solution?
Change all "/data/local/tmp/relink" into "/tmp/relink" like so:
package_extract_file("META-INF/com/miui/relink", "/tmp/relink");
set_perm(0, 0, 0555, "/tmp/relink");
run_program("/tmp/relink");
delete("/tmp/relink");

Problem solved - clean installation with no errors :)
 

Rikxzdjz

Senior Member
Apr 14, 2012
1,045
242
Medan
Hi Anyone having issue with offline charging in MIUI ROM ?

Sent from my GT-I9500 using XDA Premium 4 mobile app
 

mckalyster

Senior Member
May 15, 2010
77
4
Well, after deciding to fix this problem once and for all, I added a "ui_print" after
every (well not every) line, to see exactly where is the installation failing.
The discovery? It fails at:


The solution?
Change all "/data/local/tmp/relink" into "/tmp/relink" like so:


Problem solved - clean installation with no errors :)

Hi! sorry
Please how can I clearly follow your guide I'm Noob and dont really know about this. So can you please guide me with a step by step.
Thanks for understanding
 

Omga4000

Senior Member
Sep 4, 2011
97
29
Hi! sorry
Please how can I clearly follow your guide I'm Noob and dont really know about this. So can you please guide me with a step by step.
Thanks for understanding

1) Extract "updater-script" from the ROM file (using winrar for example)
It's located in META_INF > COM > GOOGLE > ANDROID
2) Change the parts I wrote in the previous post
3) paste the "updater-script" file inside the rom

Good luck :)
 
  • Like
Reactions: bapakerwe

kobbycool

New member
Jun 2, 2013
2
0
i9500 MIUI Flashing Error

After downloading the MIUI ROM, open with winrar and locate the updater-script
\META-INF\com\google\android\updater-script
and remove the first line of code
getprop("ro.product.device") == "ja3g" || getprop("ro.product.device") == "ja3g" || abort("This package is for "ja3g" devices; this is a "" + getprop("ro.product.device") + "".");

save and update from the winrar app.
Try flashing again but disable the zip verification......Done

Big ups to Edwin270
 

hatimpani

New member
Oct 14, 2016
1
0
i have installed cwm recovery in my mi4 and forgot which rom i have installd just to update the android version from kitkat to marshmallow(6.0)after installed it converted into completely android phone there is no sign of miui rom so plz tell me how to get it back. even i have tried to installed miui 8 rom bt it showing 'installation aborted' i have tried many times in a differnt way i have tried everything but still i am not able to install zip file that is miui 8 rom. please help anyone wht to do now?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi! sorry
    Please how can I clearly follow your guide I'm Noob and dont really know about this. So can you please guide me with a step by step.
    Thanks for understanding

    1) Extract "updater-script" from the ROM file (using winrar for example)
    It's located in META_INF > COM > GOOGLE > ANDROID
    2) Change the parts I wrote in the previous post
    3) paste the "updater-script" file inside the rom

    Good luck :)