[ROOT][GUIDE][NOOB-FRIENDLY]ROOT+UNLOCK BOOTLOADER for Lenovo K8 Plus - Miscellaneous Android Development

How to unlock bootloader & get root for Lenovo K8 Plus
**********Pre-requirements***********
1. Make sure you have 70% charge or more then that.
2. Follow all steps correctly otherwise you will end up with a bricked phone.
3. I'm not responsible for any damage to your phone.
4. Make sure that you have installed usb drivers.
5. Download ADB & Fastboot Drivers
Steps to Unlock Bootloader
1. First of all, enable the Developer Option
To Enable the Developer Option, Go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"
2. Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging
3. Download and Extract the Downloaded ADB fastboot Zip file on your phone.
4. Now connect your phone to Computer using USB Cable.
When you connect your Phone to Computer, please wait until all the drivers get installed.
5. In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click
Now type the command in your command window
Code:
adb devices
6. If you see a pop up to allow USB Debugging on your phone, Click OK
Now type the command below to reboot your phone to bootloader
Code:
adb reboot bootloader
7. Once your phone reboot into bootloader, make sure your phone shows the bootloader locked and then type the command below to make sure fastboot drivers are installed properly.
Code:
fastboot devices
8. This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue, you must fix your drivers so that your phone is listed under fastboot devices.
9. If the phone has been recognized by the command above, proceed to unlock the bootloader with the following command:
Code:
Remember that this step will wipe EVERYTHING off the phone
Code:
fastboot oem unlock
10. After the above command has finished executing, run the following
Code:
fastboot reboot
The phone will reboot. Wait until the phone has fully booted up into Android.
Root method
Note:- All credits for it goes to @topjohnwu for his amazing magisk
Requirements:-
1. Make sure you are on latest September patch firmware.
2. Download patched_boot.img created from magisk mangaer.
Instructions:-
1. Connect up your phone then type:-
Code:
adb reboot bootloader
2. Copy patched_boot.img in adb folder.
Now type
Code:
fastboot flash boot patched_boot.img[/url]
3. Open up you device & install magisk manager from [url=https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445]here[/url]
Voilla you're rooted.

twrp please for lenovo k8 +++++

Mod Edit
Duplicate thread is closed
malybru
Senior Moderator

Related

[Completed] Mom needs help rooting Moto E 2015

