How to Fix LineageOS Status 7 Error During Installation [TWRP / CWM]

In this article, we will look into how to fix the common CyanogenMod (CM) / LineageOS Status 7 error that occurs during installation on TWRP and CWM recovery. LineageOS is a relatively new name that has popped up in the custom ROM market for Android. Surprisingly so, it is not new at all. Rather, the developers of CyanogenMod have renamed the ROM to LineageOS. The new name is to highlight that LineageOS is now being maintained by a device’s respective developer rather than Cyanogen Inc. LineageOS started out from where CyanogenMod stopped with their progress. The latest LineageOS 14.1 is based on Android 7.1.1 Nougat update. LOS brings the same set of features as CM14. Hence, the usual problems and errors are also part of the new LineageOS and custom ROMs based on it.

There is a very common error many people run into when flashing LineageOS or LOS based custom ROM on their devices and that is: Status 7 Error, Error: 7 or zip signature verification failed error. Fortunately so, you can easily get around it and fix the error if you follow the instructions below. We have compiled the procedures you can utilize to fix LineageOS Status 7 Error in the guide below.

Fix Status 7 / Error: 7 Problem

As installing LineageOS, or any custom ROM for that matter, requires TWRP or CWM custom recovery installed, it is plausible that you are missing few steps from the installation procedure. Further, it can also happen that you might have the wrong file downloaded by accident and that certain file isn’t meant for your device model. We will be addressing all of these issues one by one right below in the article.

Before we jump into the procedures, lets take a brief look at what Status 7 Error actually is.

Status 7 Error – What is it? Why Does it Happen?

When you are trying to install a LineageOS custom ROM zip on your device, an error notification passes up as “Status 7 Error” or “Error: 7”. This error then stops any further installation of the ROM and the process fails. If Status 7 Error occurs, there is no harm to the system and you can just boot back to what your were running before installing LineageOS. No data loss either!

How to Fix LineageOS Status 7 Error During Installation [TWRP / CWM]

The reason why Status 7 Error might pop up varies in each situation. However, these few methods / solutions will help you fix the error and proceed with successful installation of LineageOS and LineageOS-based custom ROMs.

Method 1 – Format Cache, Dalvik Cache and Data Before Installation

The best possible solution to this problem is to format the cache partition of your phone, format Dalvik cache and also format the data partition before installing / flashing the custom ROM. How to do that? Follow the steps below:

Step 1 – Reboot your device into the custom recovery (CWM / TWRP).

Step 2 –  Once booted into the recovery, click on Advanced Wipe and then select Cache, Dalvik Cache and Data.

Step 3 – Wipe these partitions, if you are using TWRP, it will ask you to type in “Yes” to format.

Step 4 – Once you are done formatting, try to installing LineageOS again. The flashing should go fine.

Method 2 – Remove the Assert Checks

This method should be applied if you are completely sure that the file you have downloaded is the correct file for your device. Once you have made sure that it is, you can remove the Assert checks which might be causing Status 7 Error by modifying the ROM package.

Follow the following steps to do it:

Step 1 – Open the ROM package on your computer with a program like WinRAR, don’t extract it, just view it.

Step 2 – You should access the following directory META-INF/com/ google/android and view the updater-script file by double clicking on it.

Step 3 – Right click the updater-script and open it using a text editor (Windows Notepad can be used).

Step 4 – Find “assert” in the script. You will see these lines are present in the script along with the codename of your device.

Step 5 – If the codename written here is not exactly as the codename of your device, then replace the codename with the correct codename.

Step 6 – You should find “assert & getprop” in the script as well and delete them all.

Step 7 – Save the file with WinRAR and make sure the changes have been made by closing the program and then reviewing the updater-script again.

This should solve the Status 7 / Error: 7 error on your Android phone during the custom ROM installation.

Method 3 – Update Bootloader to Latest Version on your Android Device

It happens that you might be trying to flash LineageOS with a bootloader that is meant to support older versions of Android. For example, Status 7 Error may occur if you happen to install a Nougat based ROM on a phone that runs on Jelly Bean out of the box. And you have never updated your phone using the official software update method.

In this case, the best option is to first upgrade your device’s firmware to the latest official one and then try flashing LineageOS. As each Android revision requires a certain standard, if you are running a bootloader that’s not meant for it, Status 7 Error would likely pop up.

Method 4 – Avoid Dirty Flashing

Users who have custom ROMs running on their Android devices usually flash LineageOS on top of it. This procedure is not recommended as every ROM is different and may cause issues during or after installation with your data. Dirty flashing on an existing ROM is only possible if the previous ROM on your phone is based on the official CyanogenMod or LineageOS code.

Always backup your data before planning to flash a new custom ROM. Next, always perform a full data wipe and do a factory reset of your phone before installing LineageOS. It may look like a hassle to set up a new Android device again and again, but then there are less chances of such errors like this Status 7 Error.

Method 5 – Latest Recovery Should be Installed

With each iteration of Android, comes a newer iteration of recovery. This means, to support newer Android versions, you would be required to update your custom recovery. You can’t utilize an older Marshmallow custom recovery to flash Android Nougat ROMs. You can proceed to TWRP’s website or check our TWRP section to find the latest recovery for your Android phone / tablet or search our website for full installation tutorials.

That’s it! Hopefully, one of these methods apply to your situation and you solve the Status 7 Error. If there is anything we might have missed out, please let us know in the commend below.

As mentioned before, Status 7 Error isn’t anything critical. Once you do get it, you can reboot your phone to its original state and utilize the methods above to try to solve it.

Default image
Taimur Akmal
Devoted writer, enjoys developing code. Appreciates excellent food, exceptional coffee and great company. He is also into sublime design and nicely built cars.
Articles: 1155

Leave a Reply