UMI OS based phones with Efuse partition protection (UMIDIGI S, C2, S2 Pro and new Z1 Pro) can not get root access, patched boot.img files can not be flashed!
Updated: 2021, September 24
What you need:
Driver for Preloader USB VCOM mode: Windows 10 can automatically install it. Please make sure that your Windows is logged in with administrator rights and your computer has a working internet connection when first time connecting your phone.
The same version of SPFT ROM package that you have installed on your device; you can find and download it in the ROM section.
- Charge the battery of your phone to at least 50% before starting this process.
- Your phone must be connected to the internet.
- It is recommended to use a PC/laptop with 64-bit Windows 10 operating system, other Windows versions may not work correctly. 32-bit Windows 7-10 versions are not compatible, 32-bit Windows XP may work but not guaranteed. Your PC must be connected to the internet to be able to automatically download the compatible drivers. You must be logged in as an administrator.
1. Download the Magisk Manager apk file, and copy it to either the internal storage of your phone or to the SD card if you have one installed in your phone.
2. Extract the downloaded ROM package and copy the boot.img file from its folder to the internal storage or SD card of your phone.
3. Install Magisk Manager from the stock File Manager on your phone.
4. Open Magisk Manager on your phone. The app will ask you to install the latest available Magisk-vXXX.zip. Select INSTALL, then select 'Patch Boot Image File'.
5. The next screen is the file manager. If you copied the boot.img file to the internal storage, tap the 3-dot menu button in the top right corner, then select 'Show internal storage'.
Tap the 3-stripe menu button in the top left corner, and select either the internal storage (your phone's name) or the SD card, according to the location of your boot.img file.
Brows for your boot.img file and select it.
6. The ''Flashing'' process will automatically start, and finally a patched_boot.img or magisk_patched.img file will be created in the Download directory of the internal storage of your phone. After a successful process, you will see the following screen.
Select CLOSE and you may exit from Magisk Manager.
Troubleshooting: If the flashing process fails, you can do the followings.
a) Uninstall Magisk Manager
c) Run the app and let it update itself
d) Start again from point 4.
7. Copy the patched boot.img file to your computer. It is recommended to copy it into the ROM folder for easier operation.
Troubleshooting: First you might need to reboot your phone or move the patched_boot.img file to a different location (for example to the root of your phone storage) or the Windows file manager (MTP browser) may not see it in the Download directory.
8. Power off your phone. After your phone's screen turned into black, please wait for more 30 seconds before stepping further.
Advice: If you've never connected your powered off phone to your computer via USB before, first please connect it now for 10 seconds, then disconnect.
9. Extract the SP_Flash_Tool rar file and run flash_tool.exe.
10. Open the scatter file, that you can find in the ROM folder.
11. Leave only the boot line checked, then click on its Location field and brows for the patched boot.img file.
Warning! The next step will void the warranty of your phone! Your seller is allowed to refuse to process any warranty case if your phone contains modified system software.
12. Click on the Download button and connect your phone to a USB port of your computer. The flashing process will start automatically and it needs just a few seconds to be done.*
*At some models you have to press one of the volume buttons while connecting to USB but most of them don't need it and you mustn't press any of the buttons.
13. Now the patched boot.img has been flashed. You may remove the USB cable. Power on your phone and let the Android system boot up.
14. Open Magisk Manager. Now your phone has permanent root access and Superuser is installed.
If you need to unroot your phone, just simply flash the full ROM with the original factory files in Firmware Upgrade mode - your user data will be erased. That will restore the warranty state of your device as well. If you have an Android 9.0 or newer phone, you also need to re-lock the bootloader.
Credits to topjohnwu at forum.xda-developers.com
All the screenshots are captured and the guide is written by me for UMIDIGI users. Unauthorized copy of this content is prohibited.
Please let me know if you find errors or missing info.
Thank you for your attention,
bencebacsi