[Samsung Galaxy S8+ Guides, News, & Discussion] roedel_1:
Hi,

Just rooted my SM-G950F from latest Stock with no prior knowledge yesterday. Things worked out but it's quite a learning curve. Just wanna sum up the necessary steps as of today. Maybe it helps somebody :)

Preps/Requirements:​

because of Odin: a Windows PC with Administrative Rights

chocolatey and usage of Powershell in the Windows Terminal App will make your life easier (History + Autocomplete....).

Samsung Android USB drivers or ADB universal drivers (both worked out for me with Stock ROM, TWRP and LineageOS)

Android Debugging Bridge ADB.

Odin 3.13.1

Props to @anandbibek for the full links in post #5

RMM Bypass V3

Disable_DM-Verity_ForceEncrypt

just in case things get horribly wrong: Latest S8 Stock Firmware

TWRP Recovery

latest version, choose your device (dreamlte for S8 in my case),

read and understand installation methods. Choose Odin :cool:

Download the .img.tar file

Magisk

latest version, read the How to Install Magisk Latest Version on Android [Custom Recovery Option] section.

Download Magisk in the APK packaging.

you may rename the file to .zip. For me there was no need while flashing later on in TWRP

I directly switched over to LineageOS 20 [Unofficial] + NikGapps Core in the process.

Process Overview:​

Factory Reset your Stock Rom. You will need your Samsung Account Password for that.

Reboot. Do not connect to any network. Trick the factory resetted image to 8days+ in the past. This is needed to enable "OEM Unlock" option in developer options later on.

Enable Developer Options

Reboot. Connect to network. Enable automatic date. Reboot again. "OEM Unlock" will show up in the Developer Options. OEM Unlock is essential: You will get "verification failure" without OEM unlock.

Enable USB debugging, enable OEM Unlock and disable "Check USB installed Apps".

Connect to the phone using the Android Debugging Bridge ADB in your favourite terminal app with administrative rights.

adb devices should bring up your device. State will be unauthorized.

If not: Check administrative rights. Check and double check the Android USB drivers. Check the cable.

On first connection: On the phone, you will be requested to trust the computer. You do.

adb devices again. State will be device now.

You want to reboot into download mode. adb reboot download did not work out for me so I had to go two-step:

switch over to the device shell: adb shell

reboot to download mode from within the device shell: reboot download

The phone will reboot to download mode. Use Odin to install TWRP as described above:

Start Odin with Administrative Rights

Disable Auto-Reboot

AP --> choose the TWRP .img.tar file you just downloaded. Odin will fail if OEM unlock wasn't enabled beforehand.

Reboot using the key combo explained on your mobile device display (Power + Volume Down for 7+ seconds)

Reboot into Recovery: (a) by pressing Power + Volume Up + Bixby on boot time or again using ADB: adb reboot recovery

You'll land in TWRP. Now it's time to flash the fixes linked above by @anandbibek . You can do this either by transferring it over to the device (as described above) or by sideloading it using ADB. I chose sideloading:

in TWRP: Advanced --> Sideload ADB

in your Terminal: wait a second or two for the phone to get ready.

adb sideload RMM-State-Bypass-v3-corsicanu.zip

I was asked to confirm questions using the Vol-Up or Vol-Down Buttons. It was too fast for me to remember but I always chose the default.

adb sideload Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip

adb sideload Magisk-v26.1.apk

I rebooted the phone to Stock ROM. You'll have to "Wipe Data (Factory Reset)" if the phone lands in a boot loop. Re-Enabled USB debugging and authorization. Went back to TWRP using adb reboot recovery again. No idea if this whole reboot-stock process is necessary.

Final steps for me: Install LineageOS, Magisk and Gapps from within TWRP:

Wipe Data --> Format Partitions.

Factory Reset is not enough. You'll get plenty of errors and bootloops otherwise.

Advanced --> Sideload ADB

adb sideload lineage-20.0-20230620-UNOFFICIAL-dreamlte.zip

adb sideload Magisk-v26.1.apk

adb sideload NikGapps-core-arm64-13-20230627-signed.zip

Reboot

...and that's basically it. Nothing really new, just a step-by-step summary for people like me, rooting phones only once a while :)

Props to everybody who did the work and explanations here already. You're awesome!

Stephan

​