One of the issues with rooting your device is the inability to update your phone via OTA. Any security patches or software updates are lost due to your bootloader being unlocked.
Because OTA updates are designed for stock firmware, there may be issues with the installation of the software updates. While you can easily ignore this, OTAs are important.
OTAs are more than just security patches and software updates. Many OEMs want package new features and bug fixes that improve the experience. This is why you do not want to ignore OTA.
Step 1: Flash the Factory Images
To properly install the update, you have to return to your original firmware (the way it was before you made any changes). In the system partition on your phone, you only need to reinstall the stock boot image. Otherwise, if you're unsure about whether or not you are rooted with a systemless root method
For those new to the process, we have a guide that breaks down all the steps. We even use some of the links for the factory images of some popular smartphones commonly used by the rooting community. Start from Step 6, as you do not need to re-unlock your bootloader, and make sure you download the image for the firmware version you are currently on.
Once ROMs, root, and more importantly, TWRP. TWRP so you can flash the OTA update and re-root. TWRP.
Now, you need the OTA file from the OEM. This is a ZIP file for firmware version for the OTA update. Typically, you will find this on the manufacturer's official website.
If you can not find the OTA file on the OEM's website, you have two more options. First, you can tap the OTA update notification on your phone, let's download the OTA, but do not install it yet. Instead, look for the OTA file with a root file explorer. Most phones will store this file in / cache from the root partition, while others will store it in / data / data or on your internal storage partition in a folder named .ota .
If you can ' t find the OTA file on your phone after downloading it, try searching through the threads in XDA. XDA has Android phone, and there is a good chance someone posted the file.
Either way, you'll need to move the file onto your computer. Once you've done that, boot back into TWRP. You can use a button combination (usually power and volume down when your phone is shut down), but this varies between devices.
On your computer, install ADB and Fastboot, then open a command prompt or Terminal window and redirect to the ADB and Fastboot directory.
Now, connect your device to your computer using a USB cable (preferably the OEM cable). Open Settings, Select Developer Options, and enable USB debugging. Select "OK" on the "Allow USB debugging" popup.
On your computer,
"device." If you do not see this or if it appears, "unauthorized," unplug and replug your USB cable and make sure to select "OK" on the popup.
If everything looks correct, input the following command :
adb reboot recovery
Your device will restart and open up TWRP. When you reach the main menu, select "ADB Sideload."
On your computer, input the following:
Step 4: Flash the Magisk ZIP
After you restart the system, double check that the update was installed correctly. Open Settings and choose "System." Select "About phone" and find the build number. The build number should be the same as the update version.
Now it's time to re-root. Make sure Magisk ZIP file is still on your phone's SD card or internal storage. If not, open your Magisk Manager app and select "Install," then tap "Install" again on the prompt, and finally, choose "Download ZIP only."
Repeat the instructions in Step 3 to reboot back into the recovery. When you reach TWRP's main menu, select "Install" and choose the Magisk ZIP. Swipe right on the slider to install Magisk.