Install TWRP and Root Samsung Galaxy S10/S10+/S10e using Magisk

0

Install TWRP and Root Samsung Galaxy S10/S10+/S10e using Magisk

TWRP for Galaxy S10 devices is now available. In this guide, we will show you how to install TWRP recovery and Root Samsung Galaxy S10, Galaxy S10+, and Galaxy S10e using Magisk.
A week ago, we published a tutorial on how to root Samsung Galaxy S10 devices without TWRP. Not so long after that, TWRP 3.3.0-0 was releasedand official support was added for the Exynos Galaxy S10 and Galaxy S10+. So, if you wish to install TWRP, you can do so now and also root your Galaxy S10 device simultaneously using Magisk.
Before you head to the instructions below to install TWRP and root Samsung Galaxy S10/S10+/S10e with Magisk, let us take some time to understand why rooting your Galaxy S10 series is tricker and different than the traditional method that we have been using so far.

Rooting Samsung Galaxy S10 Series – Explained by topjohnwu

According to Magisk developer topjohnwu (John Wu), the newer Samsung devices like the Galaxy S10 series use the /system partition as root, instead of the /boot partition. Well, it’s a requirement for every device to be launched with Android 9 to use system-as-root. However, Samsung further implemented more changes in the bootloader, which doesn’t allow the boot.img to load anything other than the kernel binary.
To deal with this, Magisk should now be installed to the /recovery partition. The developer implemented a solution that will detect the button presses/combination to decide in which mode the device should boot into (Unrooted stock OS, Recovery, or rooted OS with Magisk).
Further complications were added with “VaultKeeper”, which is a new bootloader feature implemented by Samsung. It basically is another lock over the OEM lock and re-locks the bootloader after a data wipe. It is only after the first boot after data wipe, that VaultKeeper verifies the OEM Unlockand changes the bootloader state accordingly.
All this has caused a lot of problems when it comes to the development scene and things like TWRP and Magisk Root. However, thanks to topjohnwuand developers like ianmacd, it is now possible to install TWRP and root Samsung Galaxy S10/S10+/S10e with Magisk following a specific set of instructions, as laid below.
How to Install TWRP and Root Samsung Galaxy S10/S10+/S10e using Magisk
Warning & Disclaimer
  • Rooting your phone will wipe the data completely and trip the KNOX counter. This means your phone’s warranty will be void (destroyed) and you will not be able to use apps like Samsung Pay, Secure Folder, etc.
  • Also, it is important to note that you cannot simply install TWRP on Samsung Galaxy S10/S10+/S10e alone, you must also root your device using Magisk simultaneously. And that’s the exact purpose of this guide. We will guide you through the whole procedure.
  • Proceed at your own risk and understanding. Make sure that you follow it very carefully and do not skip any of the instructions. Doing so will soft-brick your device.
  • We shall not be held liable for any damage caused to your device by following this procedure or after it. Also, make sure that you fully understand the procedure before you perform it.

Prerequisites

Before you begin with the instructions to install TWRP and Root Samsung Galaxy S10/S10+/S10e, make sure that you fulfill all the requirements stated below.
  • This procedure will wipe your device completely, including the internal storage, maybe even multiple times. Until you have finished the procedure successfully and booted your phone, do not restore any data. So, make sure that you take a complete backup of all your data stored on the device.
  • A MicroSD card of your choice and a Windows PC.
  • Charge your Galaxy S10 device to a sufficient battery level (above 40% at least). This shall help avoid any sudden shutdowns during the rooting process.
  • Download and install the latest Samsung USB drivers on the PC.
  • Also, download Odin v1.13.1 and extract the package to an easily accessible location on the PC.
  • Important: In order to install TWRP and root, you must first unlock the bootloader. Please visit this guide and follow the bootloader unlocking instructions, then come back here to further install TWRP on Samsung Galaxy S10/S10+/S10e and root it using Magisk.
  • Download the Multi-Disabler zip and transfer it to the MicroSD card before you commence with the procedure.

How to Install TWRP and Root Samsung Galaxy S10/S10+/S10e using Magisk

For your convenience and easy understanding, we have split the instructions into different steps. Make sure that you follow each and every step, and in the given order.

Step 1: Download the Required Files

You must first download all the required files like AP firmware file, TWRP image, and multi-disabler zip.

Step 2: Patch the AP Firmware File and TWRP Image using Magisk Manager

Now, you must patch the extracted AP firmware and TWRP image files using the Magisk Manager on your Galaxy S10 device.
  1. Download the AP firmware and TWRP image files, and transfer them to the device’s storage
  2. Download Magisk Manager v7.1.2 APK and install it on your Galaxy S10 device
  3. Once installed, open the app drawer on the device and launch ‘Magisk Manager’
  4. Tap on the ‘Install’ button
    Tap on the 'Install' button in Magisk Manager
  5. Next, tap on ‘Install’ and select ‘Select and Patch a File’ option
  6. Navigate to the device’s storage and select the AP firmware file first
    Patch the AP Firmware File using Magisk
  7. Magisk will patch the AP firmware file automatically
  8. Repeat step 4 to step 6 again and patch the TWRP image file now
    Patch the TWRP Image using Magisk Manager
  9. Once done, the magisk_patched.tar (patched AP firmware) and magisk_patched.img (patched TWRP image) files will be available in [internal storage]/Download/
  10. Connect your phone to the PC and transfer both the files to an easily accessible location.

Step 3: Replace Stock Recovery Image in Patched AP Firmware File with Patched TWRP Image

At this point, the patched AP firmware file contains the stock recovery. So, we will need to replace it with the patched TWRP image. To do so, follow the instructions below:
Replace Stock Recovery with Patched TWRP Image in AP Firmware File
  1. First, rename the “magisk_patched.img” file to “recovery.img”
  2. Now, open the “magisk_patched.tar” (Patched AP firmware file) using an archive tool like 7zip or WinRAR
  3. Copy the “recovery.img” file to the Patched AP firmware file in order to replace the stock recovery image with the patched TWRP image

