How to | Galaxy S9 (SM-G960F & F/DS) Root Android PIE

Search This thread
Sep 30, 2017
15
6
24
Apeldoorn
Exynos variants such as International (F), International Dual(Hybrid)-SIM (F/DS),

i am not responsible if anything goes wrong. You are still the one who tryed to flash the files. Even tough this should work as it worked for me and some friends.


Hello XDA

This is my first post (sorry if one already exists)

Today i am going to tell you how to root the Galaxy S9 International on android 9 Pie on stock touchwiz rom.

First of all download all these files;

Prince comsy odin: https://xdaforums.com/android/software/patched-odin-3-13-1-t3762572
Team win recovery https://xdaforums.com/galaxy-s9/samsung-galaxy-s9--s9-cross-device-development/twrp-exynos-t3763464
ElementalX Kernel https://elementalx.org/devices/samsung-galaxy-s9/
No verity encrypt: https://androidfilehost.com/?fid=962187416754474353
Magisk 18.0 https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Now for the root

First you need to unlock OEM, you can do this in developer options,
If there is no developer options you need to enable this
you can do this in: Settings>About Phone > software information > click 5 times on build number.


When you unlock OEM everything on your phone gets wiped so make a backup!!

When the wiping is complete, turn off your phone and go to download mode (Vol down + Bixby + Power)

Then connect the phone to your pc and start odin

In odin go to options, and disable f.reset and auto reboot.

Then press the AP button and select the TWRP image you downloaded.

When TWRP is flashed, force reboot your phone (Vol down+ Power) when it is powered off quickly press Vol Up + Bixby + Power to get into recovery
Swipe to allow modifications. And format /data
Then reboot into recovery.

When rebooted mount USB Storage and connect the phone to the PC
Then you can click&Drag the other files (elemental, Magisk, No verity)

When the files are on the phone, go to install and search for the files you just put on the phone.

Install in this order:
Flash No-Verity-Encrypt
Then flash the custom kernel (ElementalX)
And as last flash Magisk.

When you did this, you want to Factory reset, Wipe cache and Dalvik.

Then you can reboot the phone, and install it.


(It is possible that you stay at the boot logo for a long time (Not the galaxy s9 one but the next one) What you need to do then is let it boot for 5 minutes, then force reboot (vol down+Power) and then the phone boots fine)

Again, just to make sure check if OEM is still unlocked (sometimes this get locked again)

Please note that when you do this, you lose secure folder and other functions, also is the knox tripped (0x1)
But the Fingerprint, Irisscanner and samsung account works.

SOMETIMES IT IS NEEDED TO INSTALL THE MAGISK MANAGER MANUALLY, YOU CAN JUST DOWNLOAD THE FILE FROM THE LINK IN THIS POST

Hope this helps.
If you do have any questions, please do the following first;
Note any errors that odin or your phone gives you. I want to help you, but i do need to know what is going wrong.

(Sorry for my bad english)
 
Last edited:

sarius02

Senior Member
Feb 19, 2017
75
30
Karlsruhe, Germany
So you won't need RMM-state_bypass on pie anymore?!? Seems hard to believe...
And why exactly you need to flash that custom kernel, which benefits does this bring with it?
 
Sep 30, 2017
15
6
24
Apeldoorn
So you won't need RMM-state_bypass on pie anymore?!? Seems hard to believe...
And why exactly you need to flash that custom kernel, which benefits does this bring with it?

If you dont use the custom kernel, you will get RMM error.
Iris scanner wont work, Fingerprint wont work, Samsung account wont work. When you reboot the phone you get a little "Bootloop" at the lockscreen (Screen flashes and is unusable and your pattern isn't saved)
I dont know what else breaks because i cant even get past the lockscreen with stock kernel

(Also you get better performace and battery life)

Hope this helps :)
 

effry

Senior Member
Mar 14, 2011
481
124
Milan
Samsung Galaxy S9
Last samsung phone i rooted was the note 3, and i remember that doing that "tripped" knox 0x1 and this basically voided the warranty. It's the same with S9? is there some non-reversible change that happens to the phone when rooting?
 
Sep 30, 2017
15
6
24
Apeldoorn
Last samsung phone i rooted was the note 3, and i remember that doing that "tripped" knox 0x1 and this basically voided the warranty. It's the same with S9? is there some non-reversible change that happens to the phone when rooting?

