Saltar al contenido principal


Android devices, particularly the developer-friendly Nexus models from Google, are especially suited for unlocking and tinkering with.

The Android OS, based upon Linux, is modular enough to allow replacement and upgrading of particular components of the system: bootloader, recovery, radio software, and both the underlying operating system and the user interface. Just as you can replace the default home screen/launcher app with one you like better, you can run a different build of the open source Android operating system (AOSP) for improved performance or bleeding edge capabilities. These are called ROMs.

Even without switching out the core OS, you can use a customized recovery partition. Team Win (TWRP) and ClockworkMod (CWM) are the most popular third party recovery replacements, and are available for many Android devices. They provide advanced maintenance functions, including the ability to install root apps that let the user and apps perform functions as the system user.


The basic tool for working with a Android device is the Android Software Development Kit (SDK), which includes tools like fastboot and adb (Android Debug Bridge). There are third party "lite" versions of the basic tools for most operating systems. Some GUI tools take the complexity out of using command line tools to perform common operations, but these actions are no less powerful.


Unlocking, flashing, rooting your device may void the warranty. You are also at risk for "bricking" (rendering inoperable and irreparable) your phone or tablet. You assume full liability and responsibility for attempting to follow any of these steps.

Some applications will not work if a device has been unlocked or rooted. E.g. Android Pay now detects if the system has been compromised this way in Android 6.0, and will refuse to work for you.

Further Information

Google Nexus

XDA developer forums

  1. Bootloader, Recovery, and the joy of unlocking, Reboot to the bootloader, or reboot in Safe Mode: paso 1, imagen 1 de 3 Bootloader, Recovery, and the joy of unlocking, Reboot to the bootloader, or reboot in Safe Mode: paso 1, imagen 2 de 3 Bootloader, Recovery, and the joy of unlocking, Reboot to the bootloader, or reboot in Safe Mode: paso 1, imagen 3 de 3
    • All steps in this guide will vary from one phone model to another. Read your device's documentation to determine the specific steps required.

    • To power down most phones, hold down the power button until a prompt appears. Tap on the pop-up message. Some devices may have a "Power off" command in the software settings.

    • If your phone is crashing or locking up after boot, try rebooting into safe mode. In the previous step, tap and hold on "Power off" until the prompt changes to "Reboot to safe mode." Tap OK.

    • Most third party apps will not run under safe mode. If the phone runs okay, then reboot normally and start uninstalling apps until you determine which one was the culprit.

    • Some apps' settings will be lost or reset after using safe mode. You may have to set them up again.

    • With the phone in an off state, hold down buttons in a combination to enter the bootloader. Google Nexus models have specific combinations like holding Volume Down and Power simultaneously.

    • Your device's bootloader may look different from this Nexus 5 screen. That's okay. Note the essential information available to you here: phone model, product variant, serial/IMEI number, SIM and bootloader locked state.

  2. Bootloader, Recovery, and the joy of unlocking, Bootloader, fastboot: paso 2, imagen 1 de 1
    • The bootloader often displays information like the phone model, version of fastboot, whether or not it is boot-unlocked or not.

    • For Google Nexus devices, you can now connect your phone to a computer (Windows, MacOS, Linux) running the Android SDK tools, allowing some commands to be sent.

    • The Android SDK fastboot command supports unlocking the bootloader, flashing factory images to Nexus phones, flashing a new recovery partition. Check the Android SDK documentation for further details, or type fastboot -h at the command line.

    • Flashing a phone can often wipe out all user data and settings. Fastboot flashing unlock (formerly fastboot oem unlock) on Nexus phones will erase all user data as a security precaution. Offload any information or media that you want to keep before unlocking a phone's bootloader.

    • Some manufacturers may supply custom code based on your phone's IMEI (unique serial number) which is required to unlock.

    • Flashing an Android phone with compatible ROMs (operating firmware and software) is part of the fun of tinkering with Android Phones. With the phone in the bootloader state, this is where you can change your phone's software suite. For example, Google provides complete "factory images" to return the Nexus models to a new, "out of the box" state.

  3. Bootloader, Recovery, and the joy of unlocking, Recovery is your friend: paso 3, imagen 1 de 1
    • From your bootloader screen, toggling the volume buttons will offer functions like Start, Power Down, Restart Bootloader, and usually … Recovery. Pressing the Power button generally executes the displayed function.

    • The recovery partition is a rudimentary mini operating mode which allows loading updates, wiping the cache partition, and performing a factory reset to a phone that cannot boot properly (e.g. in an endless bootloop, never reaching an unlock screen). It's not called recovery for no reason -- it's an essential tool for restoring a broken phone.

    • Some phones are supported by third party recovery images, like ClockworkMod, with advance features including selective backup and restore, mounting partitions usually only accessible after the Android OS is running, and installing a root service.

    • Similar to Unix' superuser command, root allows the user to perform system-level actions. Rooting is a powerful tool that enables some features and access to the operating system while it is running.

    • Rooting suppresses built-in security protections of the operating system, and should only be done if you have full understanding of the risks. You should never grant an installed application root access, or permission to install a root service, without knowing exactly what it needs it for. 99.9% of apps will never need root access.


Congratulations! You now know at least a little more about how to remedy operating system problems with your Android OS phone.

151 personas más completaron esta guía.

David Spalding

Miembro Desde 12/11/15

6,205 Reputación

9 Guías creadas

15 comentarios

i have unlocked the mobile and wiped all logos ,bootloader,system,cache everything and disconnected from pc . and now my phone is not turning on . is there any way to recover it.

maanjunadh - Contestar

Wow, why did you do that?? You've removed the operating system components that your phone needs to run, it should be no surprise that it is bricked. Have you tried to boot into bootloader?

How to recover, if you can, depends upon the model. You'll need to ask a question in the specific topic forum for your phone hardware. If you cannot even boot to the bootloader to run fastboot, you probably need a suitably equipped phone repair shop or factory service center to reflash the phone at the hardware level.

David Spalding -

I have rooted my Moto g5 plus phone using magisk and twrp for recovery. It is working perfectly fine with no issues. Then I wanted to do OTA updates. I have backed up my partitions. But I dint have the original partitions. So I flashed boot.img , logo.bin and recovery.img from firmware. And then rebooted but its stuck in Your device will boot in 5 seconds. Please help

Sujitha Jose - Contestar

I have rooted my Moto g5 plus using Magisk and twrp for recovery. It was working perfectly fine. I wanted to do OTA updates. I have backed up my partitions. Flashed boot.img, logo.bin and recovery.img from firmware. Rebooted the phone but its stuck at Your device will boot in 5 seconds. Please help

Sujitha Jose - Contestar

Sujitha Jose, If you have rooted your Android device and looking out to get the OTA updates, please remove the old magisk installed on your device and install the Magisk Manager Latest Version from the official website as the recent update has got you everything about the OTA updates. You don’t need do anything else.

Magisk Manager - Contestar

Agregar Comentario

Ver Estadísticas:

Ultimas 24 horas: 47

Ultimos 7 días: 286

Ultimos 30 días: 1,450

Todo El Tiempo: 78,173