Step 4: Install TWRP and Root Samsung Galaxy S10 by Flashing the Patched AP Firmware File

Now, you need to flash the patched AP firmware file to install TWRP and simultaneously root Samsung Galaxy S10/S10+/S10e using Magisk.
  1. Boot your Galaxy S10 device into Download Mode. To do so:
    • Power off the device completely. Then press the Volume Down + Bixby buttons together. While holding the buttons, connect your phone to the PC using the USB cable.
      Install TWRP and Root Samsung Galaxy S10 - Boot into Download Mode
      Image credits: NaldoTech
  2. Go the folder on the PC where the Odin 3.13.1 tool was extracted
  3. Double-click on the ‘Odin3 3.13.1.exe’ executable file to launch the Odin tool
  4. Uncheck ‘Auto Reboot’ under the ‘Options’ tab in Odin
  5. Click on the ‘AP’ button and select the ‘magisk_patched.tar’ file
    Flash Patched AP Firmware File to Install TWRP and Root Samsung Galaxy S10/S10+/S10e
  6. Finally, click on the ‘Start’ button to install TWRP and root your Samsung Galaxy S10/S10+/S10e using Magisk
  7. DO NOT REBOOT YOUR PHONE YET!

Step 5: Boot into TWRP, Flash Multi-Disabler zip, and Format the Data

It is extremely important that your boot your Samsung Galaxy S10 device into TWRP recovery mode to flash the Multi-Disabler zip and format the data (factory reset).
  1. Press Power + Volume Down buttons together to exit Download Mode
  2. As soon as the screen turns off, press and hold the Power + Volume Up + Bixby buttons until the Bootloader Warning screen appears
  3. Once the Bootloader Warning screen appears, release the Bixby and Power buttons, and keep holding the Volume Up button until the TWRP mode appears
  4. In TWRP, tap on the ‘Install’ button
  5. Navigate to the MicroSD card and select the ‘multidisabler-g97x-1.1.zip’ file
    Install Multi-Disabler zip in Galaxy S10 TWRP Recovery
  6. Swipe the button on the screen to flash the Multi-Disabler zip file on your Galaxy S10
  7. Once the file has been flashed successfully, go to ‘Wipe’ > ‘Format Data’.
    Format Data in Galaxy S10 TWRP Recovery
  8. Enter ‘Yes’ in the field to format the data partition/factory reset the device
  9. Finally, go to the ‘Reboot’ menu in TWRP and select ‘Recovery’ to boot your Samsung Galaxy S10 device into rooted OS with Magisk
    Reboot into Rooted OS using Galaxy S10 TWRP Recovery
  10. If you’re prompted with the ‘Install TWRP App’ screen, tap on ‘Do Not Install’
  11. When your device boots into the OS, complete the initial setup and connect it to the internet via mobile data or WiFi
  12. Open the app drawer and launch ‘Magisk Manager’. In case the app doesn’t appear in the app drawer, download the Magisk Manager APK and install it
  13. Magisk Manager will now do the additional setup and the device will reboot upon completion.
That’s it! You have just succeeded to install TWRP and Root Samsung Galaxy S10, Galaxy S10+, and Galaxy S10e using Magisk.

How to Boot Samsung Galaxy S10 into TWRP Recovery or Rooted OS

Since Magisk now resides in the /recovery partition along with TWRP, it is important that you perform different buttons combination to boot your Galaxy S10 into TWRP recovery or rooted OS. So, to boot your phone into:
  • Unrooted System: Press the Power button to power up normally will boot your Galaxy S10 into the Unrooted System.
  • Rooted OS with Magisk: Hold the Power, Bixby, and Volume Up buttons together. Release all the buttons once the Bootloader Warning screen appears to boot your Galaxy S10 into Rooted System with Magisk.
  • TWRP Recovery: Hold the Power, Bixby, and Volume Up buttons together. Release the Power and Bixby buttons and keep holding the Volume Up button when the Bootloader Warning screen appears, to boot your Galaxy S10 into TWRP recovery.

F.A.Q.

  1. A new update for Magisk has arrived, how can I update?
    • It’s easy. Open Magisk Manager and tap on the ‘Update’ button and let it do the rest for you. According to the developer, you can only upgrade Magisk from within the Magisk Manager app, for now.
  2. After performing this procedure and rooting my Galaxy S10, I am not able to use apps like Samsung Pay, Secure Folder, etc. What should I do?
    • You were already warned about this in this tutorial. Rooting/flashing any custom binaries trips the KNOX counter, which means you cannot use any apps that rely on its integrity. And no, restoring the stock firmware will not restore KNOX back to stock.
  3. A new software update has arrived for my device, can I restore the stock AP tar file or upgrade by simply flashing the full firmware via Odin?
    • Restoring the stock AP file will ultimately lead to soft brick. In which case, you will first need to do a full restore via Odin and then factory reset (wipe) the device. When an update arrives, simply download the updated stock firmware from SamMobile, SamFrew, or using the SamFirm tool. Once done, grab the new AP firmware file and also the TWRP image. Then follow step 3, 4, and 5 again to install TWRP and re-root your device
We’d like to thank topjohnwu for developing a proper root solution for Galaxy S10 devices, ianmacd for TWRP recovery, and XDA senior member PiCkLeSfor providing these simple instructions.
So now, you have just been able to install TWRP on Samsung Galaxy S10/S10+/S10e and root it using Magisk. Go ahead and install some root-enabled apps on the device, or use Magisk Hide to cloak root from apps like Pokemon Go, etc.