Samsung Galaxy S8 has two variants, the Exynos version, and Snapdragon version. The rooting process is different for both models. The Snapdragon version (US) comes with a locked boot-loader and there is no OEM unlock option in the mobile settings. There is no way that Samsung will allow unlocking boot-loader of these devices, officially. So rooting of these mobiles will require some technical knowledge. Whereas Exynos models have OEM unlock option and the rooting process is pretty easy. Nonetheless, rooting both models is a pretty straightforward procedure if you follow the steps properly.
Note: Root of Samsung Galaxy S8 or S8 plus will void the warranty of your device. If used inappropriately, your device may malfunction or can brick permanently. I am not responsible for any damages incurred. Proceed at your own risk. Rooting will break some core (trips Knox) features of your device, ex: Samsung Pay. You will not be able to use these features if you root your device.
- Samsung mobile USB Drivers on your PC
- ADB Drivers: Download ADB drivers from here and install on your PC, preferably as C:\adb
- Backup your device to PC. Rooting may erase all the user data.
- Odin – The most popular flashing tool for Samsung devices.
- Prince Cosmy Odin – Modded Odin required to root snapdragon devices or devices which does not support regular Odin
- Enable Developer options on your mobile. If you can’t see developer options in settings, navigate to settings – about phone – software information – build number. Tap on build number for 7 times and you will see a message as ‘you are a developer now’. Now you can see developer options in device settings. In developer options, enable USB debugging (for both Exynos and Snapdragon devices).
Root Samsung Galaxy S8 Exynos Models
Once you have followed the above steps, you need to download additional files required for rooting the Exynos model of Samsung Galaxy S8. Download the following files and save it to your PC.
Note: Enable OEM unlock in developer options before proceeding further.
- Power off your device and reboot your device into download mode. To do this hold Bixby button, volume down button, and power button altogether. You may get a warning message, press volume up to continue further.
- Connect your device to PC via USB cable while your phone is in download mode.
- Open Prince Cosmy Odin. Select AP option in it and load the TWRP file you have downloaded before and press start. After successfully flashing the TWRP file, you will see the message PASS on prince cosmy Odin. Your phone will reboot automatically once the process is completed.
- After the reboot, copy Magisk or SuperSU zip files in your device’s internal storage. Copy No dm-verity file too.
- After copying these files, switch off your mobile and reboot your device into recovery mode. To do this hold Bixby button, volume up and power button together. Your phone will reboot into TWRP recovery mode.
- In recovery mode, wipe the data. To do this choose the option FORMAT DATA and type yes to proceed. After wiping the data, select install from TWRP options. Navigate to the file No dm-verity and install it. After installing No dm-verity, flash either Magisk or SuperSU according to your choice. I would suggest flashing
- Reboot the device and done. You have successfully rooted the device.
Possible errors and fixes:
Error # 1
Device screen unresponsive in TWRP recovery.
Fix: Repeat the procedure again. Use the latest Prince Cosmy Odin File to flash TWRP. Also, check for appropriate TWRP file suitable for your device.
Error # 2
Device shows 0 mb (zero) internal storage.
Fix: Format or wipe data from TWRP recovery.
Root Samsung Galaxy S8 Snapdragon Models
Snapdragon devices do not have OEM unlock in developer settings and you can’t unlock the bootloader by any official means. This makes rooting of Snapdragon S8 devices little difficult.
Note: Rooting Samsung Galaxy S8 Snapdragon model requires technical skill and some knowledge about executing command prompts. Proceed with extreme caution. Follow the process if you are familiar with the terms and steps mentioned in the procedure. Refrain yourself if you aren’t sure. This procedure works with devices on Android Nougat (Android 7 only). If you have upgraded to Android Oreo, there is still no stable rooting process.
Along with the regular rooting files, you need to download the following files to proceed further.
- SamPWND Firmware – Extract and save to any folder on your PC. In this file, you will see 4 major files namely AP, BL, CP, and CSC.
- SamPWND Zip
- System Root Zip – Copy this file where you have installed ADB drivers and extract the file.
- Reboot your phone into download mode by pressing Bixby button, volume down and power rocker.
- Open Prince Cosmy Odin and load the SamPWND firmware files you have extracted into the respective options in it. (Select slot AP and load the AP file you got after extracting the firmware file. Do the same for other slots).
- Connect your phone to PC and open regular Odin.
- In Odin select the options force reset time, auto reboot, re-partition, nand-erase, and bootloader Press start in Odin and flashing of firmware will begin.
- After completion of flashing, the device will reboot into recovery. Select reboot now in Odin.
- After rebooting, you will see the device as a new device which shows to set up the phone. Complete the setup and accept RSA keys. You will get a popup to accept authorize adb and accept RSA keys. If you did not get any popup, disconnect the device from PC and reconnect it. You will now get the popup.
- Open the folder where you have installed ADB drivers and on your PC press SHIFT + CONTROL + RIGHT CLICK MOUSE and select open cmd here (Windows 7 or below) or select open PowerShell Window here (Windows 8 or 10).
- After opening the command prompt type ‘adb push systemroot /data/local/tmp/systemroot’ (without quotes). Once the process is finished type ‘adb shell’
- Once your device is in shell type ‘chmod -R 0777 /data/local/tmp’.
- Now type ‘setsid su’. This will give you some long messages and the device will be in an unstable root shell.
- To get out of the unstable root shell type exit in adb You may require to execute this command few times to exit the unstable shell mode and enter into a stable mode.
- Once you have successfully entered into stable mode type ‘echo /data/local/tmp/systemroot/remount2.sh > /sys/kernel/uevent_helper’ to mount the system-readable and writable (r/w). To confirm if the system is mounted r/w type mount 15-20 seconds after the previous command.
- After verifying remount, type ‘sh /data/local/tmp/systemroot/root.sh’ Your ADB command may give some errors. Ignore them and let the procedure complete.
- After finishing the procedure your system will reboot automatically.
- Done, your snapdragon model S8 is rooted successfully. You will see SuperSU installed on your device.
Note that this rooting method is little unstable and can give you some errors. The process is also little tedious which requires technical skill. To make this rooting process stable, you must further continue few steps.
- Keep your device connected to PC.
- Download and install Flashfire from Google Play Store on your mobile device.
- Copy SamPWND.zip file in your device’s internal memory (root directory)
- Open the Flashfire app and permit the root access. In SuperSU settings, enable PRO features. After enabling PRO features exit the application and reopen it. After reopening, select Flashfire from allowed superuser apps and select force user root.
- Open flashfire app and select flash firmware package (system.img.ext4). In the options select ZIP or OTA and enable mount /system read/write. Enable wipe and press check in the corner.
- Now make sure that the following options are in the same order as mentioned below:
- The options must be in the same order. If not you can hold the options, drag them and place according to the order. Make sure they are in the same order as mentioned. That is very crucial.
- Now disable SuperSU inject and enable EverRoot.
- Now press the lightning icon at the bottom.
- After finishing the procedure the device will reboot automatically.
Congratulations, your device is rooted and is very stable.