I'm not tech savvy when it comes to Android and I need some help to root my teen's Motorola Moto E 2015, preferably today.
I need to root it to then disable the guest account, so that when I install the ScreenTime app my son can't bypass it by using the guest account. That's a shortcoming of ScreenTime.
I read a bit about ROMs and would like to use CyanogenMod.
But other than my choice of ROM, I haven't found what I believe to be reliable instructions on what to do now step by step. I really do need idiot-proof step by step instructions.
Is there a super Android geek here who has time to take me through the process or offer advice and links to such sources?
Hello,
Welcome to XDA.
Try the thread linked below, there is a YouTube video in the first post that walks you through rooting your device.
http://forum.xda-developers.com/moto-e-2015/general/root-moto-e-2015-t3086819
If you have further questions about your device, try posting your questions in the forum linked below.
http://forum.xda-developers.com/moto-e-2015/help
The experts there may be able to help. Good luck.
Got this far
Found instructions on CyanogenMod Wiki - wiki.cyanogenmod.org/w/Install_CM_for_surnia[/url
but only got as far as step 5. What terminal on my computer? Command Prompt? I typed adb reboot bootloader into Command Prompt but it said adb command is not recognized.
Unlocking the device
1. Make sure your computer has working fastboot and adb.
2. Enable USB debugging on the device.
3. Enable OEM unlock in the Developer options settings on the device. (Note: Not all devices have this setting, so continue with next step if yours does not.)
4. Connect the device to the computer through USB.
5. From a terminal on a computer, type the following to boot the device into fastboot mode:
adb reboot bootloader
6. Once the device is in fastboot mode, verify your PC sees the device by typing fastboot devices
* If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
* If you see "no permissions fastboot", try running fastboot as root.
7. From the same terminal, type the following command to obtain your bootloader unlock code:
fastboot oem get_unlock_data
8. Visit the Motorola Bootloader Unlock website and follow the instructions there to obtain your unlock key and unlock your bootloader.
9. If the device doesn't automatically reboot, reboot it from the menu. It should now be unlocked.
10. Since the device resets completely, you will need to re-enable USB debugging on the device to continue.
Installing recovery using fastboot
See All About Recovery Images for more information about custom recoveries and their capabilities.
1. Make sure your computer has working fastboot and adb.
2. Download recovery -- you can directly download a recovery image using the link below, or visit twrp.me to obtain the latest version of TeamWin Recovery Project for your device.
Recovery: Downloadmd5: 5fdfe1871589c0a152f3f7e541b6c892
3. Connect the Moto E 2015 LTE to the computer via USB.
4. Make sure the fastboot binary is in your PATH or that you place the recovery image in the same directory as fastboot.
5. Open a terminal on your PC and reboot the device into fastboot mode by typing
adb reboot bootloaderor by using the hardware key combination for your device while it is powered off.
6. Once the device is in fastboot mode, verify your PC sees the device by typing
fastboot devices
* If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
* If you see "no permissions fastboot", make sure your UDEV rules are setup correctly.
7. Flash recovery onto your device by entering the following command:
fastboot flash recovery your_recovery_image.imgwhere the latter part is the filename of the recovery image.
8. Once the flash completes successfully, reboot the device into recovery to verify the installation. Boot to recovery instructions: Hold Volume Down & Power simultaneously. On the next screen use Volume Down to scroll to recovery and then use Volume Up to select.
* Note: Some ROMs overwrite recovery at boot time so if you do not plan to immediately boot into recovery to install CyanogenMod, please be aware that this may overwrite your custom recovery with the stock one.
Installing CyanogenMod from recovery
1. Make sure your computer has working adb.
2. Download the CyanogenMod package for your device that you'd like to install to your computer.
Optional: Download 3rd party applications packages, like Google Apps which are necessary to download apps from Google Play.
3. Place the CyanogenMod .zip package, as well as any optional .zip packages, on the root of /sdcard:
* Using adb: adb push filename.zip /sdcard/
Note: You can copy the .zip packages to your device using any method you are familiar with. The adb method is used here because it is universal across all devices and works in both Android and recovery mode. If you are in recovery mode, you may need to ensure /sdcard (sometimes called Internal Storage) is mounted by checking its status in the Mounts menu. If you have booted regularly, USB debugging must be enabled.
4. If you are not already in recovery, boot to recovery mode now.
* Hold Volume Down & Power simultaneously. On the next screen use Volume Down to scroll to recovery and then use Volume Up to select.
5. In Team Win Recovery Project, select menu choices by tapping on the appropriately labelled button.
6. Optional (Recommended): Select the Backup button to create a backup.
7. Select Wipe and then Factory Reset.
8. Select Install (if you're running Cyanogen recovery this is Apply Update).
9. Navigate to /sdcard and select the CyanogenMod .zip package.
10. Follow the on-screen notices to install the package.
11. Optional: Install any additional packages you wish using the same method (if you are installing multiple packages, install CyanogenMod the first and then install any subsequent packages on top of it).
12. Once installation has finished, return to the main menu and select Reboot, then System. The device will now boot into CyanogenMod.
ipzma said:
Found instructions on CyanogenMod Wiki - wiki.cyanogenmod.org/w/Install_CM_for_surnia[/url
but only got as far as step 5. What terminal on my computer? Command Prompt? I typed adb reboot bootloader into Command Prompt but it said adb command is not recognized.
Unlocking the device
1. Make sure your computer has working fastboot and adb.
2. Enable USB debugging on the device.
3. Enable OEM unlock in the Developer options settings on the device. (Note: Not all devices have this setting, so continue with next step if yours does not.)
4. Connect the device to the computer through USB.
5. From a terminal on a computer, type the following to boot the device into fastboot mode:
adb reboot bootloader
6. Once the device is in fastboot mode, verify your PC sees the device by typing fastboot devices
* If you don't see your device serial number, and instead see "", fastboot is not configured properly on your machine. See fastboot documentation for more info.
* If you see "no permissions fastboot", try running fastboot as root.
7. From the same terminal, type the following command to obtain your bootloader unlock code:
fastboot oem get_unlock_data
8. Visit the Motorola Bootloader Unlock website and follow the instructions there to obtain your unlock key and unlock your bootloader.
9. If the device doesn't automatically reboot, reboot it from the menu. It should now be unlocked.
10. Since the device resets completely, you will need to re-enable USB debugging on the device to continue.
Installing recovery using fastboot
See All About Recovery Images for more information about custom recoveries and their capabilities.
1. Make sure your computer has working fastboot and adb.
2. Download recovery -- you can directly download a recovery image using the link below, or visit twrp.me to obtain the latest version of TeamWin Recovery Project for your device.
Recovery: Downloadmd5: 5fdfe1871589c0a152f3f7e541b6c892
3. Connect the Moto E 2015 LTE to the computer via USB.
4. Make sure the fastboot binary is in your PATH or that you place the recovery image in the same directory as fastboot.
5. Open a terminal on your PC and reboot the device into fastboot mode by typing
adb reboot bootloaderor by using the hardware key combination for your device while it is powered off.
6. Once the device is in fastboot mode, verify your PC sees the device by typing
fastboot devices
* If you don't see your device serial number, and instead see "", fastboot is not configured properly on your machine. See fastboot documentation for more info.
* If you see "no permissions fastboot", make sure your UDEV rules are setup correctly.
7. Flash recovery onto your device by entering the following command:
fastboot flash recovery your_recovery_image.imgwhere the latter part is the filename of the recovery image.
8. Once the flash completes successfully, reboot the device into recovery to verify the installation. Boot to recovery instructions: Hold Volume Down & Power simultaneously. On the next screen use Volume Down to scroll to recovery and then use Volume Up to select.
* Note: Some ROMs overwrite recovery at boot time so if you do not plan to immediately boot into recovery to install CyanogenMod, please be aware that this may overwrite your custom recovery with the stock one.
Installing CyanogenMod from recovery
1. Make sure your computer has working adb.
2. Download the CyanogenMod package for your device that you'd like to install to your computer.
Optional: Download 3rd party applications packages, like Google Apps which are necessary to download apps from Google Play.
3. Place the CyanogenMod .zip package, as well as any optional .zip packages, on the root of /sdcard:
* Using adb: adb push filename.zip /sdcard/
Note: You can copy the .zip packages to your device using any method you are familiar with. The adb method is used here because it is universal across all devices and works in both Android and recovery mode. If you are in recovery mode, you may need to ensure /sdcard (sometimes called Internal Storage) is mounted by checking its status in the Mounts menu. If you have booted regularly, USB debugging must be enabled.
4. If you are not already in recovery, boot to recovery mode now.
* Hold Volume Down & Power simultaneously. On the next screen use Volume Down to scroll to recovery and then use Volume Up to select.
5. In Team Win Recovery Project, select menu choices by tapping on the appropriately labelled button.
6. Optional (Recommended): Select the Backup button to create a backup.
7. Select Wipe and then Factory Reset.
8. Select Install (if you're running Cyanogen recovery this is Apply Update).
9. Navigate to /sdcard and select the CyanogenMod .zip package.
10. Follow the on-screen notices to install the package.
11. Optional: Install any additional packages you wish using the same method (if you are installing multiple packages, install CyanogenMod the first and then install any subsequent packages on top of it).
12. Once installation has finished, return to the main menu and select Reboot, then System. The device will now boot into CyanogenMod.
Click to expand...
Click to collapse
Have you installed the adb/fastboot program? Do a Google search for adb/fastboot for windows. Then verify that you have your moto E USB drivers downloaded and installed. You should be able to enter adb commands when that is set up. To verify that adb is working and that your device is recognized you type: adb devices
That should give you a set of numbers and letters, if so then your device is recognized, continue with the commands from your guide.
The YouTube video will walk you through step by step with a visual guide instead of trying to make sense of written instructions, just emulate the operators' actions following the video and you can't go wrong.
Sent from my SCH-I535 using Tapatalk
ipzma said:
Found instructions on CyanogenMod Wiki - wiki.cyanogenmod.org/w/Install_CM_for_surnia[/url
but only got as far as step 5. What terminal on my computer? Command Prompt? I typed adb reboot bootloader into Command Prompt but it said adb command is not recognized.
Unlocking the device
1. Make sure your computer has working fastboot and adb.
2. Enable USB debugging on the device.
3. Enable OEM unlock in the Developer options settings on the device. (Note: Not all devices have this setting, so continue with next step if yours does not.)
4. Connect the device to the computer through USB.
5. From a terminal on a computer, type the following to boot the device into fastboot mode:
adb reboot bootloader
6. Once the device is in fastboot mode, verify your PC sees the device by typing fastboot devices
* If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
* If you see "no permissions fastboot", try running fastboot as root.
7. From the same terminal, type the following command to obtain your bootloader unlock code:
fastboot oem get_unlock_data
8. Visit the Motorola Bootloader Unlock website and follow the instructions there to obtain your unlock key and unlock your bootloader.
9. If the device doesn't automatically reboot, reboot it from the menu. It should now be unlocked.
10. Since the device resets completely, you will need to re-enable USB debugging on the device to continue.
Installing recovery using fastboot
See All About Recovery Images for more information about custom recoveries and their capabilities.
1. Make sure your computer has working fastboot and adb.
2. Download recovery -- you can directly download a recovery image using the link below, or visit twrp.me to obtain the latest version of TeamWin Recovery Project for your device.
Recovery: Downloadmd5: 5fdfe1871589c0a152f3f7e541b6c892
3. Connect the Moto E 2015 LTE to the computer via USB.
4. Make sure the fastboot binary is in your PATH or that you place the recovery image in the same directory as fastboot.
5. Open a terminal on your PC and reboot the device into fastboot mode by typing
adb reboot bootloaderor by using the hardware key combination for your device while it is powered off.
6. Once the device is in fastboot mode, verify your PC sees the device by typing
fastboot devices
* If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
* If you see "no permissions fastboot", make sure your UDEV rules are setup correctly.
7. Flash recovery onto your device by entering the following command:
fastboot flash recovery your_recovery_image.imgwhere the latter part is the filename of the recovery image.
8. Once the flash completes successfully, reboot the device into recovery to verify the installation. Boot to recovery instructions: Hold Volume Down & Power simultaneously. On the next screen use Volume Down to scroll to recovery and then use Volume Up to select.
* Note: Some ROMs overwrite recovery at boot time so if you do not plan to immediately boot into recovery to install CyanogenMod, please be aware that this may overwrite your custom recovery with the stock one.
Installing CyanogenMod from recovery
1. Make sure your computer has working adb.
2. Download the CyanogenMod package for your device that you'd like to install to your computer.
Optional: Download 3rd party applications packages, like Google Apps which are necessary to download apps from Google Play.
3. Place the CyanogenMod .zip package, as well as any optional .zip packages, on the root of /sdcard:
* Using adb: adb push filename.zip /sdcard/
Note: You can copy the .zip packages to your device using any method you are familiar with. The adb method is used here because it is universal across all devices and works in both Android and recovery mode. If you are in recovery mode, you may need to ensure /sdcard (sometimes called Internal Storage) is mounted by checking its status in the Mounts menu. If you have booted regularly, USB debugging must be enabled.
4. If you are not already in recovery, boot to recovery mode now.
* Hold Volume Down & Power simultaneously. On the next screen use Volume Down to scroll to recovery and then use Volume Up to select.
5. In Team Win Recovery Project, select menu choices by tapping on the appropriately labelled button.
6. Optional (Recommended): Select the Backup button to create a backup.
7. Select Wipe and then Factory Reset.
8. Select Install (if you're running Cyanogen recovery this is Apply Update).
9. Navigate to /sdcard and select the CyanogenMod .zip package.
10. Follow the on-screen notices to install the package.
11. Optional: Install any additional packages you wish using the same method (if you are installing multiple packages, install CyanogenMod the first and then install any subsequent packages on top of it).
12. Once installation has finished, return to the main menu and select Reboot, then System. The device will now boot into CyanogenMod.
Click to expand...
Click to collapse
Sorry, I meant to tell you that the command prompt is where you type your commands.
Sent from my SCH-I535 using Tapatalk

[Tutorial][Recovery][Root] Intex Aqua Music [Mediatek MT6735]

Hi there!!
Well I was trying to root this phone since a month but due to lack of developers, it wasn't possible. So I tried and at last succeeded in rooting and porting TWRP recovery for Intex Aqua Music.
I tried to elaborate every step as much as I can so the tutorial becomes user friendly for everyone.
Disclaimer: Rooting immediately voids your phone's warranty, you should consider very carefully whether you need to gain root privileges. And this tutorial will format your phone. So backup you important files at the very first.
Tutorial
First download all the files which i left and the end of the thread and proceed with the tutorial.
First of all you need to install ADB Drivers.
Once drivers are installed, you need to enable USB Debugging in your phone.
(goto phone settings->About phone->scroll down and you’ll see an entry labelled ‘Build number.’ Keep on tapping till you see a prompt that says ‘You are now a developer)
Now in phone settings you will see a new option called Developer Options.
Now goto Developer Options and enable OEM Unlocking(for unlocking the bootloader so you can flash the TWRP recovery) and USB Debugging.
Now connect you phone with usb cable to computer and open the adb and fastboot folder which you downloaded.
Then open command prompt there(shift+right click) and type:
Code:
adb devices
You will see a popup on you phone screen, Select allow and ok
Now you will see your device listed there in command prompt.
Now type the following commands:
Code:
adb reboot bootloader
Phone will switch off and go into bootloader. Then type
Code:
fastboot oem unlock
Now you phone will ask for confirmation. Use Volume UP Button to select yes then type
Code:
fastboot continue
.
Now your device will reboot(it will take some time so don't worry)
Now once your phone boot up you will see its formatted and bootloader will be unlocked.
Now again goto setting and enable USB Debugging like before and connect you phone with pc.
Now copy the recovery.img from recovery zip which you downloaded to adb and fastboot folder.
Then in adb command prompt type the following commands like before
Code:
adb reboot bootloader
Wait for the phone to go into bootloader mode, then
Code:
fastboot flash recovery recovery.img
fastboot continue
Now twrp is flashed in your phone. Now to root your device copy the supersu zip to you phone.
Switch off your mobile, then press Volume Up + Power button together then choose recovery mode with Volume UP Button and
press Volume Down Button.
Now phone will boot into TWRP recovery mode.
Click Install and choose the Super Su zip from file manager then install it.
The click reboot and once your phone boots up its rooted now.
Enjoy!
Thanks button will be appreciated if the tutorial works for you.
Thanks
Thanks man, helpful

[ROOT][GUIDE][NOOB-FRIENDLY]Unlock Bootloader + Root for Lenovo K8 Plus

How to unlock bootloader & get root for Lenovo K8 Plus
**********Pre-requirements***********
1. Make sure you have 70% charge or more then that.
2. Follow all steps correctly otherwise you will end up with a bricked phone.
3. I'm not responsible for any damage to your phone.
4. Make sure that you have installed usb drivers.
5. Download ADB & Fastboot Drivers
Steps to Unlock Bootloader
1. First of all, enable the Developer Option
To Enable the Developer Option, Go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"
2. Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging
3. Download and Extract the Downloaded ADB fastboot Zip file on your phone.
4. Now connect your phone to Computer using USB Cable.
When you connect your Phone to Computer, please wait until all the drivers get installed.
5. In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click
Now type the command in your command window
Code:
adb devices
6. If you see a pop up to allow USB Debugging on your phone, Click OK
Now type the command below to reboot your phone to bootloader
Code:
adb reboot bootloader
7. Once your phone reboot into bootloader, make sure your phone shows the bootloader locked and then type the command below to make sure fastboot drivers are installed properly.
Code:
fastboot devices
8. This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue, you must fix your drivers so that your phone is listed under fastboot devices.
9. If the phone has been recognized by the command above, proceed to unlock the bootloader with the following command:
Code:
Remember that this step will wipe EVERYTHING off the phone
Code:
fastboot oem unlock
10. After the above command has finished executing, run the following
Code:
fastboot reboot
The phone will reboot. Wait until the phone has fully booted up into Android.
Root method
Note:- All credits for it goes to @topjohnwu for his amazing magisk
Requirements:-
1. Make sure you are on latest September patch firmware.
2. Download patched_boot.img created from magisk mangaer.
Instructions:-
1. Connect up your phone then type:-
Code:
adb reboot bootloader
2. Copy patched_boot.img in adb folder.
Now type
Code:
fastboot flash boot patched_boot.img[/url]
3. Open up you device & install magisk manager from [url=https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445]here[/url]
Voilla you're rooted.
Mod Edit
Duplicate thread is closed
malybru
Senior Moderator

[ROOT][GUIDE][NOOB-FRIENDLY]ROOT+UNLOCK BOOTLOADER for Lenovo K8 Plus

How to unlock bootloader & get root for Lenovo K8 Plus
**********Pre-requirements***********
1. Make sure you have 70% charge or more then that.
2. Follow all steps correctly otherwise you will end up with a bricked phone.
3. I'm not responsible for any damage to your phone.
4. Make sure that you have installed usb drivers.
5. Download ADB & Fastboot Drivers
Steps to Unlock Bootloader
1. First of all, enable the Developer Option
To Enable the Developer Option, Go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"
2. Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging
3. Download and Extract the Downloaded ADB fastboot Zip file on your phone.
4. Now connect your phone to Computer using USB Cable.
When you connect your Phone to Computer, please wait until all the drivers get installed.
5. In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click
Now type the command in your command window
Code:
adb devices
6. If you see a pop up to allow USB Debugging on your phone, Click OK
Now type the command below to reboot your phone to bootloader
Code:
adb reboot bootloader
7. Once your phone reboot into bootloader, make sure your phone shows the bootloader locked and then type the command below to make sure fastboot drivers are installed properly.
Code:
fastboot devices
8. This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue, you must fix your drivers so that your phone is listed under fastboot devices.
9. If the phone has been recognized by the command above, proceed to unlock the bootloader with the following command:
Code:
Remember that this step will wipe EVERYTHING off the phone
Code:
fastboot oem unlock
10. After the above command has finished executing, run the following
Code:
fastboot reboot
The phone will reboot. Wait until the phone has fully booted up into Android.
Root method
Note:- All credits for it goes to @topjohnwu for his amazing magisk
Requirements:-
1. Make sure you are on latest September patch firmware.
2. Download patched_boot.img created from magisk mangaer.
Instructions:-
1. Connect up your phone then type:-
Code:
adb reboot bootloader
2. Copy patched_boot.img in adb folder.
Now type
Code:
fastboot flash boot patched_boot.img[/url]
3. Open up you device & install magisk manager from [url=https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445]here[/url]
Voilla you're rooted.
Mod Edit
Duplicate thread is closed
malybru
Senior Moderator

[GUIDE] ROOTING and UNROOTING MI A1

Okay I have made this thread after seeing a lot of people facing issues for rooting and unrooting. First of all this is not my work. @jashancheema and others should be credited. This guide is only for Oreo users.
Rooting:
1. Download adb and fastboot drivers on your PC.
OR
Download Platform Tools and extract the contents to a folder
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
2. Enable developer options on your phone
Settings>System>About Phone>Tap on Build Number 5 to 6 times until a message appears "You are a developer" (It may ask for your PIN/Password if any)
3. Go back to your developer options>Enable OEM Unlock>Enable USB Debugging>Disable Automatic Updates
4. Download patched boot image
For Dec patch https://www.androidfilehost.com/?fid=962157660013069123
For Jan patch https://www.androidfilehost.com/?fid=962157660013071407
and place the patched_boot.img file after extracting to the platform tools folder.
5. By holding Shift button, Right click on an empty space in the platform tools folder> Open Command prompt (Open Windows Power Shell if you are using Win 10)
6. Connect your phone to PC via Usb cable
7. Type in CMD adb devices (OR ./adb devices if you are on Win 10) Your device will be shown.
8. Disconnect from USB cable and shut down your phone.
9. Download and install latest magisk manager apk on your phone.
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
10. Press volume down+Power button simultaneously until you see fastboot screen.
11. Connect your device to your PC via cable and enter the commands on CMD
Code:
fastboot devices
Code:
fastboot oem unlock
Code:
fastboot boot patched_boot.img
(Use ./fastboot..... if you're on Win 10)
12. Your device will be booted. Go to magisk manager and click on Install using direct method. Reboot once again and you will be rooted.
UNROOTING
So far, according to me, the best method to unroot is to install stock rom.
1. Download miflash tool and install it on your PC.
http://api.bbs.miui.com/url/MiFlash
2. Download the latest stock rom (Jan Patch Stable) and extract it on your PC
http://en.miui.com/download-333.html
3. Uninstall all the magisk modules and reboot.
4. Uninstall magisk completely and reboot.
5. Connect the phone in fastboot mode to PC and flash the stock rom via miflash. Remember to check the "save data" option.
You will be unrooted.
It appears this guide has already been posted here:
https://forum.xda-developers.com/showpost.php?p=75040045&postcount=1
Please search before posting to avoid duplicate topics.
Thread closed.

Categories

Resources