0% found this document useful (1 vote)
631 views

Installing One Click Adb

This document provides instructions for installing TWRP recovery on the Xiaomi Redmi 4X smartphone. It includes links to download the latest TWRP image file and instructions for installing it using either the TWRP app, fastboot commands from a computer, or adb commands from a recovery terminal. The instructions describe putting the device in bootloader mode, flashing the TWRP image, and rebooting to complete the installation. Additional details are provided on unlocking the bootloader if needed and avoiding issues from restoring apps.

Uploaded by

Ignatius
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
631 views

Installing One Click Adb

This document provides instructions for installing TWRP recovery on the Xiaomi Redmi 4X smartphone. It includes links to download the latest TWRP image file and instructions for installing it using either the TWRP app, fastboot commands from a computer, or adb commands from a recovery terminal. The instructions describe putting the device in bootloader mode, flashing the TWRP image, and rebooting to complete the installation. Additional details are provided on unlocking the bootloader if needed and avoiding issues from restoring apps.

Uploaded by

Ignatius
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

INSTALLING ONE CLICK ADB & FASTBOOT

UTILITIES ON WINDOWS:
Step By Step Guide

1. Download the ADB Fastboot Installer with the filename: adb-setup-1.4.2.exe.


2. Go to the Downloaded directory and Double-click / Run the adb-setup-
1.4.2.exe file.
3. You will get a Blue coloured command prompt screen with the text highlighting
as: Do you want to install ADB and Fastboot? (Y/N)_
Just press the Y key on the keyboard and press Enter to continue.
NOTE: This option installs the ADB & Fastboot utilities on your Windows PC.

4. Then it will ask whether to install ADB system-side?


Just press the Y key on the keyboard again and press Enter to continue.
NOTE: This option basically enables the ADB and Fastboot utilities to be
accessible from any directory location on your Windows machine. If you are a
beginner then it is strongly recommended that you should enable this by
clicking y

5. Then it will ask whether to install Device Drivers?


Just press the Y key on the keyboard again and press Enter to continue.
6. This time another installer will be opened automatically.
Click on Next to continue and when completed just click on Finish button.
NOTE: This actually installs the Google Android USB Drivers. If you are a
beginner then this step is also strongly recommended to go with a y

Once the ADB, Fastboot and Google Android Drivers are installed, the setup Window
will automatically be closed. After that you can access the adb and fastboot from the
command console application on windows. To open the command window,
Press Shift + Right Click on mouse on any directory or any place on Windows
explorer and then Click on Open command window here.
Alternatively you can open the Run window by pressing Windows Key + R on
keyboard and then type cmd on the Run command windows text box and
then press Enter.

If you have any problem or if you want any help then just login to reply and you will
get help instantly.

REQUIRED LINKS AND DOWNLOADS TO INSTALL TWRP


ON ANDROID PHONE OR TABLET USING FASTBOOT:

Unlocked bootloader on your Android. Here is a Bootloader unlock


guide which may help for your device.
ADB and Fastboot installed on your PC or MAC.
ADB Fastboot Installation guide for Windows
ADB Fastboot Installation guide for Linux and MAC
TWRP image for your device.
Enough battery backup. (More than 60% of battery charge will be good enough)
A PC with USB driver installed for your Android.

HOW TO INSTALL TWRP RECOVERY ON


ANDROID USING FASTBOOT:

1. Download the TWRP recovery image to be installed on your Android. Make


sure that the TWRP recovery is meant for your Android device ONLY.
2. Enable USB Debugging under Developer Options. If you dont know how to
do this then here is How to Enable Developer Options and How to Enable USB
Debugging under Developer Options.
3. Install ADB and Fastboot utility on your PC or MAC. Follow the appropriate
guide to install Fastboot according to the OS that you use:
ADB Fastboot Installation guide for Windows.
ADB Fastboot Installation guide for Linux and MAC.
4. Go to the directory where you have downloaded the TWRP image file and then
open the command console or termianl on this directory on your PC. To open
a command window on Windows OS in the current directory, press shift + Right
Click anywhere on Windows explorer, or some folder. Then on the menu
opened, just press the w key on the keyboard or select Open command
window here to open a command window.
5. Now connect your Android to the PC using a USB cable.
6. Enter the following command on the command window opened:
adb reboot bootloader

to put your Android into bootloader mode where you can flash/install the TWRP
recovery.
If your Android device asks permission such as Allow USB debugging then
just tap on OK to proceed.

7. Now when your Android is on the bootloader mode just execute the following
command on the console:
fastboot flash recovery twrp-3.0.x.x-xxx.img

While executing this command make sure to replace the twrp-3.0.x.x-


xxx.img with the actual file name of the TWRP that you have downloaded for
your Android.

8. Wait for the TWRP to be flashed. Once it is done execute the following
command:
fastboot reboot

on the command console and VOILA, your Android is now installed with TWRP
recovery.

After executing all above steps in order, your Android will have the TWRP installed. If
you want some more TWRP guides, like: how to wipe data or other partitions using
TWRP or how to take backup using TWRP then the following links will help you:
How to wipe Android partitions using TWRP
How to take NANDROID backup using TWRP
TWRP for Xiaomi Redmi 4X
Jul 17, 2017

Disclaimer:

Team Win strives to provide a quality product. However, it is your decision to


install our software on your device. Team Win takes no responsibility for any
damage that may occur from installing or using TWRP.

Status:

