Rooting an Android device gives you **superuser (admin) access** to the system,
allowing you to modify system files, install custom ROMs, and unlock advanced
features. However, rooting can:
✅ Unlock hidden features
✅ Improve performance
❌ Void warranty
❌ Risk bricking the device
Here are the **general steps to root an Android device**:
---
## ⚠️ **Pre-requisites**
✅ **Backup your data** – Rooting may wipe your data.
✅ **Charge your device** – Keep battery level above **50%**.
✅ **Enable Developer Options**:
1. Go to **Settings → About Phone**.
2. Tap **Build Number** **7 times** until you see "You are now a developer!"
✅ **Enable USB Debugging**:
1. Go to **Settings → Developer Options**.
2. Turn on **USB Debugging**.
✅ **Enable OEM Unlocking** (if available):
1. Go to **Settings → Developer Options**.
2. Enable **OEM Unlocking**.
---
# **Method 1: Root Using Magisk (Recommended)**
> Works on most modern devices, allows root hiding for apps like banking and
streaming.
---
## ✅ **Step 1: Unlock Bootloader**
1. Connect your phone to a computer via USB.
2. Open **Command Prompt** (in Windows) or **Terminal** (in Linux).
3. Type the following command to check device connection:
```bash
adb devices
```
4. If the device is detected, proceed with unlocking:
```bash
fastboot oem unlock
```
5. On your phone, confirm the unlocking prompt (use volume and power buttons).
6. The device will reboot and reset itself.
---
## ✅ **Step 2: Download Magisk**
1. Download **Magisk** from the official GitHub:
👉 [https://github.com/topjohnwu/Magisk](https://github.com/topjohnwu/Magisk)
2. Save the APK file on your phone.
---
## ✅ **Step 3: Patch Boot Image**
1. Open Magisk Manager.
2. Tap **Install** → **Select and Patch a File**.
3. Choose the **boot.img** file from your firmware package (download the firmware
matching your device).
4. Magisk will patch the file and save it in the **Download** folder.
---
## ✅ **Step 4: Flash Patched Boot Image**
1. Transfer the patched **boot.img** file to your computer.
2. Reboot your phone to **Fastboot Mode**:
- Power off the phone.
- Hold **Power + Volume Down** until Fastboot appears.
3. Open Command Prompt and type:
```bash
fastboot flash boot patched_boot.img
```
4. After flashing, reboot the device:
```bash
fastboot reboot
```
---
## ✅ **Step 5: Verify Root Access**
1. Open Magisk Manager.
2. Tap **Check SafetyNet**.
3. If successful, Magisk will show "Rooted."
---
# **Method 2: Root Using KingRoot (One-Click Root)**
> Works on older devices (Android 9 or lower).
---
## ✅ **Step 1: Download KingRoot APK**
1. Download KingRoot from the official website:
👉 [https://kingroot.net](https://kingroot.net)
2. Allow installation from **unknown sources**:
- **Settings → Security → Install from Unknown Sources** → Enable.
---
## ✅ **Step 2: Root the Device**
1. Open **KingRoot**.
2. Tap **"Try Root"** or **"Start Root."**
3. Wait for the process to finish.
4. If successful, KingRoot will show **Root Successfully**.
---
## ✅ **Step 3: Verify Root**
1. Download **Root Checker** from the Play Store.
2. Open it and tap **Verify Root**.
3. If rooted, it will show **"Root Access Granted."**
---
# **Method 3: Root Using TWRP + Magisk**
> Requires flashing a custom recovery first.
---
## ✅ **Step 1: Install TWRP Recovery**
1. Download the TWRP image for your device:
👉 [https://twrp.me](https://twrp.me)
2. Transfer the TWRP file to your computer.
3. Reboot to Fastboot Mode:
- Power off the phone.
- Hold **Power + Volume Down**.
4. Type the following command to flash TWRP:
```bash
fastboot flash recovery twrp.img
```
5. Reboot into TWRP:
```bash
fastboot reboot
```
---
## ✅ **Step 2: Flash Magisk.zip Using TWRP**
1. Download **Magisk.zip** from GitHub.
2. Transfer it to your phone.
3. In TWRP, go to **Install** → Select **Magisk.zip** → Swipe to install.
4. Reboot the device.
---
## ✅ **Step 3: Verify Root Access**
1. Open Magisk Manager.
2. Tap **Check SafetyNet**.
3. If successful, the device is rooted.
---
# 🚀 **Tips After Rooting**
✅ **Hide Root from Apps** – Use Magisk to hide root from banking or payment apps.
✅ **Install a Custom Kernel** – Improve battery life and performance.
✅ **Use Root Apps** – Apps like **Titanium Backup** and **Greenify** work better
with root access.
---
# ⚠️ **Risks of Rooting**
❌ **Voids Warranty** – Most manufacturers void the warranty after rooting.
❌ **Bricking** – Incorrect steps can brick the device.
❌ **Security Risks** – Rooting exposes the system to malware and hacking if not
properly configured.
---
## ✅ **Best Method:**
- **Newer devices:** Use **Magisk**
- **Older devices:** Use **KingRoot**
- **Advanced Users:** Use **TWRP + Magisk**
---