Here is the official Magisk support for Samsung Galaxy S10!
While Galaxy S10 lineup has just been on shelves for a couple of weeks, the Android development community has successfully rooted Galaxy S10 phones. In the latest Galaxy S10 phones, Samsung has used the A-only system-as-root setup, which means that the boot image only contains the kernel binary without ramdisk inside.
Similar setup already deployed on Android-Pie devices, the solutions for those phones are rather simple: add a ramdisk section into the boot image and then hexpatch the kernel to use ramdisk. But, with the new Galaxy S10, the bootloader will only load the kernel binary to the memory, meaning the kernel will use the system partition as the root directory. There is no option, but to install Magisk onto the recovery partition.
Gain Root Access On Samsung Galaxy S10
- This guide is ONLY for Galaxy phones with Android 9.0 pre-installed, currently, they are S10 series and A50. If you are using other Galaxy phones, please follow the specific installation guide.
- Your Galaxy S10 must have an unlockable bootloader, meanings that all Exynos devices are supported, whilst S10 devices for the Northern American market (Snapdragon SOCs) do not work.
- Installing Magisk WILL trip KNOX
- For the first time of installing Magisk, it requires a full data wipe, so a backup is recommended.
Unlock Bootloader Galaxy S10
Normally I will not show the instructions for this, but since things had changed drastically over previous Samsung devices, so I figure these steps below.
- Enable bootloader unlocking in Developer options → OEM unlocking
- Power off your phone and press Bixby + Volume Down buttons while connecting your phone into the computer to boot into download mode.
- Long press Volume Up button to unlock the bootloader of your Galaxy S10. The process will wipe your data and then reboot.
Quickly complete the initial setup. Skip through all the steps since your phone will be wiped again later when installing Magisk. Remember to connect the device to the internet in the setup process!
Activate developer options, and confirm that the OEM unlocking option is still enabled. You can now install unofficial images in download mode,:D. Read on the rest of this guide.
Install Magisk in Recovery
To boot to a system using Magisk, you will have to enter recovery every time. Since both Magisk and recovery are in the same partition, what you end up when entering recovery is determined by how long you press Volume Up button.
Once you install Magisk to the recovery partition, by default it will enter the system with Magisk enabled. If you want to boot into recovery mode, continue holding the Volume Up button until you see the recovery screen.
After your Galaxy S10 is unlocked the bootloader, you will see the following splash screen every time your phone reboots.