Being an Android operating system is a tough job. But our little green guy knows his job well and adjusts himself to suit our needs. We can groom him and change the way he works too. You just need to know what you want and how to get it.
Right from the theme, the UI, the kernel, the recovery, anything and everything of your Android smartphone can be tweaked to suit your needs. The OS is truly like the desert it is named after. This work is fairly easy, but sometimes flashing a Custom ROM can be a headache, it might lead to unexpected and unwanted errors and our little green guy may become sick or go into a coma. For those of you who are having problems with this process, here’s our little list of errors you could face while flashing ROMs and a tutorial on how to fix these common errors.
From Earlier: 7 Reasons You Should Switch to an MIUI ROM
#1 – Your handset is stuck in a Bootloop

Well, this is the most common issue when talking about Android devices. Also, the problem can be easily fixed as you only have to wipe the system of your device. Usually, the boot loop problem occurs when you forget to wipe the data from the phone after flashing a ROM as there are residuals in the ROM from the developers which don’t allow the phone to boot up completely.

Now, in this method we assumed that you have installed a custom recovery image on your handset: like CWM recovery, AmonRA, TWRP recovery and so on. Use the recovery for wiping the system of your handset thus resolving the boot loop issue. Be aware though as each device can be entered into the recovery mode differently; usually you need to press a combination of buttons (for example on Samsung you need to press Volume Up and Home buttons) while Powering up your tablet/smartphone. Once the recovery mode entered you need to follow the following instructions:
- Use the Volume keys in order to navigate through the recovery menu.
- Select “Advanced” and choose “Wipe Dalvik Cache”.
- Return to main menu.
- Then select “Wipe Data Factory Reset”.
- Return and this time choose “Wipe Cache Partition”.
- Return and select “Reboot System Now”.
- Your handset should start in the Android OS now.
So, there you have it; now the boot loop problem should be resolved and you should be able to safely use your custom ROM firmware.
#2 – Your handset doesn’t allow the flashing of a ROM showing ‘Status 7 error’

When installing certain custom ROMs on rooted Android smartphones or tablets, you will encounter ‘Status 7’ error issues once in a while with ClockWorkMod (CWM) Recovery.
Status 7 error is caused when 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 which prevents you from accidentally installing another phone model ROM on your phone.
Now, this safety mechanism is great but there are times where even if you have the correct ROM for your phone, you will get the 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 isn’t broken, don’t fix it) or you still get Status 7 error after changing the recovery, you can simply edit the updater script yourself to get rid of the asserts.
All you need is a computer and a compressing program! You might even be able to do it on your Android device with AndroZip and a text editor.
- Copy the ROM zip file to your computer and extract it using your decompressing software.

- Once unzipped, browse to the ‘META-INF/com/google/android’ directory. Here, you will find two files called ‘update-binary’ and ‘updater-script’

- Rename ‘updater-script’ to ‘updater-script.txt’ and open with your text file editor (You need to enable file extensions in the control panel to be able to do this)
- Get rid of the line starting with ‘assert’ to the 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. Remove everything until the command ‘mount’ is visible.

- Save the file.
- Rename ‘updater-script.txt’ back to ‘updater-script’
- Re-compress all the files.
- Use this .zip file to flash the ROM.
#3 – Your device is booting straight to bootloader mode
In this case, the only way in which you can resolve the problem is the stock Android OS. Yes, unfortunately you will have to flash the official Android firmware on your device. In this way you will be able to restore the stock restrictions and default settings and your smartphone/tablet will be restored to its initial state.
Of course, if your handset is rooted, after flashing the stock ROM, the root access will be revoked and the bootloader relocked. The best though is that you will be able to restore the lost warranty and the default Android system with stock features, apps and capabilities.
Now let’s see how you can update or downgrade different devices to stock/official Android firmware:
For Samsung:

- You need to use a Windows running computer, where you will have to download Odin (Google it, it’s quite easy to find) and the update file.
- Unzip both files and also install and run Odin.
- On the PC, the smartphone’s drivers must be installed; you can use Samsung Kies for completing the same.
- Then, reboot your handset in download mode (usually by pressing on Volume Down, Power and Home buttons simultaneously) and connect your device to the computer.
- In Odin, now select ‘PDA’ and pick the update file.
- Press ‘Start’ and wait while the software is being flashed.
For HTC:
The HTC stock ROMs are dubbed as RUU and the same can be flashed straight from bootloader mode.
- So, get the RUU specific file for your device and place the same on the SD card.
- Rename the file into something like PG05IMG.zip.
- Then as soon as you reboot your device, the firmware should be flashed automatically, from HBOOT, HTC’s bootloader.
For Motorola:

- On your computer, you will have to use RSD lite, which is a program similar to Odin, but in this case, it is specifically programmed to flash Motorola devices. So, download and install RSD Lite.
- Also install the phone’s drivers on your computer.
- Download the update file on your computer.
- Turn off your device and connect it with the computer.
- Reboot your handset into bootloader mode.
- Launch the RSD Lite program.
- Pick the .sbf file from the computer and start the flashing process.
- In the end the device will reboot into Android; don’t unplug the USB cable until you are sure that the Android system is booted; if not re-do the update operation until it works.
For Sony:

