Hibreak Pro Guide 2: Unlocking the Bootloader and Rooting the Hibreak Pro
Make sure that you have android platform tools and drivers set up on your machine. Again, a guide on how to do so can be found here: https://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/
Refer to my previous guide on how to enable USB debugging on your phone: https://vbh.ai/hibreak-pro-guide-1-debloating-the-hibreak-pro-and-setting-up-private-dns/
1. Unlocking the Bootloader
Note: You must have developer options enabled after following the previous guide. Note 2: Unlocking the bootloader will factory reset your phone.
- Head over to settings.
- Navigate to More Settings > System > Developer Options
- Toggle the OEM Option to on.
- Open a terminal session and execute the following command:
adb reboot bootloader
- Verify that your phone is now in the bootloader mode, by executing the following command:
fastboot devices
Your device should show up in the output. - Run the following command to unlock the bootloader:
fastboot flashing unlock
- Run the following command to unlock the critical partitions (not required really)
fastboot flashing unlock_critical
- The bootloader should now be unlocked. Reboot your phone and set it up.
2. Dumping the Boot Image with MtkClient
Note: This step can be skipped by flashing the boot image I already patched: https://mega.nz/folder/p3gj3CgL#Fe5Ats_P6Z1ayqjS2dUGCw
- Head over to https://github.com/bkerler/mtkclient Follow the instructions for your OS to set it up.
- Turn off your phone. And disconnect the cable from the PC, while still having the cable connected to your phone.
- While holding both the volume buttons, connect the cable to your PC. You should hear a chime indicating that your phone was connected correctly in EDL mode.
- Using the MtkClient GUI, read the boot_a partition to your PC. This will create a boot_a.bin file on your PC.
- Disconnect your phone and reboot it by holding the power button until you see the screen change.
3. Installing Magisk and Patching the Boot Image
- With your phone powered on. Install the Magisk APK on your phone. You can grab it from here: https://github.com/topjohnwu/magisk/releases
- Transfer the boot_a.bin file from your PC to the phone.
- Open the Magisk app and select install and patch the boot image you transferred in the previous step.
- Magisk places the patched boot image into your Download folder. Transfer this file back to your PC.
4. Flashing the Patched Boot Image
- Reboot your phone again into the bootloader with the following command:
adb reboot bootloader
- Run the following commands, replacing the path to the path of the patched boot image you copied over from step 4 in Section 3.
fastboot flash boot_a <path_to_patched_boot_img>
fastboot flash boot_b <path_to_patched_boot_img>
- Reboot your phone with the command:
fastboot reboot
If you now head to the Magisk app, you should see that it says installed. Enjoy root and the shit ton of possibilities such as having Android Auto running, etc.