If you have your Android rooted, you probably have TWRP recovery flashed in your device as it is the most popular custom recovery for Android. And you have probably rooted your Android to install custom firmware. While attempting to flash a new firmware on your device, you may have encountered Status Error 7 on TWRP recovery. Of course, you have, otherwise, why would you be reading this article. This error occurs when the script of the firmware you are trying to install does not have your device’s model number or the model number is present but the script is for another model. There is a way you can fix this issue. Here’s how to fix Status Error 7 in TWRP recovery.
Fix Status Error 7 in TWRP Recovery
Asserts is the name of the file that contains the firmware’s updater-script. It is there to ensure safety and prevent bricking. This script checks the device’s model and version and compares it to the firmware’s version. If they match, the installation will continue. If not, it will abort the installation to prevent brick and send out twrp Error 7. This way you can try to correct the error and prevent your device from becoming useless. To fix this error, you have to check if the firmware is right for your device. if you are sure the firmware is right for your device, you can modify the updater-script and install it successfully. Follow the steps below to fix status error 7 in TWRP recovery.
- Step 1: Unzip the firmware file on your computer.
- Step 2: Go to META-INF/com/google/android line.
- Step 3: Find a file called updater-script.
- Step 4: Rename it to updater-script.txt. Make sure you have enabled the options to show file extensions from the folder options.
- Step 5: Remove the line that starts with assert.
- Step 6: Save the file.
- Step 7: Rename the file back to updater-script.
- Step 8: Zip the file.
- Step 9: Copy the modified firmware file to your phone.
- Step 10: Boot to TWRP and try to install the firmware. You should not see Error 7 now.
How to Install TWRP on Samsung Galaxy A51
Install TWRP on OnePlus 7 Pro
How to install TWRP recovery on Google Pixel?
- TAGSAndroidandroid rootTWRP