- Download and install Flashtool software on your Windows PC.
- Download the required official update file onto your computer.
- Power off your device.
- Launch Flashtool and click on the lightning icon, while choosing the required update file from the browsing window.
- Turn off your device and press the volume down button while connecting your device to your computer using a USB cable.
- The update will automatically start so wait for the software to be flashed.
#4 – Your handset boots straight to recovery mode
In case, after flashing a custom ROM, your handset enters right to the recovery mode, then you can try to wipe the system and see the results. But, most likely the wiping solution will not work here. You see, if your device is stock in recovery mode, then it means that you have flashed an inadequate ROM, or there is something wrong with the ROM you choose.
Therefore, you will have to re-install the firmware on your phone. You could follow the same steps as with the previous issue or you could just flash another ROM from you SD card.

These were few of the most common problems faced by newbie developers while flashing ROMs. We hope this was helpful. If you have any other problems or suggestions, feel free to comment your queries, we will be happy to help.
15 Comments
hey ,i hope you will reply to my concern .my twrp is restarting again an again while flashing rom. i cant even recover the previous os as the same problem occurs with every flash …please help
Check the issue #4. It shows the fix. Cheers!
Thank you #2 solved my problem
I also have an error status 7 but I cant find the assert at updater script! Asap pls! I want to install gapps for marshmallow version of my samsung tab 2 p3100!
I use twrp and have rooted asus ze550kl ,the problem is that ,custom roms gets installed without any error but gets stuck at bootlogo. . .I wiped dalvik,cache,system etc but can’t make the custom rom to go beyond bootlogo.
Reflashed stock and it worked but please help me in solving this problem.
Ever sort this out?
FWIW, removing the asserts is *extremely* dangerous. They’re there for a very good reason: to prevent the user from screwing up their phone by flashing a zip for the wrong device. Before removing them, it’s worth triple-checking to make sure you actually have the correct zip file.
hello guys i have a problem with galaxy ace 3 i have flashed it and after flashing every thing works well for along time like one week or sometimes longer but after that while using it suddenly it restarts itself and doesnt work any more and needs again for flashing if u know the solution please help mee ????
i have lenovo a6000 and when i boot it up.. it just hung on splash screen or say First boot Screen … the problem is it does not allows me to Install packages (*.zip) files via recovery mode… and i rooted it… wiped the cache partition … & Factory reset … and tried dozen of ROMs… but all in vain … HELp;
solved … download the lenovo flashing tool… + rom … flash it …. and the loop is gone…
Desperately needing Insight please!….
ROOTED LG G3 d850… Soft bricked During an OTA attempted upgrade from 5.0 to 5.1.
My JTAG repair servicer, has informed me my screen now has a small red vertical line to the right side of screen. Display is virtually brand new and was pristine when shipped for repair.
– what could possibly have happened and is there any fix?
Will my iPhone require unrooting to perform a fail free reset, or and upgrade to 5.1?
Can I upgrade with a 5.1 APK instead of OTA, which seemed to be the culprit here?
TWRP is installed as before.
Please provide some insight as to the proper usage of this feature, so that I might avoid these problems in the future and also to actually use the software to recover my phone should need be.
Many thanks from Fairly smart guy, now feeling like a retard.
Any help is greatly appreciated! My primary concern at this point is to return the screen to OEM condition.
hello, I am Rakhi Rath.
When I am trying to install custom rom in my android , it shows an error as
E:Find_File: Error opening ‘/sys/class/backlight’. I have another problem in this device, there is no OS installed.
Is there any solution for this, please help me by giving proper solution. I will be waiting for reply.
My Mail Id is – [email protected]
fuck… sorry for the language but, i fucking (again sorry xd) love you even if i’m not gay i’ll make an exception xD. i searched 2 whole days (yes 48h+) to get my zuk working.
damn you write like an absolute moron!
Hi there, I brought this Samsung Galaxy g930fd which says it has 32Gbstorage but it seems like fake because I can’t install many apps or stuff to it, it says storage full with just 3 or apps installed. OK I tried to flush the rom. It uses marshmallows, and I downloaded android 7 or cynamod 14 and it’s gapps for this model sm g930fd and I also downloaded recovery img.
I rooted the device with king root, I installed superuser app, I installed twrp app,when I try to locate zip files using twrp app after lunch I find nothing in the folder I placed the rom n gapps, so that means I can’t select the file to flush.
I turn off the device and turn onto recovery, below is a picture of how it opens, on white highlight it’s written reboot.
The rest is clear I think, as you can see, there is no install zip from SD card, once again I’m stuck because I can’t get my new rom installed.
Help me flush this device please https://uploads.disquscdn.com/images/f49e2a78905fef925e786e6bb80def4e69a4166971d2fad155394bf24fb9788f.jpg
Incase you don’t see clearly the picture
It’s written
Android system recovery [3e]
G930fxxu1apb6 in capps
Volume up/down to move highlight; enter button to select.
Reboot system now
Apply update from ABD
Apply update from sdcard
Wipe data /factory reset
Wipe cache partition
Apply update from cache
Yah thats that