Yes, the knox will still trip (0x1).
In europe, when you can show that the root is not the cause of the problem, they have to fix it under warranty.
Also there are some functions you will lose (forever)
Knox,
Samsung pass,
Samsung Pay,
S-Health(you can fix this one with a build.prop tweak)
Secure folder

If you plan to use one of these (exceptpt s-health) It is better not to root your phone (there are still external app's you can use if you plan to root your phone)
 
  • Like
Reactions: effry

CarlKav17

New member
Feb 3, 2019
1
0
I have this lock screen flashing bootloop issue, what is the fix? I have tried factory restores but get the same results once I set a lock/passcode and reboot. Samsung Account and Bixby also do not work as you mentioned.
 
Sep 30, 2017
15
6
24
Apeldoorn
You can use TGPkernel then,

Some phones have this issue, some not.
I have seen that 3 friends of mine it worked, and also on 3 not, so this is a very weird issue

What was the fix with them is to install TGPkernel




@co9

The only way i know is to install a custom kernel,
Otherwise you have to download latest stock rom, and flash this using odin.
wich changes your recovery.img and boot.img, aswell as the kernel. so you have to flash this all over again
 
Last edited:
  • Like
Reactions: co9

co9

Member
Aug 5, 2016
10
3
Google Pixel 6
Thanks for the answer. I already have a custom kernel. So if i always want to have the latest Samsung firmware i have to flash it through odin and do the whole root procedure again?
 

danw84

Senior Member
Jan 5, 2013
108
40
I tried this method but now everytime I reboot the phone my bluetooth paired device are lost. They also get deleted if I turn ON and OFF the Airplane mode. Anyone else having the same issue ?
 

BrownEye02

Senior Member
Jun 12, 2010
209
11
Is anyone else experiencing an issue where the password, pin, or pattern set before setting up fingerprint scanning acts like what was entered is incorrect, not allowing you to setup fingerprint scanning?
I've tried setting up fingerprint scanning on initial setup as well as skipping and trying after the phone has been setup but had no luck. What ever I set initially will not work when I'm prompted later on when trying to setup fingerprint scanning or tying to access other secure features. The phone just prompts to try again acting like I entered in the wrong password, pin, or pattern. I've even tested by setting up a REALLY simple password with no luck.

I have confirmed in the settings that Elemental is installed.

Edit: I did find this thread https://xdaforums.com/galaxy-s9/help/root-galaxy-s9-exynos-9-0-android-pie-t3884267. I tried the no-verity-opt-encrypt-6.0.zip that was suggested in some posts but had no success. I've also tried the TGPKernel but had not change in the issue. I am able to setup fingerprint scanning on fresh firmware install but after installing TWRP and everything else the above issue happens.
 
Last edited:

menhammer

Member
Mar 2, 2019
7
10
Install steps Magisk 18 for Samsung S8/S9 Android Pie 9

Install steps Magisk 18 for Samsung S8/S9 Android Pie 9

See lot of people have trouble, here are the steps to do, dont get confused keep it simpel nothing more

1 Flash the last pie build (sammobile.com) with Odin, restart mobile, let system install
2 Enable unlock OEM (settings->about phone->softare information-> tap a few times on build so developer options tab is in settings go there and enable oem unlock)
3 Flash TWRP (twrp.me/) with Odin and immediately after the flash hold bixby+volume up+ powerbutton to go to TWRP
4 In TWRP, swipe to allow modifications.
5 Go to Wipe - Format (yes). Press the back button all the way to home of TWRP
6 Reboot recovery
7 In TWRP, swipe to allow modifications, click on install button and flash dm-verity v1 and press the back button all the way to home of TWRP
8 Click on install button and flash magisk v18
9 Reboot system and let system (android 9) install enter pin, google account and so on...
10 Install magisk app
11 Open Magisk, if you see there is no root/magisk installed, no worry!! Just download Magisk from the Magisk app to the download folder on your phone, restart your phone adn go to TWRP and install Magisk again.

Done!

Used Software:
Odin3_v3.13.1
Twrp 3.2.3.2
no-verity-opt-encrypt-samsung-1.0
Magisk-v18.1
MagiskManager-v7.0.0
 
Last edited:
  • Like
Reactions: agentsandy007

Emre67511

Senior Member
May 28, 2016
173
51
Install steps Magisk 18 for Samsung S8/S9 Android Pie 9

See lot of people have trouble, here are the steps to do, dont get confused keep it simpel nothing more

1 Flash the last pie build (sammobile.com) with Odin, restart mobile, let system install
2 Enable unlock OEM (settings->about phone->softare information-> tap a few times on build so developer options tab is in settings go there and enable oem unlock)
3 Flash TWRP (twrp.me/) with Odin and immediately after the flash hold bixby+volume up+ powerbutton to go to TWRP
4 In TWRP, swipe to allow modifications.
5 Go to Wipe - Format (yes). Press the back button all the way to home of TWRP
6 Reboot recovery
7 In TWRP, swipe to allow modifications, click on install button and flash dm-verity v1 and press the back button all the way to home of TWRP
8 Click on install button and flash magisk v18
9 Reboot system and let system (android 9) install enter pin, google account and so on...
10 Install magisk app
11 Open Magisk, if you see there is no root/magisk installed, no worry!! Just download Magisk from the Magisk app to the download folder on your phone, restart your phone adn go to TWRP and install Magisk again.

Done!

Used Software:
Odin3_v3.13.1
Twrp 3.2.3.2
no-verity-opt-encrypt-samsung-1.0
Magisk-v18.1
MagiskManager-v7.0.0

Don't root this phone without flashing a custom kernel or a modified stock kernel. It will drain battery and reduce the performance or even crash the system.
Look in the TWRP thread there it is explained why you shouldn't do it.
 

nrc04

Member
Jan 13, 2018
9
1
Hi all,
I tried to flash twrp but never succed.
S9+ last firmware from samsun android 9 pie (update from smart switch)
Then option developper activated, no oem unlock menu found,
boot into download mode and there is written oem unlock desactivated so ok
with odin try to flash (ap, reboot freset unchecked)
then fails and message in red on the phone :
"only official released binaries are allowed to be flashed recovery"

History :
I was in galaxy project oreo, i wanted to upgrade with pie, but reboot cycle
so rescue with odin and original oreo firmware, then update to pie

thanks for help
regards
 

menhammer

Member
Mar 2, 2019
7
10
To get the oem unluck button visible.

After fresh install, go to time/date in settings, choose manual and set the date 1 mount prior (march will be februar)

Than go to software update, choose manual en click on dowload updates manually.

Restart your phone and the oem unlock button in developer options will be there

Cheers
 

nrc04

Member
Jan 13, 2018
9
1
thank's for answering,
Update done, reboot ok but still not oem options in developpers section :(
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Update: This method works!

    https://www.youtube.com/watch?v=-Fx8sD8yqpw

    https://highonandroid.com/android-smartphones/how-to-root-galaxy-s9-s9-on-android-9-0-pie/


    Cheers!

    necessary files needed:
    TWRP recovery for your Galaxy S9/S9+ https://twrp.me/
    ODIN program for Windows https://highonandroid.com/odin-drivers/
    Dr. Ketan OEM Issue Zip file https://download.highonandroid.com/...65_PIE_Root_for_OEM_issue_devices_V5.zip.html

    In this tutorial I will be showing you how to root the Samsung Galaxy S9/S9 Plus on latest Android 9.0 Pie firmware.

    Step 1. Check Settings->About phone and check the model number of your Galaxy S9 or S9 Plus, it should be one of the listed below:

    Galaxy S9 – SM-G960F, SM-G960F/DS, Korean SM-G960N, Chinese Qualcomm SM-G9600

    Galaxy S9 Plus – SM-G965F, SM-G965F/DS, Korean SM-G965N, SM-G9650 Qualcomm

    NOTE: U.S. models or any Qualcomm models ending in “U” cannot be rooted using this method as the bootloader is locked. My best suggestion is to sell it and buy an international model that has unlocked bootloader, any of model numbers above will work.

    NOTE 2: For Chinese Qualcomm models SM-G9600 or SM-G9650, you can follow this tutorial step-by-step only thing different is the version of TWRP recovery, which is NOT provided in this tutorial(but simple Googling should help you find it).

    Step 2. Tap on “Software information” and check that you have Android version “9”. Then also tap on the “Build number” about 5 times until you have enabled developer options.

    Step 3. Tap the back button TWICE and scroll to the bottom of the menus, you should see a new menu option called “Developer options”. Tap on that.

    Step 4. If it has been at least 7-days since you bought your Galaxy S9 or S9 Plus, you should see an option for “OEM unlocking”. If you can turn it on without wiping data, go ahead and do it. If it asks you to do a factory reset, make sure to read the instructions below and also watch my video tutorial that explains step-by-step.

    IMPORTANT: If your Galaxy S9 or S9 Plus wants to do a factory reset, you can do it but DO NOT LET IT REBOOT! Then you won’t be able to flash TWRP recovery and wait 7-days MORE! This just happened to me on my new S9 so I have to wait 7-days AGAIN. How to fix? When your phone reboots after selecting factory reset, IMMEDIATELY HOLD DOWN Volume Down, Bixby, and Power buttons for about 5 seconds until you see a warning screen. Again, if you miss this new crucial step on phones that ask the user for factory reset, YOU WILL HAVE TO WAIT 7 MORE DAYS!

    Step 5. Hold down Volume Down, Bixby, and Power button together for about 15 seconds until your phone resets into ODIN warning mode like shown below.

    Step 6. Hit the Volume Up button then connect a USB cable from your phone to a Windows computer. (Samsung ODIN software only supports Windows so if you don’t have a Windows computer, just go borrow your friends for a few hours.)

    Step 7. Download the necessary files needed:

    Unzip the ODIN zip file into a folder and keep the reset of files in zip format.

    Step 8. Run the ODIN program(after unzipping). If you see a random COM number highlighted in sky blue color like shown above, you already have drivers installed. If not(most people), run the Samsung USB driver program you downloaded earlier and it should install the drivers for you. Once installed, you should see it. If not, try unplugging/re-plugging your USB cable.

    Next choose “AP” then choose the TWRP img.tar file you downloaded for your Galaxy S9 or S9+. Before hitting start button, read below!!!

    IMPORTANT: As soon as you hit Start, it only takes 5 seconds for the ODIN program to finish flashing TWRP recovery on your Galaxy S9 or S9 Plus. As soon as your phone reboots(screen goes blank), YOU NEED TO HOLD DOWN VOLUME DOWN, BIXBY, AND POWER BUTTONS TOGETHER! If you mess up this step, YOU WILL HAVE TO REINSTALL STOCK FIRMWARE(unroot) AND HAVE TO WAIT 7 DAYS. If this is your first time, please watch the video tutorial and master the buttons before attempting!!!

    Step 9. If you have successfully flashed TWRP and rebooted into TWRP, you should see a screen like above, tap on “Keep Read Only”.

    Step 10. Grab some bepis and pat yourself on the back as you just finished the hardest part of the root. This is because Samsung has implemented new security measures where if the phone reboots into system, it won’t let you install TWRP recovery. We can bypass this simply by not letting the phone reboot into system rather into TWRP recovery like we did in Step 8.

    Next we will wipe the device completely so tap on “Wipe”.

    Step 11. Choose “Format Data” and type “yes” to wipe EVERYTHING on your Galaxy S9 or S9 Plus. This is required to wipe the device and also get rid of system encryption in order to root your Galaxy S9 or S9 Plus properly.

    Step 12. IMPORTANT, go back to the home menu, choose “Reboot” menu then choose “Recovery” to reboot TWRP. This is VERY MUY IMPORTANTE because again if you reboot normally, you will have to re-install stock firmware and wait 7 days.

    Step 13. Once rebooted into TWRP, choose “Keep Read Only” also.

    Step 14. Connect your Galaxy S9 or S9 Plus to your computer and copy over the OEM Issue Devices ZIP file to your phone.

    Step 15. Use the Install menu to install the OEM Issue ZIP file. For AROMA isntaller, choose ROM installer and make sure to check on “Patch for OEM issue”!!! Once installed, reboot system(finally!).

    Step 16. You should see welcome screen, sign in.

    Step 17. If you don’t see Magisk Manager app in the app drawer, download Magisk Manager APK on your phone and install it.

    Step 18. If you see “Magisk is not installed”, re-install OEM Issue Devices ZIP file by re-booting into TWRP. If you don’t know how to do this, watch 11:25 of the video tutorial that shows you how step-by-step. If you see no errors like that skip to Step 19.

    Step 19. If you see “update available” DO NOT INSTALL THE UPDATE! ONLY UPDATE Magisk Manager app(the one below it) as the Magisk used for rooting on Galaxy S9 or S9+ is different from official Magisk and it may brick your phone! But if you got to this point, you are fully rooted!

    Step 20. Verify you have 100% full root by running any rooted apps such as Titanium Backup app on the Play Store and you should see a Superuser request window pop up like shown above.

    Congratulations! You have fully rooted your Samsung Galaxy S9 or S9 Plus on latest Android 9.0 Pie!

    Credits – Dr. Ketan on XDA for the OEM Issue Zip file and Highonandroid.com
    2
    Exynos variants such as International (F), International Dual(Hybrid)-SIM (F/DS),

    i am not responsible if anything goes wrong. You are still the one who tryed to flash the files. Even tough this should work as it worked for me and some friends.


    Hello XDA

    This is my first post (sorry if one already exists)

    Today i am going to tell you how to root the Galaxy S9 International on android 9 Pie on stock touchwiz rom.

    First of all download all these files;

    Prince comsy odin: https://xdaforums.com/android/software/patched-odin-3-13-1-t3762572
    Team win recovery https://xdaforums.com/galaxy-s9/samsung-galaxy-s9--s9-cross-device-development/twrp-exynos-t3763464
    ElementalX Kernel https://elementalx.org/devices/samsung-galaxy-s9/
    No verity encrypt: https://androidfilehost.com/?fid=962187416754474353
    Magisk 18.0 https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

    Now for the root

    First you need to unlock OEM, you can do this in developer options,
    If there is no developer options you need to enable this
    you can do this in: Settings>About Phone > software information > click 5 times on build number.


    When you unlock OEM everything on your phone gets wiped so make a backup!!

    When the wiping is complete, turn off your phone and go to download mode (Vol down + Bixby + Power)

    Then connect the phone to your pc and start odin

    In odin go to options, and disable f.reset and auto reboot.

    Then press the AP button and select the TWRP image you downloaded.

    When TWRP is flashed, force reboot your phone (Vol down+ Power) when it is powered off quickly press Vol Up + Bixby + Power to get into recovery
    Swipe to allow modifications. And format /data
    Then reboot into recovery.

    When rebooted mount USB Storage and connect the phone to the PC
    Then you can click&Drag the other files (elemental, Magisk, No verity)

    When the files are on the phone, go to install and search for the files you just put on the phone.

    Install in this order:
    Flash No-Verity-Encrypt
    Then flash the custom kernel (ElementalX)
    And as last flash Magisk.

    When you did this, you want to Factory reset, Wipe cache and Dalvik.

    Then you can reboot the phone, and install it.


    (It is possible that you stay at the boot logo for a long time (Not the galaxy s9 one but the next one) What you need to do then is let it boot for 5 minutes, then force reboot (vol down+Power) and then the phone boots fine)

    Again, just to make sure check if OEM is still unlocked (sometimes this get locked again)

    Please note that when you do this, you lose secure folder and other functions, also is the knox tripped (0x1)
    But the Fingerprint, Irisscanner and samsung account works.

    SOMETIMES IT IS NEEDED TO INSTALL THE MAGISK MANAGER MANUALLY, YOU CAN JUST DOWNLOAD THE FILE FROM THE LINK IN THIS POST

    Hope this helps.
    If you do have any questions, please do the following first;
    Note any errors that odin or your phone gives you. I want to help you, but i do need to know what is going wrong.

    (Sorry for my bad english)
    2
    To get the oem unluck button visible.

    After fresh install, go to time/date in settings, choose manual and set the date 1 mount prior (march will be februar)

    Than go to software update, choose manual en click on dowload updates manually.

    Restart your phone and the oem unlock button in developer options will be there

    Cheers
    1
    Yes, but you want to use tgpkernel then otherwise it will not work (problems described abovel

    https://www.androidfilehost.com/?w=files&flid=288240
    1
    Last samsung phone i rooted was the note 3, and i remember that doing that "tripped" knox 0x1 and this basically voided the warranty. It's the same with S9? is there some non-reversible change that happens to the phone when rooting?

    Yes, the knox will still trip (0x1).
    In europe, when you can show that the root is not the cause of the problem, they have to fix it under warranty.
    Also there are some functions you will lose (forever)
    Knox,
    Samsung pass,
    Samsung Pay,
    S-Health(you can fix this one with a build.prop tweak)
    Secure folder

    If you plan to use one of these (exceptpt s-health) It is better not to root your phone (there are still external app's you can use if you plan to root your phone)