This guide shows how to root Samsung Galaxy S8 Snapdragon models step by step with the SamPWND method from XDA Developers. Part one flashes the SamPWND firmware with Odin and runs a root script over ADB. Part two uses FlashFire to turn that first, less stable root into a smooth and stable rooted stock ROM.

Warning: This method is for the Snapdragon Galaxy S8 only. The Odin options used in part one, including Nand Erase All, wipe the device completely. Rooting can void your warranty and stop official OTA updates. Back up everything and follow the steps at your own risk.

SSamsung Galaxy S8 Root (Snapdragon) Step by Step

Requirements

  • A Snapdragon Samsung Galaxy S8
  • A Windows PC with ADB installed and the Samsung USB driver
  • A USB cable
  • The SamPWND files, systemroot.zip and both Odin versions listed under Downloads
  • The stock firmware of your choice for part two (you need its system.img.ext4 file)
  • The FlashFire app from the Play Store and SuperSU (used in part two)

Downloads

How to Root Samsung Galaxy S8 Snapdragon: Part One

Flash the SamPWND firmware with Odin

  1. Download the SamPWND_S8_4File_Firm, SamPWND_S8.zip and systemroot.zip files, plus Odin Prince Comsy and normal Odin (see Downloads).
  2. Extract SamPWND_S8_Firm to a folder of your choice (the desktop works). Open Odin Prince Comsy and load each file into its matching slot: BL into BL, AP into AP, CP into CP and CSC into CSC.
  3. In Odin, open Options and select Auto Reboot, Re-Partition, F. Reset Time, Nand Erase All and Phone Bootloader Update. This will wipe the device.
  4. Put the Galaxy S8 into Download mode with Power + Volume Down + Bixby. A screen warns you about flashing a custom OS; press Volume Up to continue.
  5. Press Start in Odin. Flashing begins and can take up to 10 minutes.
  6. When it is complete, the device reboots into recovery mode. Select Reboot system now.

Set up ADB

  1. Complete the phone’s setup and accept the device RSA key to authorize ADB. If the popup does not appear, or you dismissed it, disconnect and reconnect the phone, then accept it.
  2. Extract the systemroot.zip downloaded earlier into your ADB install directory (usually C:\adb).
  3. Open the ADB directory, press Ctrl + Shift + Right Click and select Open command window here.
  4. With the command window open and the extracted systemroot folder in your ADB directory, you can begin.

Run the root script

  1. Type: adb push systemroot /data/local/tmp/systemroot
  2. When that completes, type: adb shell
  3. In the shell, type: chmod -R 0777 /data/local/tmp
  4. The next step is tricky. Type: setsid su. The output looks like this: dreamqltesq:/ $ /system/bin/sh: No controlling tty: open /dev/tty: No such device or address /system/bin/sh: warning: won't have full job control. You are now in a very unstable root shell.
  5. To make the shell stable, type exit. This drops you into a stable root shell, but it will probably take a few tries, because most commands sent to the unstable shell come back as gibberish. The shell keeps switching between the standard user and the root user each time you press Enter, until exit runs successfully and you land in the stable shell. Note: because the shell changes between user and root after each command, exit must be run while the shell is root. Otherwise you drop to a user shell instead of a root shell and have to start again with setsid su.
  6. Once you have a stable root shell, type: echo /data/local/tmp/systemroot/remount2.sh > /sys/kernel/uevent_helper. This remounts system and rootfs as read/write.
  7. Wait 10 seconds and type: mount. Confirm that system is mounted as read/write.
  8. Now run the script: sh /data/local/tmp/systemroot/root.sh. Some errors will be shown in ADB; do not worry about them, everything is going as expected.
  9. When the script finishes, the device reboots and part one is done. Root has been achieved, but it is not the smoothest or most stable. Part two fixes that.

Part Two: Make Root Stable with FlashFire

  1. With the device still connected to the computer, copy the SamPWND_S8.zip downloaded in part one to the device’s internal storage or SD card.
  2. Extract the stock firmware of your choice to your desktop. Take the system.img.ext4 file from it and copy it to the device’s internal storage or SD card.
  3. Download FlashFire from the Play Store.
  4. Open FlashFire and grant root permissions (this must be done with airplane mode enabled), then exit FlashFire.
  5. Open SuperSU, go to Settings, scroll to the bottom and enable Pro features. Reopen SuperSU, select FlashFire and force user ROOT.
  6. Open FlashFire again and select Flash firmware package. Choose system.img.ext4.
  7. Select Flash ZIP or OTA and choose the SamPWND ZIP (the original instructions name it SamPWND_G950U.zip). Under the options for the ZIP, make sure to select Mount /system read/write.
  8. Select Wipe, make sure the top three options are selected, and press the check mark in the right-hand corner.
  9. This step is very important. The actions must be in this order, from top to bottom: Wipe, Flash firmware package, Flash ZIP or OTA. If the order is different, press and hold Wipe as you would an app icon and drag it to the top of the list. Check the order before you press the flash button.
  10. Select EverRoot on the main screen and, under its options, disable Inject SuperSU.
  11. Press the lightning bolt to begin flashing, and wait for the device to reboot.
  12. Your Galaxy S8 now runs a smooth, fast and stable stock ROM with root.

Credits

Original article on XDA Developers: https://forum.xda-developers.com/galaxy-s8/development/samsung-galaxy-s8-root-snapdragon-t3659305

All credit goes to The Crew:

SamPWND ROM for the Samsung Galaxy S8: XDA DevDB Information

Item Details
Contributor STF_TimelessGoD
ROM OS version 7.x Nougat
ROM kernel Linux 4.x
Status Stable
Current stable version 1.0
Stable release date 2017-08-19
Current beta version N/A

Related Guides

FAQ

Will this method wipe my Galaxy S8?

Yes. The Odin options in part one, including Nand Erase All, wipe the device, and part two wipes it again in FlashFire. Back up everything first.

Does this work on the Exynos Galaxy S8?

No. This guide is for the Snapdragon Galaxy S8 only. Use files for your exact model.

Will rooting void my warranty?

It can. Rooting and flashing modified firmware can void the warranty and stop official OTA updates from installing normally.

https://droid-developers.com/wp-content/uploads/2017/09/Samsung-Galaxy-S8-Root-Snapdragon-Step-by-Step-1024x576.jpghttps://droid-developers.com/wp-content/uploads/2017/09/Samsung-Galaxy-S8-Root-Snapdragon-Step-by-Step-150x150.jpgFahim MahmudHow ToRootSamsung Galaxy S8 RootThis guide shows how to root Samsung Galaxy S8 Snapdragon models step by step with the SamPWND method from XDA Developers. Part one flashes the SamPWND firmware with Odin and runs a root script over ADB. Part two uses FlashFire to turn that first, less stable root into a...Android Help,Troubleshooting  & Stock Rom