FORUMS
Remove All Ads from XDA

 View Poll Results: How U like my 1st post?

Awesome
 
175 Vote(s)
53.35%
Not bad
 
48 Vote(s)
14.63%
Good
 
66 Vote(s)
20.12%
Awful
 
39 Vote(s)
11.89%

[FIX][SOLVED]Status 7 Error with CWM or TWRP Recovery on Rooted Android!

n/a posts
Thanks Meter: 0
 
By AndroTix, Guest on 11th November 2013, 08:43 PM
Post Reply Email Thread
2nd December 2017, 12:21 AM |#111  
Senior Member
Thanks Meter: 19
 
More
Hi, I did it, but now I get the error ,,Invalid zip file format!'', what to do?

---------- Post added at 11:21 PM ---------- Previous post was at 10:54 PM ----------

I FOUND A SOLUTION FINALLY! For the ,,invalid zip''-problem!

I've used 7zip.

DO NOT unzip your ROM!!! Just fix the updater-script IN the zip. Dont unzip and zip it like in the tutorial
Just open it in 7zip and:
Instruction:
Instruction

@androtix Please include this solution in to the thread, so that people can save their time!!
The Following 2 Users Say Thank You to PlayersHeaders For This Useful Post: [ View ] Gift PlayersHeaders Ad-Free
26th December 2017, 05:19 PM |#112  
Junior Member
Thanks Meter: 0
 
More
That method didn't work for me even though I did everything your instructions said, I did however wipe the data/factory reset the device and all seemed to be working fine on both devices (Moto E 2nd Gen - Surnia, Moto G 2nd Gen - Titan)
31st December 2017, 01:45 PM |#113  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by drtweak

Open up the txt file that you made. Then go to Save As and then for File Type select "All Files" and then for the File Name remove the .TXT so its just updater-script and not updater-script.txt then repack

it is saying invalid zip file format when i tried to install it!!
8th January 2018, 12:39 PM |#114  
xaedoplay.modder.xda's Avatar
Member
Flag Bogor
Thanks Meter: 24
 
More
Quote:
Originally Posted by PlayersHeaders

Hi, I did it, but now I get the error ,,Invalid zip file format!'', what to do?

---------- Post added at 11:21 PM ---------- Previous post was at 10:54 PM ----------

I FOUND A SOLUTION FINALLY! For the ,,invalid zip''-problem!

I've used 7zip.

DO NOT unzip your ROM!!! Just fix the updater-script IN the zip. Dont unzip and zip it like in the tutorial
Just open it in 7zip and:
Instruction:


@androtix Please include this solution in to the thread, so that people can save their time!!

extra, devs don't zip using regular zipping tool. the kitchen do this automatically. so their zips are different from what we usually make.

extra: never compress a installer zip, if you are re-zipping it.
2nd February 2018, 08:21 PM |#115  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by AndroTix

When installing certain custom ROMs on rooted Android smartphones or tablets, you will encounter “Status 7″ error issues once in awhile with ClockworkMod (CWM) Recovery.

Status 7 error is caused while the ROM’s updater script file checks to see if the phone model of your phone is compatible with the ROM you are installing, called “asserts”.

“Asserts” is a safety mechanism so you don’t accidentally install another phone model ROM on your phone. E.g. You tried to install Galaxy S2 ROM on a Galaxy S3 and ending up hard-bricking your phone but you got Status 7 error which saved you.

Now, this safety mechanism is great but there are times where even if you have the correct ROM for your phone, you will get Status 7 error.

This is due to an error by the developer of the ROM in the updater script, causing havoc, making people install another custom recovery like TWRP recovery for no reason.

You can fix the issue by installing TWRP recovery but if you need to restore your CWM backups later down the line, you will have to re-install CWM recovery, causing a big hassle.

Also, if you update to the latest CWM Recovery using ROM Manager, usually this problem is fixed.

But what if you did update to the latest CWM Recovery and still happens? And yes, it does happen even when you update your CWM recovery.

If you simply don’t want to change your recovery (because if it ain’t broke, don’t fix it) or you still get Status 7 error after changing recovery, you can simply edit the updater script yourself to get rid of the asserts.

All you need is a computer and a zipping program! (You might be able to even do it on your Android device with AndroZip and text editor but I haven’t tried yet.)
MAKE SURE THE ROM YOU ARE INSTALLING IS COMPATIBLE WITH YOUR ANDROID DEVICE AS INSTALLING WRONG ROM CAN BRICK YOUR DEVICE!

Before we begin, e.g. Make sure if you are installing a ROM on AT&T Galaxy S3, the ROM zip file you downloaded is for AT&T Galaxy S3 not for Verizon Galaxy S3.


Step 1. Copy the ROM zip file to your computer and extract it using your favorite unzipping software.





Step 2. Once unzipped, browse to the META-INF/com/google/android directory. You will find two files called “update-binary” and “updater-script”.


Step 3. Rename “updater-script” to “updater-script.txt” and open with your favorite text file editor.


Step 4. Get rid of the line starting with “assert” to next semi-colon. Usually this is the first line or one of the first lines at the top of the text file. Just delete them.


Step 5. Save file.


Step 6. Rename “updater-script.txt” back to “updater-script”.


Step 7. Rezip all the files you’ve unzipped.




Step 8. Copy the new, edited zip file to your phone.


Step 9. Try re-installing ROM, now it should install fine without Status 7 error.

I can't find "assert" :/
What should I do?
The Following User Says Thank You to antonio_faggioni For This Useful Post: [ View ] Gift antonio_faggioni Ad-Free
14th February 2018, 12:59 PM |#116  
junkisz007's Avatar
Member
Thanks Meter: 7
 
More
thank you for this simple trick
you don't have to rename the update-script file,
just install notepad++ and then right click "updater-script" choose edit with notepad++ and follow the step

it's work for me
8th March 2018, 09:21 AM |#118  
Junior Member
Thanks Meter: 0
 
More
i have done this and still get the same message error 7 .. please tell me what to do ..: confused:
15th March 2018, 09:36 PM |#119  
Junior Member
Thanks Meter: 0
 
More
I delete two lines with Asserts, errors gone, but after install OS i have a bootloop. Phone it's Oneplus One system LineageOS and ResurrectionRemix.
16th March 2018, 01:37 AM |#120  
Junior Member
Thanks Meter: 0
 
More
Problem is gone when i install CM 13.1.2 and then install ROM, before this i try install this ROM on CM 11.
28th March 2018, 08:10 AM |#121  
Junior Member
Thanks Meter: 4
 
More
its worked for mee too
Quote:
Originally Posted by PlayersHeaders

Hi, I did it, but now I get the error ,,Invalid zip file format!'', what to do?

---------- Post added at 11:21 PM ---------- Previous post was at 10:54 PM ----------

I FOUND A SOLUTION FINALLY! For the ,,invalid zip''-problem!

I've used 7zip.

DO NOT unzip your ROM!!! Just fix the updater-script IN the zip. Dont unzip and zip it like in the tutorial
Just open it in 7zip and:
Instruction:

Instruction


@androtix Please include this solution in to the thread, so that people can save their time!!


thank u so much , it was really good idea ! i used winrar for editing this file
The Following 2 Users Say Thank You to aryalireza For This Useful Post: [ View ] Gift aryalireza Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes