ROOTING ANDROID PHONE
For those new to the world of rooting, acquiring root access essentially grants you elevated permissions. With root access, you are able to access and modify files that would normally be inaccessible, such as files stored on the /data and /system partitions. Having root access also allows you to run an entirely different class of third-party applications and apply deep, system-level modifications. And by proxy, you may also be able to access certain device features that would otherwise be inaccessible or use existing features in new ways.
Having root access isn’t the end all-be all of device modification–that title is usually reserved for fully unlocked bootloaders and S-Off. That said, root access is generally the first step on your journey to device modification. As such, root access is often used to install custom recoveries, which then can be used to flash custom ROMs, kernels, and other device modifications. Root access also enables users to install the powerful and versatile Xposed Framework, which itself acts as a gateway to easy, non-destructive device modification.
Due to its inherent power, having root access is often dangerous. Thankfully, there are root brokering applications such as SuperSU and Magisk that only grant root access to applications of your choosing. There are also various root-enabled utilities available to help you restore in the event that something goes wrong. For starters, you can use any number of root-enabled application backup tools to backup your applications and their data to your local storage, your PC, and even online cloud storage. And in conjunction with a custom recovery, rooted users are able to perform a full, system-wide Nandroid backup that essentially takes a snapshot of your current smartphone or tablet at any particular time.
PLEASE NOTE: Rooting a device may void the warranty on the device. It may also make the device unstable or if not done properly, may completely brick the device. Some methods may install additional apps/software on your device. the author does not take any responsibility for your device. Root at your own risk and only if you understand what you are doing!
STEP 1 . INSTALLING TWRP RECOVERY.
Let’s start by downloading TWRP for your device. You can find a list of devices that are currently supported by following the link. https://twrp.me/Devices/
Now we will go through a couple different methods that you can use to install the TWRP recovery. Before we get started, go ahead and enable USB Debugging on your device.
To get everything setup properly, you can use this very simple tool created by XDA member Snoop05. Download an install using the guide fro in this XDA thread.
Enable USB Debugging To enable USB debugging, navigate to Settings > Developer Options > USB Debugging
Install via ADB
- Open the folder where your TWRP Recovery .img file is saved.
- Then open a CMD window inside that folder. To do that, Shift + Right click on any empty white space inside the folder and then select Open command window here.
- Connect your Android device to the PC. Type the following into the command window to boot your device into bootloader/fastboot mode:
adb reboot bootloader
└ If your asks for permission to “Allow USB debugging”, tap OK.
- Once your device boots into bootloader mode, type this into the command line.
fastboot flash recovery twrp-3.0.x.x-xxx.img
└ Here modify twrp.img with the name of your TWRP recovery .img file.
- Once TWRP is successfully flashed on your device, type this final command to reboot your device.
Install Magisk Manager
Once you’ve got TWRP installed successfully, boot into Android and install the Magisk Manager app. This isn’t the Magisk framework, which provides root access and the ability to install Magisk modules. It’s simply an app for downloading and updating the Magisk framework and managing modules.
The Magisk Manager app is no longer available on the Play Store, so you’ll need to have “Unknown Sources” enabled to install it. Other than that, just head to the following link, which will show you all available versions of the Magisk Manager app. Download the newest version, then when that’s finished, tap the Download complete notification to launch the APK. Finally, press “Install” when prompted.
Download the Magisk ZIP
Next, open the Magisk Manager app. You’ll get a popup asking if you’d like to install the Magisk framework. Tap “Install” here, then hit “Download Zip Only” on the subsequent popup. Wait until you see a message at the bottom of the app’s main menu stating that the file has been downloaded.
Flash Magisk in TWRP
Next, boot your phone into recovery mode, then tap the “Install” button in TWRP’s main menu. From there, navigate to your device’s Download folder, then select the Magisk ZIP. After that, just swipe the slider at the bottom of the screen to install Magisk, then tap “Reboot System.”