Tag: brick

  • 4 methods to unbrick your Android device

    4 methods to unbrick your Android device

    So your phone is bricked. Your phone won’t boot because you flashed a ROM, installed a mod, modified a system file, or did something else.

    Not to worry! It can probably be fixed. Unbricking an Android device is explained here.

    What ‘Bricking’ or a ‘Bricked Phone’ mean?

    ‘Bricking’ your phone essentially means that your once useful device is now only as useful as a brick. A ‘bricked phone’ is usually unresponsive, won’t power on, and doesn’t function normally.

    How is your phone bricked?

    Depending on how a phone was bricked in the first place, different steps are required to unbrick it. Bricked phones fall into one of two categories:

    • The soft brick. The phone freezes on the Android boot screen, gets stuck in a boot loop, or just goes straight to recovery. So long as something happens when you press the power button, it’s soft bricked. The good news is these are pretty easy to fix.
    • The hard brick. You push the power button, and nothing happens. Hard bricks can be caused by issues like attempting to flash an incompatible ROM or kernel, and there’s normally no software solution for them. Hard bricks are terrible news, but fortunately, they’re quite rare.

    You’re probably soft bricked, and you’ll see something similar to the picture above. Although it’s challenging to develop a one-size-fits-all method to unbrick Android due to the variations in how various devices operate, there are four typical techniques you can try to get things back on track:

    • Wipe the data, then re-flash a custom ROM
    • Disable Xposed mods through recovery
    • Restore a Nandroid backup
    • Flash a factory image

    Before you get started, make sure your phone and computer are set up and ready with the proper tools.

    What you need to unbrick a Android device?

    Most of the equipment you need to repair your phone probably already exist in your possession. Since you already know how to use them because you used them to root your device and flash ROMs, they shouldn’t be a problem. However, make sure before you start.

    Custom recovery is most crucial. This was probably installed when you rooted your phone, however it could occasionally be completely erased or rewritten by the default recovery. We advise using TWRP if you do need to reinstall it. It is a completely functional custom recovery with builds for the majority of common devices but is also far too simple to use.

    Then, you might require ADB and Fastboot. You can obtain both of them from the website for Android Developers, and they are frequently used for rooting and flashing system mods. If you are unfamiliar with Fastboot and ADB, see our introduction to them.

    android sdk tools for unbrick Android

    And finally, some manufacturers use special software to flash factory images. Hopefully, you can avoid doing this, but if you need to, you can use Odin for Samsung, the LG Flash Tool for LG devices, or the ZTE Unbrick Tool if you’ve got a ZTE device. Just make sure that they support your specific model of device.

    Most of these tools will let you fix a bricked Android phone using a PC. However, you can often do the job directly on the phone itself.

    Wipe data and ee-flash a custom ROM

    If you flashed a ROM and Android won’t boot, try this method.

    When you have issues while flashing a fresh custom ROM, it’s one of the most likely scenarios that your phone will soft brick. Your failure to first erase your data is frequently to blame in this situation.

    When you decide to flash a new ROM over top of your old one instead of having to restore your applications and data, this is known as a “dirty flash” and takes place. Generally speaking, if you’re flashing a newer version of your current ROM, you can get away with it, but you must always delete your data anytime you flash a different ROM.

    Fortunately, it’s easy to fix—as long as you’ve backed up your phone properly. If you haven’t, well, you’ve learned an important lesson the hard way. Follow these steps:

    1. Boot into your custom recovery.
    2. Navigate to the Wipe option and choose Advanced Wipe.
    3. Check the box marked Data (you can wipe the system, ART cache, and cache again, too), then hit Confirm.
    4. Re-flash your custom ROM.

    A factory reset is effectively accomplished by wiping your data, although your internal storage or SD card shouldn’t be erased by this process (although, again, you should back it up just to be safe). Your phone will display the Android setup screen after restarting. Your programs ought to start reinstalling themselves immediately after inputting your Google account details.

    You can use your Nandroid backup to recover your data if necessary.

    Disable Xposed Modules in Recovery

    Try this method if: You get boot loops after installing a new Xposed module.

    The Xposed Framework isn’t as common as it once was, but it’s still a simple way to mod your phone, and also one of the most dangerous.

    The best Xposed modules are so easy to install—many of them are available in the Play Store—that they lull you into a false sense of security. It’s unlikely anyone makes a Nandroid backup before installing a new Xposed module, even though they can brick your phone.

    Use ADB Push to Install the Xposed Uninstaller

    The best way to deal with these problems is with the Xposed Uninstaller, if it’s available for your version of Android. This is a small flashable ZIP that you can install through the recovery to remove Xposed from your device.

    If you don’t already have it on your phone, you can put it on an SD card, or you might be able to copy it over using the ADB push method:

    1. Download the Xposed Uninstaller to your desktop.
    2. Connect your phone to your computer via USB and boot into recovery.
    3. Launch the command prompt (Windows) or Terminal (Mac) and use the cd command to change the directory to where you have adb installed.
    4. Type adb push [full path to xposed uninstaller.zip] [full path to destination]. On Mac and Linux, precede the command with ./ (such as ./adb).
    5. When the file finishes copying, flash it through the recovery.

    How to Disable Xposed Modules in Recovery

    If you can’t use ADB push and the Xposed Uninstaller, try either of these solutions.

    This method lets you disable Xposed through recovery:

    1. Boot into recovery, then navigate to Advanced > Terminal command.
    2. Create a file called /data/data/de.robv.android.xposed.installer/conf/disabled
    3. Reboot your phone.

    This method prevents Xposed modules from starting:

    1. Boot into recovery and select File Manager.
    2. Navigate to the folder /data/data/de.robv.android.xposed.installer/conf/ then delete the file modules.list
    3. Reboot your phone.

    None of these fixes will reverse the modifications that the modules have made to your system. You will need to restore your Nandroid backup if these changes bricked your phone.

    Restore a Nandroid Backup

    Try this method if: You need to remove other system mods, replace a tweaked system file, or if the methods above didn’t work.

    The safety net for Android mods and customizations is the Nandroid backup. It’s a full snapshot of your phone, including the operating system as well as your data and applications. You can restore your soft-bricked device to working order as long as you have access to your custom recovery and a Nandroid backup.

    twrp restore bricked device
    1. Boot into recovery and navigate to Restore.
    2. Select your backup from the list, confirm, and wait while it’s restored.
    3. Reboot your phone.

    Nandroid backups are a bit of a pain to make. They take a while and cannot be done in the background. But they’re worth it: they’re the simplest way to unbrick your phone.

    Recover Data From a Nandroid Backup

    A Nandroid backup can also save the day if you had to wipe your data and didn’t back it up in an easily restorable form. It’s possible to extract specific parts of a Nandroid, so you can restore your apps and data without needing to restore the operating system as well.

    Here are the instructions for this:

    1. Boot into Android and install Titanium Backup from the Play Store. While this app hasn’t been updated for a while, it’s still one of the best options for this task.
    2. Tap the menu button and navigate to Special Backup/Restore > Extract from Nandroid Backup.
    3. Select your backup from the list.
    4. Choose whether to restore apps, data, or both, and select them (or hit Select All).
    5. Tap the green tick icon to start the restore process.
    nanddroid backup restore unbrick

    Flash the factory image

    Try this method if: None of the other options work.

    Re-flashing a factory image is your only remaining choice if your attempts to unbrick Android have so far failed. This erases everything on your internal storage and returns the phone to its factory settings. Your phone will be unrooted as well.

    You might be better off trying to flash a stock ROM first because it removes everything. Instead of factory images, OnePlus offers flashable ROMs for recovery. You can find similar files for almost every device at xda-developers.com. For added convenience, you can often flash a stock ROM that has already been root access.

    Flashing a factory image varies from flashing a ROM in that it occurs via a desktop computer connection as opposed to recovery. Other devices make use of customized software while some use the Fastboot utility from the Android SDK. For instance, Samsung makes use of the Odin tool.

    The instructions for flashing a factory image vary for each device due to the various techniques used. Additionally, not all manufacturers make their firmware accessible to the general public, so you must find them from unofficial sources.

    Here’s where to find factory images for some popular Android brands:

    Hard brick?

    Hard bricked phones are notoriously more difficult to fix, but thankfully they’re also much rarer.

    How to unbrick a hard bricked Android device

    Make sure the phone is truly bricked by plugging it in and letting it charge for some time. Try to reset it by depressing the power button for 10 to 15 seconds (or removing the battery if your gadget is older). You might also want to try putting it into your computer; if your PC does not recognize it, you can be very sure that your phone has been severely bricked.

    If it is unquestionably hard bricked, your options may be limited. A USB Jig, a little gadget that fits into the USB port and puts the phone into Download Mode to reload the default software, can resurrect a few phones.

    usb jig

    On eBay, you can find cheap USB Jigs for hard-bricked phones, but only for a very limited selection of outdated gadgets. Even then, there is no assurance that they will be successful.

    Beyond that, you might need to either find a local phone repairman or send your phone in for repair (though rooting it might have void your warranty). However, you’ll probably end up having to buy a new gadget.

    Stay safe

    Hopefully, this guide has helped you to unbrick your Android phone. And hopefully, your experience hasn’t put you off rooting and hacking Android altogether.

    But if you’d rather play it safe in future, you can still have a lot of fun with your phone. Take a look at our guide to the best Android tweaks you can make without rooting for some amazing ideas.

  • Rooting – custom ROMs –  Android language

    Rooting – custom ROMs – Android language

    Every profession or pastime creates its own own particular jargon for explaining complex concepts in an understandable manner, and the Android world is no exception.

    This article is for you if you’ve googled a problem with your Android smartphone or tablet and came across terms like “rooting,” “flashing a custom ROM,” “unlocking the SIM,” or anything similar that you didn’t understand.

    This article is a reference for the novice who wants to learn about all the terminology behind our Android nerdiness because Android experts presumably already know what these phrases represent.

    custom rom

    What Is Rooting?

    Getting access to the system files on your Android device is what it means to root your phone. No Android device comes pre-rooted by default. Therefore, it is probably not rooted if you recently purchased an Android device and did nothing to it. 

    Manufacturers take this action because allowing everyone root access would cause several issues. You can access files on your device that, if deleted or altered improperly, could damage it if you have root access. 

    But many people still decide to root their devices because it enables them to make a lot of pretty fascinating adjustments if they know what they’re doing. It should be noted that rooting an Android device would void the warranty. 

    Youtube video

    How you root your device is different for every single model. For some devices, this can prove to be a difficult process involving circumventing the manufacturer’s safety precautions. For others, it can be as simple as plugging your phone into your computer and pressing a button. You can always check out the XDA forums for instructions for your specific device. 

    You won’t instantly notice any significant changes after your device has been rooted. The excitement is in what you can do with a rooted device. Then, you may utilize root-required apps, flash custom ROMs, modify specific features of your phone, and more—which we’ll go over in more detail later. 

    For instance, when unrooted, you can remove some bloatware, but rooting your device and using Titanium Backup or a root uninstaller are required to completely remove it. 

    What Is Unlocking?

    Unlocking is a confusing term because there are different things you could unlock. 

    Unlocking the Network/SIM

    A device that has been network/SIM locked was typically purchased through a carrier or for a certain carrier at a discounted price. That phone is then locked by the carrier so that you can only use it with them. 

    However, if you pay off the phone and decide to switch carriers, the carrier is obligated by law to provide you with the unlock code (at least in the US and the EU). To obtain the code, simply get in touch with your current carrier. 

    Sometimes, unlocking your device gets more complicated than that, so we have a guide to SIM unlocking. Other times, you buy your phone unsubsidized and unlocked, meaning you can already use it with any carrier. 

    Unlocking the Bootloader

    The bootloader is a piece of software that runs every time you switch on your Android phone, and it is usually locked by the manufacturers. With a locked bootloader, you can’t root your device. Instructions for unlocking your bootloader are found within the instructions for rooting your device.

    What Are Custom ROMs?

    Read-Only Memory is referred to as ROM, however the term is somewhat misleading today because it has nothing to do with it. A ROM is essentially the software that runs on your device, at least in the Android universe. 

    Therefore, a Xiaomi smartphone looks and operates differently than a Samsung smartphone when you pick it up. This is so that Xiaomi and Samsung could each create their own ROMs by altering the original Android code. Even though they both run Android, Xiaomi’s ROM and Samsung’s ROM are distinct from one another. 

    A custom ROM, then, is a ROM that was built not by the manufacturer but by someone else. Sometimes it’s just a lone programmer with some time on their hands and a passion for making ROMs—other times, it’s a bigger group like LineageOS that has a team and intentionally makes a certain type of ROM. 

    Once you’re rooted, you can flash a custom ROM. Flash, in this case, basically means to load or install. Flashing a custom ROM means you are installing a new ROM on your device and completely wiping the old ROM. 

    When looking for custom ROMs for your device, there are some names you’re likely to run into:

    • Pixel Experience: As the name suggests, features a ROM similar to that of Google’s Pixel phones. This ROM is currently one of the most commonly used custom ROMs out there, and for good reasons. 
    • LineageOS: LineageOS, formerly known as CyanogenMod, is one of the most popular custom ROMs you’ll come across. It offers a great feature set and has even featured as the stock ROM for some manufacturers in the past. 
    • AOSP: Android Open Source Project is the version of Android that Google gives to the world, often called stock or stock Android. You might see people say that their ROMs are “AOSP-based” or “based on stock Android,” which just means they took the AOSP code and altered it to their liking. 
    • AOSIP: Android Open Source Illusion Project integrates features from various popular custom ROMs into AOSP ROMs. 

    However, don’t be hesitant to try ROMs with different names from less well-known people. There are other reliable ones besides these. They’re simply the most well-known in general.

    Other Android Terms

    Custom recovery

    If you enjoy playing around with your Android device, the recovery process could take a while. It’s where you can perform the necessary heavy lifting, create backups, and flash ROMs. 

    You need a custom recovery because the stock recovery on your device is unable to perform any of those tasks. For installing custom ROMs, TWRP is the preferred custom recovery. Team Win Recovery Project is referred to as TWRP. 

    Nandroid backup

    There are, of course, ways to backup your Android device without rooting it, but a Nandroid backup is a complete backup. It essentially makes a full copy of everything on your device and saves it. That way, if you screw up anything (since you have root access and that is possible), you can always just flash your Nandroid backup and return to where you were. 

    The name is just NAND (a type of flash memory) and Android mashed together. 

    Kernel

    The kernel is like the engine of your operating system—you don’t really see it, but it’s in the background doing all the hard work. 

    If you want, you can flash a custom kernel. Sometimes these kernels are optimized for performance or battery life—sometimes, they’re just necessary to get some feature to work right. Either way, you can be okay just sticking with your stock kernel unless you really want to change it. 

    Brick

    Bricking your phone is essentially breaking it. If your phone isn’t working anymore, you’ve bricked it. This is generally not a phrase you’re going to be happy to run into. 

    • A soft brick usually means it’s fixable. Maybe you’re stuck in a bootloop (your phone just continually reboots), or you boot it up, but it only displays half the screen properly. That’s generally something you can get out of quite easily. 
    • A hard brick is when the device is toast. You messed with something at a system level that can’t be fixed, and your device is out of commission. Sorry. This is a rare thing to happen, but it can happen—and you’ll see warnings everywhere that no one but yourself is responsible for your device being bricked. 

    If you end up bricking your Android phone, try these steps to try and unbrick it