Special boot modes

Recovery

With the device powered off, hold Volume Up + Power.

Keep holding both buttons until the “MI” logo appears on the screen, then release.

Download

With the device powered off, hold Volume Down + Power.

Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release.

Prerequisites

Install fastboot and adb. You will need the platform-tools from the Android SDK on your computer.

Install fastboot and adb. You will need the platform-tools from the Android SDK on your computer. http://developer.android.com/sdk/index.html#linux-bundle-size

Unlocking the bootloader

Note: The steps below only need to be run once per device.

See brand official unlocking site.

Developer Options = On / OEM Locking = On / USB Debugging = On On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings.

Press back and go into Developer Options and enable USB debugging.

From your computer, open a command prompt and type:

You should now be in fastboot mode.

Installing a custom recovery

Popular custom revovery tool: TWRP. Download: <recovery_filename>.img

adb reboot bootloader fastboot devices sudo fastboot flash recovery <recovery_filename>.img sudo fastboot reboot

Sometimes recovery is persistent:

Installing custom ROM from recovery

From custom recovery: Wipe and Format Data, Select Cache and System partitions and Swipe to Wipe

Method 1: SIDELOADING

From custom recovery Advanced > ADB Sideload From command line:

Method 2: PUSHING

https://developer.android.com/studio#linux-bundle-sizearrow-up-right

Last updated