Learn More About Linux with Linux Man Pages

Linux is quite a powerful and very configurable operating system. Thanks to some user-friendly … more

Detect, Avoid IMSI-Catcher Attacks with Android IMSI-Catcher Detector

Privacy is always an important topic, as well as a delicate one to … more

Materialized LeanDroid Fights Your Poor Battery Life

Battery life has always been one of the biggest problems facing most Android devices. … more

Bump! Workaround for the LG G3 Locked Bootloader – XDA TV

The LG G3 is a power house device. It’s been a favorite of many people. … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[SOLVED!] Unable to flash MIUI - Status 7

OP Omga4000

23rd June 2014, 12:18 AM   |  #1  
Omga4000's Avatar
OP Member
Thanks Meter: 15
 
81 posts
Join Date:Joined: Sep 2011
More
PROBLEM FOUND AND FIXED! Answer in Post #3
http://forum.xda-developers.com/show...48&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:
Quote:

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 by Omga4000; 30th June 2014 at 02:31 AM.
23rd June 2014, 12:45 AM   |  #2  
11calcal's Avatar
Senior Member
Flag Liverpool
Thanks Meter: 190
 
989 posts
Join Date:Joined: Mar 2010
More
Quote:
Originally Posted by Omga4000

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 ?
Attached Files
File Type: zip philz_touch_6.24.6-jflte.zip - [Click for QR Code] (8.81 MB, 170 views)
30th June 2014, 02:29 AM   |  #3  
Omga4000's Avatar
OP Member
Thanks Meter: 15
 
81 posts
Join Date:Joined: Sep 2011
More
Thumbs up
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:
Quote:

set_perm(0, 0, 0555, "/data/local/tmp/relink");

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

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
30th June 2014, 04:18 AM   |  #4  
Rikxzdjz's Avatar
Recognized Themer
Flag Medan
Thanks Meter: 239
 
1,041 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Hi Anyone having issue with offline charging in MIUI ROM ?

Sent from my GT-I9500 using XDA Premium 4 mobile app
10th November 2014, 09:46 AM   |  #5  
Member
Thanks Meter: 1
 
36 posts
Join Date:Joined: May 2010
Quote:
Originally Posted by Omga4000

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
10th November 2014, 09:33 PM   |  #6  
Omga4000's Avatar
OP Member
Thanks Meter: 15
 
81 posts
Join Date:Joined: Sep 2011
More
Quote:
Originally Posted by mckalyster

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
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes