Have you ever stuck with rooting your Android Phone
Android is one of the most open and customizable mobile operating system. But If you need ultimate control over the phone, how it could be possible.You may have a doubt about why we need to root an android phone. You would be surprised at how much more you can accomplish with such a little task.
Most of companies and developers are interested in gaining root access to be make changes and graft on new features. Even it seems like fairy procedure, It’s some bit of harder and riskier than it used to be. If you do it incorrectly, Your phone will be definitely damage and manufactures and carriers will avoid the device warranty also.
What rooting exactly is ?
Gaining a root access to Android device is akin to running programs as an administrators on windows device. Otherwise It’s similar to jailbreaking an iPhone.
Since Android is based on Linux kernel, It also similar to running commands with sudo in Linux. It allows you to dive deeper into android subsystem by making change the way in OS operates. Rooting enables you to customize just about anything on your android device with despite of applied restrictions by manufactures and carriers.You can also run apps that require access to certain system settings and flash custom ROMs(Modified version of android) to the phone.
How to prepare the android device for Rooting
You should always backup the ROM before you flash to new one and also ensure that your phone is fully charged before you begin the process. You will need to turn on USB debugging and OEM unlocking.
Steps to Activate USB debugging
- Tap on About device and find the Build number.
- Tap on the Build number seven times and the Developer options will appear on the Settings main page.
- Tap on the back key to see the Developer Options.
- Tap on Developer options.
- Check to enable USB Debugging and OEM unlocking.
Install ADB tool on developers’ computer
You also need to install Android Debugger Bridge( ADB) to perform this process. ADB is a command line tool which enables to communicate with emulators or USB connected devices. It simply behaves like a client server program and contains three components namely,Developer,Damon and Server. Developer can run several commands on a client which runs on his computer, Damon executes commands on the USB connected device or emulator as a background process. Server manages the client- server communication and It also runs as a background process in device instance.
You can find the adb tool inside the sdk location/platform-tools/adb
Download the appropriate TWRP for your phone
Custom recovery like TWRP(Team Win Recovery Project) is a great way to root or flash custom ROM. Since Google’s default recovery mode is primitive, Third party recoveries like the TWRP allow you to make backups, install ROMs and root your phone easily and if you want to dig deep into android subsystem, You will probably need such a third party recovery tool.
You can find the TeamWin’s website and go to the Devices page. Search for the specific device which you have and click on it to see the TWRP downloads available for it. Select the relevant image file and copy it into the folder in which adb has been installed. Ex: twrp.img
Reboot Into Bootloader
You need to boot your phones’ boot loader. Most probably it will depend on the device model. But most of devices can be loaded into boot mode by turning off the phone and then holding the “Power” and “Volume Down” buttons for 10 seconds before releasing them.
If you are in right steps, you will get this bootloader screen
In here bootloader is already unlocked, but If you need to unlock it in this step, please run below command on your adb terminal.
fastboot oem unlock
The command (fastboot devices) should return a serial number and It indicates that it can recognize your phone. If it doesn’t , go back and make sure you have done everything properly until this point.
If your device is recognized by fastboot, it’s time to flash TWRP. Run the following command
fastboot flash recovery twrp.img
If it runs successfully,You will see this success message in your terminal
Boot into TWRP recovery
You unplug the phone then use the volume down key to scroll to the Recovery option among other options in the bootloader. Press power button to select it. Your phone should reboot into TWRP.
TWRP ask if you would like to use TWRP in “Read Only” mode. Tap on Keep Read Only.
When you are done, you’ll see the TWRP main screen. You can use this to create NANDroid . Tap the “Backup” button on the main TWRP screen. Select “Boot”, “System”, and “Data” and swipe the bar at the bottom to back them up.
The backup will take some considerable amount of time. When it finishes, go back to the backup menu.
Uncheck all the options and scroll to the bottom. If you have a special partition, you can check them also, and perform one more backup. This partition usually contains your EFS(store information like imei, serial number, diag settings and radio settings, etc in an encrypted format at the file system level stores) or IMEI information, which is crucial. If it becomes corrupted, you’ll lose data connectivity and can restore this backup to make your phone function again.
If TWRP asks if you want to root your phone, choose Do Not Install. It’s best way to flash the latest version of superuser.
Now you have completely rooted your Android device.