Support Status: Current

Maintainer: Isaac Chen

Code Name: santoni

Device Tree / files

This device uses dm-verity!

This means that swiping to allow system modifications will prevent you from
being able to boot if you are using the stock kernel. In order to bypass dm-verity's
boot prevention, you will have to install a kernel that has dm-verity disabled in the
fstab.

Notes About Xiaomi Mi Devices:

Some Xiaomi Mi devices have bootloaders that require additional steps to unlock
before you are able to flash custom images. This typically involves filling out an
application to have your device unlocked.
You will need to follow the steps on Xiaomi's MIUI website in order to unlock
your device.
Understand that unlocking your device will wipe all of your personal data,
settings, and apps from its memory.

See: Apply for unlocking Mi devices


App Install Method (Requires Root):

Download the Official TWRP App (root required):

Play Store (recommended)


No Play Store? Download the latest version here.

Install the app and open it. Agree to the Terms. Select TWRP Flash. Select your
device from the device list (santoni) and choose a version. The file will download
to your Downloads folder. Browse to and select the file. Tap on Flash to
Recovery. Find out more about the app here.

Download Links:

Current and past versions of TWRP can be found at one of the mirrors below:

Primary (Americas)
Primary (Europe)

TWRP Install (Requires TWRP 2.8.4 or higher already installed):

Download the latest TWRP image file (.img) from the download link and boot
TWRP. Go to install and find and select the Images... button. Browse to the image
that you downloaded and select it. Choose recovery and swipe to flash.

Fastboot Install Method (No Root Required):

You will need the platform-tools from the Android SDK on your computer. Find
the Android command line tools section on the page linked and install the SDK
tools package. From the SDK Manager, download only the platform-tools to get
adb and fastboot binaries.

Windows users will need proper drivers installed on their computer. You can try
the simple FWUL adb/fastboot ISO or the Naked ADB drivers or the Universal
ADB drivers if you don't already have a working driver installed

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:
adb reboot bootloader

You should now be in fastboot mode.

Download the correct image file and copy the file into the same folder as your adb
and fastboot binaries. Rename the image to twrp.img and type:

fastboot flash recovery twrp.img

fastboot reboot

Note many devices will replace your custom recovery automatically during first
boot. To prevent this, use Google to find the proper key combo to enter recovery.
After typing fastboot reboot, hold the key combo and boot to TWRP. Once
TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM
from replacing TWRP. If you don't follow this step, you will have to repeat the
install.

dd Install Method (Requires Root):

Download the latest image file (.img) from the download link above. Place it in
the root of your /sdcard folder and rename it to twrp.img. Run the following
commands via adb shell or a terminal emulator app:

su

dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-
name/recovery

Changelog:

HOW TO
INSTALL/DOWNLOAD/FLASH/UPDATE Redmi
NOTE 3 Special Lineage OS 14.1 NOUGAT
CUSTOM ROM:
1. Follow this if you are flashing Lineage OS 14.1 for Redmi
NOTE 3 Special (kate) for the first time, or coming from
another ROM:
Points to NOTE:
Try to avoid restoring apps backup using Titanium Backup. It may break things
up.
Dont restore system data using Titanium Backup! It will definitely break the
current installation.
It is also discouraged to Restoring Apps + Data using Titanium Backup.

a. Download and Copy the GApps and Lineage OS 14.1 for Redmi NOTE 3
Special ROM ZIP to your phone.
b. Boot into Recovery. Make sure to have a Custom recovery like CWM or
TWRP or any other custom recovery. If not then follow the Custom
Recovery Installation Guide for Redmi NOTE 3 Special (kate) (its a
generic guide which will work for TWRP as well as CWM recovery or
any other recovery)
c. Wipe data factory reset, Cache partition, Dalvik Cache and Format the
System partition.
Here is a guide explaining how to wipe data using TWRP recovery.
This will delete all your data on your phone. You may consider complete
backup of your phone data or take a NANDROID backup of the current
ROM
How to backup all data on your Android Device
how to take NANDROID backup using TWRP recovery
d. First flash the Redmi NOTE 3 Special Lineage OS 14.1 ROM ZIP from
device. Then flash the GApps zip from your device memory.
Here is a post explaining how to install Lineage OS.
e. DO NOT REBOOT YET. Now flash the Lineage OS 14.1 Nougat
GApps package.
Here is a post explaining how to flash GApps using TWRP recovery.
f. Reboot and Enjoy the Nougat 7.1 Lineage OS 14.1 ROM for Redmi NOTE
3 Special (kate).

2. Upgrading from earlier version of Lineage OS 14.1 for Redmi


NOTE 3 Special (kate):

. Copy the latest Lineage OS 14.1 for Redmi NOTE 3 Special ROM ZIP file
to your phone.
a. Boot into Recovery.
b. Flash the latest Lineage OS ROM ZIP from your phone.
Here is a post explaining how to install Lineage OS.
c. Then flash the Lineage OS 14.1 Nougat GApps package.
Here is a post explaining how to flash GApps using TWRP recovery.
d. Reboot and Enjoy
Complete the initial setup and enjoy Android Nougat 7.1 with Lineage OS 14.1 for
Redmi NOTE 3 Special (kate). After the installation of Redmi NOTE 3 Special
Lineage OS 14.1 (kate) you may want to enable ROOT access on your phone and
here is how you can do that:
How to Enable ROOT on Lineage OS 14.1.

You might also like