How to Root Samsung Galaxy S9 (SM-G960U) using Magisk

In this guide, we will be showing you how to root Samsung Galaxy S9 (SM-G960U) using Magisk. The Samsung Galaxy S9 is a powerful device but rooting it with Magisk can take it to the next level. This guide will walk you through two different methods of rooting your Samsung Galaxy S9 (SM-G960U) using Magisk. The first method involves using TWRP recovery, while the second method does not require TWRP recovery.

Rooting your Samsung Galaxy S9 with Magisk gives you the ability to customize the software on your device in ways that are not possible with a standard firmware. It also allows you to remove any system apps that you do not need or use, freeing up valuable storage space. Additionally, rooting your device can increase its performance by allowing you to overclock the CPU frequency, which in turn can increase RAM usage.

How to Root Samsung Galaxy S9 (SM-G960U) using Magisk
How to Root Samsung Galaxy S9 (SM-G960U) using Magisk

In this article, we will cover everything you need to know to successfully root your Samsung Galaxy S9 using Magisk, including the necessary tools and software, as well as step-by-step instructions on how to complete the process. So, whether you are a beginner or an advanced user, this guide will provide you with all the information you need to root your Samsung Galaxy S9 using Magisk.

Install TWRP on Samsung S9

Before we begin with the rooting process for your Samsung Galaxy S9, it’s important to first install TWRP recovery on your device. TWRP, or Team Win Recovery Project, is a custom recovery software that allows you to install custom ROMs, take backups, and perform other advanced tasks on your device.

If you haven’t already installed TWRP on your Samsung Galaxy S9, don’t worry. We have a guide that will walk you through the process of installing TWRP in a safe and easy way. It’s important to install TWRP before rooting your phone as it will be needed to flash the Magisk software to root the device.

To learn how to install TWRP on your Samsung Galaxy S9, please follow this link for a detailed step-by-step guide: “Install TWRP on Samsung Galaxy S9“. This guide will help you through the process of installing TWRP safely and easily, ensuring that you don’t run into any issues during the rooting process.

Root Samsung Galaxy S9 with TWRP and Magisk

In this section, we’ll show you how to root your Samsung Galaxy S9 using TWRP recovery and Magisk. By following the step-by-step instructions provided, you’ll be able to gain full control over your device and unlock its full potential. This process will allow you to install custom ROMs, remove unwanted system apps, and improve the performance of your device. So, let’s get started and root your Samsung Galaxy S9 using TWRP and Magisk.

  • Download Magisk Zip file and keep on internal storage.
  • Reboot your phone to TWRP recovery mode. (Press Bixby, Volume Up and Power Button)
  • Press install button on TWRP recovery.
Install TWRP Recovery
  • Select your downloaded Magisk Zip file.
Flash File With TWRP Recovery
  • After select the file swipe to flash.
File Flash on TWRP Recovery
  • After successfully flash reboot phone to system.
Reboot System From TWRP Recovery
  • After phone restart you found new Magisk App.
Magisk APK

Root Samsung Galaxy S9 without TWRP

In this second step, we’ll show you how to root your Samsung Galaxy S9 using Magisk without using TWRP recovery. It’s important to follow every step carefully, so be sure to read through the instructions before getting started. By the end of it, you’ll be able to unlock the full potential of your device without using TWRP and using Magisk for the rooting process.

Unlock Bootloader on Samsung Galaxy S9

Before you can start unlocking the bootloader on your Samsung Galaxy S9, you’ll need to first enable developer options and OEM unlocking. Here’s how:

Unlock Developer options on Samsung Galaxy S9

  • Go to Phone Settings on your Samsung Galaxy S9.
  • Scroll down and select About phone.
  • Next, select Software information.
  • Tap on the Build number 7 times.
  • A pop-up message will appear asking for your phone’s lock screen password.
  • Enter your password and you will now see the “Developer mode has been enabled!” toast message on the phone screen.”

Enable the OEM unlocking option on Samsung Galaxy S9

  • Go to Phone Settings on your Samsung Galaxy S9.
  • Scroll down and select Developer options.
  • Toggle ON the OEM unlocking option.
Please note that once you turn on the OEM unlock option, your phone will perform a factory reset and restart. This process may take a few minutes, so please be patient and wait for the device to fully restart before setting it up again. Once the device has restarted, the bootloader will be instantly unlocked.

