[Xiaomi Black Shark 2 Guides, News, & Discussion] h1run3:
Just made a new account to confirm the rooting process works. Thank you to KM7, tuannghia1985, wga0, and everyone else for discussing this. The steps I've done were a bit different but I'll try to put it here anyway in case anyone is wondering... (for reference, I'm using Black Shark 2 Global Version just bought a few hours ago)

Prerequisites:

- Your Black Shark 2 must be Global Version. (I haven't tried for China Version yet, might make a separate tutorial if I get my hands on one)

- You will need to prepare Android SDK Platform Tools to execute the needed ADB and Fastboot commands for rooting your device.

- You will also need to be familiar with Command Prompt, or at least comfortable with inputting/copy-pasting commands there.

- You must be ready to forfeit your device in the event that you make a mistake from what's written below. Of course, I cannot be held liable for bricked devices. I am merely restating the procedure I've used for rooting my Black Shark 2 device.

Tutorial:

0. Backup all your files, data, media, etc. You will 100% have to do a factory reset at some point during the rooting process, deleting all user data in your phone.

1. Download the SKYW1907040OS01MP3 Stock Factory Image from OP's post (1.4 GB). It should be named update.zip. Then move the downloaded file to the folder named "OTA". You will find it together along with all the major folders in your internal storage such as "Android" and "Downloads".

2. Dial "*#*#1027#*#*" (without the quotes) on your phone app. A System Update interface should show up, giving you options to adjust the OTA server and to do a local update.

3. Click on the Local Update Button and you should see a percentage in red text pop up. Wait for it to reach 100%.

4. After it reaches 100%, it will tell you to reboot your phone. Now reboot your phone normally.

5. After it reboots, it will go back to your home screen (and not to recovery mode, at least for my version). Go to Settings > System > System Updates.

6. Check the build number (e.g. SKYW1907040OS01MP3) your phone will update to. Two things should happen, in order:

i. You update from "S01MP3" to "S01MP4"

ii. You update from "S01MP4" to "S01MP5"

Once you finish updating from "S01MP4" to "S01MP5" (as long as your current version number ends in S01MP5, you're good), proceed to Step 9. Otherwise, repeat Step 7 and 8.

7. Scroll to the bottom of the update notes and click Update. Ensure your phone is connected to the Internet, and let it download the update.

8. Once the phone downloads it, after a short while, you'll be offered to reboot your device to apply the changes. Reboot the phone, and wait til the phone returns to your home screen and finishes applying the system update entirely.

Notes: During my first try, my update notes were first in Japanese and asked to install around 300 MB. After it finished downloading, it told me the update either failed or got corrupted. Afterwards, the update notes were all typed in English.

9. Patch the stock_boot.img downloaded from OP's post using the latest version of Magisk Manager downloaded from the Magisk GitHub page.

10. You will eventually get another image file named "magisk_patched.img" in the same directory as stock_boot.img (assuming you don't change the filename of the patched image file). Transfer the file to your PC with ADB and Fastboot ready, and place the file inside the platform-tools folder.

11. Activate "Developer Mode" (around 8 taps on About Phone > Build number should do the trick) and enable both "OEM unlocking" and "USB debugging".

12. Connect your phone to your PC via MTP (adjust this via the notification that pops up when you connect it), and click OK when a pop-up appears on your phone for USB debugging.

13. Open Command Prompt inside the platform-tools folder (i.e. cd C:\Users\...\platform-tools) and input the following command in your command prompt:

14. Your phone should then turn off then boot up into what's called Fastboot Mode. Input the following command next:

and:

15. Restart the phone normally by inputting this command:

16. Your phone should go into the logo like a normal reboot, and then suddenly give you an option to either do a Factory Reset, or Cancel. Choose the Factory Reset, and wait for your phone to boot up normally again.

17. Set up your device minimally, then FULLY repeat Steps 11, 12, and 13. Reopen Command Prompt if necessary.

Note: if you've been doing things correctly up to this point, the "OEM unlocking" option should be unselectable, as it will say "Bootloader has already been unlocked".

18. Your phone will boot up again in Fastboot Mode. This time, input the following command:

19. Command Prompt will then respond with the following:

or:

Take note of this for the next step

20. Take note that if you changed the filename of the patched image file in Step 10, you will have to adjust the next set of commands accordingly. If your current slot is at "a", then input the following command:

Otherwise, if your current slot is at "b", then input the following command instead:

21. Restart your phone normally by repeating Step 15.

22. Install Magisk Manager again from Step 9, and confirm that your phone has indeed installed Magisk, and is now rooted.

Congratulations! You've made it to the very end of the tutorial. If you have any questions, feel free to reply to this post and I will respond as soon as I can. Thank you! :o