The ROM’s updater script file called "Asserts" is a safety mechanism. It checks the device’s model and version and the custom Rom version by the system variable ro.build.fingerprint getting from the Recovery. If the codes are matched, it permits installation. Otherwise it prohibits installation and you see error 7. The bright part of it is that your device hasn't turned into a brick. Unlucky cases such as your data are met the requirements and you still get status 7 error happen. Fortunately they are very rare. They related to malfunction of a developer’s script.
To fix status 7 issue one has to check the correctness of the selected script. Whether it is correct for your Android model or not. If the error pops up again and again, you will face to modify the updater-script file. It actually checks if the model of your device is compatible with the ROM you are installing.
How to fix Status Error 7 for TWRP?
- Copy the zip ROM file to your PC and unzip it using your favorite archiver (for example, 7-zip);
- After unpacking find META-INF folder and go the META-INF/com/google/android line. In the last directory you will find two files called "update-binary" and "updater-script". We are interested in the latter one;
- Rename "updater-script" to "updater-script.txt" and open it in any text editor (for instance, Notepad++);
- Now remove the line starting with "assert" to the next semi-colon. Usually it is the first or a few first lines in the beginning of the text file;
- Save the modified file;
- Rename "updater-script.txt" back to "updater-script";
- Update all files you have unpacked;
- Copy the modified zip-file on your phone;
- Reboot your Android device to recovery mode and try to update it again. Status Error 7 should be gone.
You are welcome to share you experience with us. Write in Comments.