Download Stock Firmware for Samsung Galaxy S9

In this section, we will be showing you how to download the stock firmware for your Samsung Galaxy S9. To do this, you will need to visit the website Before you begin, make sure you have both your phone’s model number and CSC/regional code ready.

To find your phone’s model number, go to Settings -> About phone.

Download LZ4

Make sure to download LZ4 tool to extract the firmware file, as the LZ4 tool will be used to extract the .img.lz4 file and convert it to .img file.

Preparing Patched Boot Image file

  • Extract the downloaded your phone official firmware file on your computer.
  • Open the extracted folder and locate the AP firmware file.
  • Extract the AP firmware file.
Samsung Firmware Extract
  • Now you will find boot.img.lz4 file.
Samsung Firmware AP File Extract
  • Copy boot.img.lz4 to LZ4 Installed folder.
LZ4 File

Next, Converting .img.lz4 to .img

  • Open the lz4 extracted folder.
  • Drag the boot.img.lz4 file to the lz4.exe program.
LZ4 File Extract
  • This step converts the file to .img format.

Patching the boot.img Firmware File using Magisk

  • Download and install Magisk App on your phone.
  • Open the Magisk App.
  • Tap on the INSTALL button.
Patch File on Magisk App
  • Then Select and Patch a File.
  • Choose the Boot.IMG File
Patch Boot.img on Magisk App
  • Once the file is selected, tap on LET’S GO.
  • The patched file can be found in the Downloads folder.
  • Connect your phone to the PC and copy the magisk_patched.img file on your PC.

Convert .img File to .tar

  • Download and Install 1st 7zip software in your PC.
  • Locate the magisk_patched.img file on your computer.
  • Right-click on the file and select “7zip” from the menu.
  • Click on “Add to archive” from the options that appear.
Add archive file 7zip
Add archive file 7zip
  • Archive formats select tar and click OK.
Convert to .tar Extension
Convert to .tar Extension
  • Finally, we have built the magisk-patched.tar file for ODIN (AP).

Boot your Samsung Galaxy S9 into Download Mode

  • First, power off your phone.
  • Connect your phone to your PC while holding the Bixby, Volume Down and Power keys together.
  • You will now see the Bootloader screen.
  • Press the Volume Up key to enter Download Mode.

Now that your Samsung Galaxy S9 is in download mode, you are ready to install Magisk using Odin and root your device. Follow the next step carefully to ensure a successful installation.

Flashing Magisk_Patched.tar using the Odin Flash Tool

Before proceeding with the flashing process, it is important to note that this process will erase all data on your phone. Therefore, it is recommended to backup all important files and data before proceeding. Additionally, ensure that your phone is fully charged and that you have the latest version of Odin on your PC.

Here are the steps to flash Magisk_Patched.tar using Odin:

  • Run the Odin Tool on your PC/Laptop.
  • Connect your Samsung Galaxy S9 device to the PC/Laptop using a USB cable.
  • In Odin, ensure that the ID:COM section lights up blue, indicating that the port is working properly.
Odin Tool Port
  • In Odin, select the following firmware files:
    • BL: Select the firmware file starting with “BL”
    • AP: Select the Magisk Patched AP firmware file (magisk_patched.tar)
    • CP: Select the firmware file starting with “CP”
    • CSC: Select the firmware file starting with “HOME_CSC”
Odin Tool
Odin Tool
  • Click Start to begin the flashing process.
  • Wait for the process to complete, the first boot may take some time.
  • Once the process is complete, your Samsung Galaxy S9 should now be rooted with Magisk.

After your phone is on, you will notice that the Magisk app is installed on your device. This app will assist you in managing the root permissions on your phone.

Congratulations, you have successfully rooted your Samsung Galaxy S9 (SM-G960U) using Magisk. Now you have access to a wide range of root-only apps and features that can help you customize and optimize your device. Remember to always be careful when granting root permissions to apps, as it can potentially harm your device if not used responsibly. Enjoy your newly rooted device.

Bishal Pokhrel

My name is Bishal Pokhrel and I write about Magisk, Magisk Modules, Custom ROMs, Android tricks, and Cloud Servers. With extensive experience, I share my insights on these topics.

Leave a Comment