[Xiaomi Black Shark 2 Guides, News, & Discussion] KM7:
Rooting Black Shark 2 / 2 Pro the Correct & Easy Way with Video Guide, TWRP & OTA Fix

Happy Ramadan everyone! I wanted to do this tutorial for sometime, and now I finally made it.

This guide made for Black Shark 2 / 2 Pro Global version, but in theory it should work with any version if the bootloader is unlocked. (ANDROID 9 ONLY)

Warning: Before you start, backup your phone data as this would wipe your phone!

Do this at your own risk, I'm not responsible if you break your phone!

Prerequisites:

- Update your phone to the latest version possible.

- Download ADB & TWRP Installer from here.

- Download latest Magisk Manager from here.

You can find the video guide here, however please note that this video is not a complete tutorial you would need to follow the written guide.

On Phone:

1- Enable Developer Options. (Go to Settings, then System, then About Phone, then Tap on Build number 7 times, then enter your password if needed)

2- Enable OEM unlocking. (Go to Settings, then System, then Developer Options, then enable OEM unlocking option, then enter your password if needed)

3- Enable USB Debugging. (Go to Settings, then System, then Developer Options, then enable USB Debugging option)

On PC:

4- Run ADB+TWRP Installer. (On driver installation popup click Next, then Install and Finish)

5- Connect your Phone to PC using USB cable.

On Phone:

6- When Allow USB debugging popup, tap OK. (Tick Always allow from this computer)

On PC:

7- Make sure google drivers installed correctly and that your PC can see your Phone. (Android ADB Interface)

8- Open Command Prompt as administrator. (Type CMD in Windows search bar, then right click on Command Prompt ‘cmd’ and click on Run as administrator)

9- In CMD type:

cd c:\adb

Then press Enter key.

10- In CMD type:

adb devices

Then press Enter key. (If you can see a Device ID with ‘device’ written on its right, then continue to next step, if not then recheck your drivers. If you see a Device ID with ‘unauthorized’ written on its right, then go back to step 6)

11- In CMD type:

adb reboot bootloader

Then press Enter key. (To enter Fastboot mode)

On Phone:

12- Make sure you see Fastboot mode on your phone screen. (With big green START on top)

On PC:

13- Disconnect and reconnect your Phone to PC using USB cable then make sure google drivers installed correctly and that your PC can see your Phone. (Android Bootloader Interface)

14- In CMD type:

fastboot devices

Then press Enter key. (If you can see a Device ID, then continue to next step, if not then recheck your driver setup)

15- In CMD type:

fastboot oem bs_unlock

Then press Enter key. (This will unlock the bootloader, if you see an error make sure that your model is supporter)

16- In CMD type:

fastboot getvar current-slot

Then press Enter key. (This will show you which slot you’re currently using, noted it down)

17- In CMD type:

fastboot boot twrp.img

Then press Enter key. (This will boot TWRP, if it doesn’t work the first time, then force reboot your phone and repeat steps 11-17, you can skip step 15-16 if you already performed them)

On Phone:

18- Make sure TWRP is booted on your phone.

On PC:

19- In CMD type:

adb pull /dev/block/bootdevice/by-name/boot_a stock_boot_a.img

Then press Enter key. (This will copy the stock boot_a.img to your current directory)

20- In CMD type:

adb pull /dev/block/bootdevice/by-name/boot_b stock_boot_b.img

Then press Enter key. (This will copy the stock boot_b.img to your current directory)

On Phone:

21- In TWRP, go to Reboot, then system.

22- Download and install Magisk Manager APK. (Once the phone booted correctly)

On PC:

23- In CMD type:

adb push stock_boot_X.img /sdcard/Download

Then press Enter key. Change ‘X’ to your current slot from step 16, mine was ‘stock_boot_a.img’. (This will copy your stock boot.img to your phone’s Downloads directory)

On Phone:

24- Run Magisk Manager, tap on the first INSTALL button on the top right, when it asks you to Install Magisk tap INSTALL, then tap on Select and Patch a File, and choose your stock_boot_X.img from ‘Download’ directory. When it’s done it will create a new file in your ‘Download’ directory named magisk_patch.img. (Don’t tap Reboot, just tap back and close the App)

On PC:

25- In CMD type:

adb pull /sdcard/Download/magisk_patched.img

Then press Enter key. (This will copy the patched boot.img to your current ‘adb’ directory)

26- In CMD type:

adb reboot bootloader

Then press Enter key. (To enter Fastboot mode)

27- In CMD type:

fastboot flash boot_x magisk_patched.img

Then press Enter key. Change ‘X’ to your current slot from step 16, mine was ‘boot_a’. (This will flash Magisk to your boot)

28- In CMD type:

fastboot reboot

Then press Enter key. (This will reboot your phone)

On Phone:

29- Run Magisk Manager, check if Magisk is installed and you have two green ticks on the left.

Congratulations! Now you have successfully rooted your Black Shark 2 / 2 Pro !

Full Restore for Black Shark 2 Pro Global "DLT-H0" Fix most phone's issues and restore it to factory state. This also fixes OTA updating issues. (ONLY WORKS IF THE BOOTLOADER IS UNLOCKABLE / ANDROID 9 BOOTLOADER ONLY)

Download this zip file DLTR1908193OS00MP2, extract it and run flash_all.bat as administrator while your phone is connected to your PC and you must have USB Debugging enabled. (Right mouse click on 'flash_all.bat', then run as Administrator)

This can be done on a phone while on OS or Fastboot mode, and therefore this assumes that you followed steps 1-10 above.

Full OTA Global Factory Image for Black Shark 2 Global "SKW-H0" - Fix most phone's issues and restore it to factory state. This also fixes OTA updating issues. (make sure you choose the correct version 'OS00 or OS01')

1- If you have one of these versions 'SKYW1907040OS01MP3 -> SKYW1909192OS01MP4 -> SKYW1911121OS01MP5 -> SKYW2003090OS01MP6' then download this zip file SKYW2003090OS01MP6. If it doesn't work for some reason then download this file instead SKYW1907040OS01MP3.

If you have one of these versions 'SKYW1907031OS00MP3 -> SKYW1909192OS00MP4 -> SKYW1911010OS00MP5 -> SKYW2003090OS00MP6' then download this zip file SKYW2003090OS00MP6.

2- Rename km_update.zip to update.zip and move it to “ota” directory in your phone.

3- Dial this from your phone

*#*#1027#*#*

Then press "LOCAL UPDATE" and start updating your device. (You might need to do this twice)

Special thanks to:

Bave Lee for Bootloader Unlocking Code.

wzsx150 for BS2 TWRP.

topjohnwu for Magisk.

Snoop05 for ADB Installer Code.

wga0 for his great work for Black Shark community.

ripiad for providing Black Shark 2 firmwares.

PS: I put a lot of time and effort in making this guide, if you want to copy it to somewhere else, then at least give credit!