[Samsung Galaxy S8 Guides, News, & Discussion] djibe89:
[GUIDE/TUTORIAL/HOWTO] Samsung Galaxy S8 or S8+ Stock to Android 13

[GUIDE/TUTORIAL/HOWTO] Samsung Galaxy S8 (dreamlte Exynos SOC) or S8+ (dream2lte) Stock to Android 13 / LineageOS 20

This detailed step-by-step guide helps you transform your Samsung Galaxy S8 dreamlte or S8+ dream2lte to a powerful one with Android 13.

Make sure your phone is dreamlte/dream2lte/Exynos before going further: in Android, go to Settings > About phone > Check model number is listed below.

If not, quit this tutorial.

Supported models:

- SM-G950F

- SM-950FD

- SM-G955F (S8+)

### READ THOSE WARNING COMMENTS

Read all my tutorials at: https://github.com/djibe/Android-tutorials

CHANGELOG

v2. update Magisk 26.3, add Bitgapps SetupWizard

v1. Initial release for Android 13, Netflix and Disney+ work

1) DOWNLOAD

- djibe Galaxy S8 dreamlte pack: https://bit.ly/djibe-galaxys8-pack

(contains Samsung tweaked Odin 3.13.1 + Samsung official USB drivers + TWRP 3.7.0_9-0 official recovery + Magisk Root + Magisk modules + bitgapps.conf). Unzip files.

+ ROM Unofficial LineageOS 20: https://forum.xda-developers.com/t/...spoofing-ota-updates-for-s8-s8-note8.4485525/

Download latest build for your device: https://ivanmeler.github.io/devices/dreamlte.html

+ BiTGApps Package ARM64 13 (BASIC or any other): https://github.com/BiTGApps/BiTGApps-Release/releases

OR NikGApps T Basic: https://sourceforge.net/projects/nikgapps/files/Canary-Releases/NikGapps-T/

OR MindTheGApps 13 ARM64: http://downloads.codefi.re/jdcteam/javelinanddart/gapps

+ Charge phone to 100%

2) BACKUP DATA

Install Samsung USB drivers (you unzipped earlier).

Then plug phone to PC in File transfer mode.

Collect all .jpg or .mp4

Use Google built-in cloud to backup apps like SMS Backup & Restore to backup texts, contacts, etc.

Backup your WhatsApp messages in Google Drive.

Everything else: podcasts, Authenticators, TODOs etc...

Then copy the backup on your PC.

Make sure you have latest official updates for your phone:

Connect to Wifi and go to Settings > Software update > Download and install.

### BACKUP NOW, you will lose everything.

3) FLASH TWRP 3.7 RECOVERY

Go to Settings > About phone > Software information.

Tap 7 times on Build number item to unlock Developer options.

Go to Settings > Developer options, switch OEM unlocking ON.

Shut down phone.

Boot in Download Mode: hold Volume- + Bixby button (located below volume) and then Power button until you see Samsung's logo and release all buttons.

Confirm access to Download mode by pressing Volume+.

Phone now displays "Downloading...".

Connect phone to computer with USB, wait for drivers installation.

Then launch Odin.exe (included in my zipfile) and wait for Odin indicator ID:COM to become blue.

In options: make sure re-partition and Auto Reboot are NOT ticked while F. Reset Time is ticked.

In AP > select twrp-3.7.0_9-0-dreamlte.img.tar

### For Galaxy S8+, select twrp-3.7.0_9-0-dream2lte.img.tar

### Warranty will be Void after next click ###

Click Start.

Wait until flash Success message appears.

Unplug phone.

Restart phone to recovery :

- hold Power + Bixby + Volume- until phone screen becomes black.

- and immediatly switch from Volume- to Volume+ (still holding Power + Bixby) to land in TWRP recovery.

### If Android launches, hold 3 buttons until phone restarts and Samsung logo appears.

4) BACKUP IMEI PARTITION AND SYSTEM (Nandroid backup)

Boot in Recovery Mode : Hold Bixby + Power + Volume+ until you see Samsung's logo then release and wait a few seconds for TWRP recovery to boot.

Recovery asks for Keep System Read Only ? > Swipe to Allow Modifications.

Go to Wipe > Format Data.

Type: yes and confirm with bottom right check icon.

Encryption is removed. You can now access partitions.

### If you miss this step you won't have access to any partition.

Back to home menu > Backup.

You can now select the partitions you want to save.

Select at least EFS partition to backup your IMEI. If a flash fails and partition is damaged you will still be able to restore this partition and use the phone.

If IMEI is lost during a flash, phone won't be able to reach cellphone networks.

I prefer to backup Boot, System, System Image, Baseband and EFS partitions. In case of problem, you will have your phone in its original state.

Swipe to Backup and wait during process.

Save backup: still under TWRP recovery, connect phone to PC.

Go to Mount menu and check Data partition is checked and MTB button is on "Disable MTP" state.

From Windows explorer, access phones memory and copy-paste the TWRP folder (located in root folder, beside DCIM and Music folders) somewhere safe on your computer.

5) FORMAT PARTITIONS

### Make sure you copied TWRP backup from internal memory to somewhere safe.

Go to Wipe > Advanced wipe,

select Dalvik, Cache, System, Data, Internal Storage (if you really made a backup from step 2), then Swipe to Wipe.

Back to TWRP home screen, go to Reboot > Recovery and swipe to reboot.

On next launch, check the checkbox to remember choice and swipe to allow modifications.

6) FLASH ROM, (MAGISK ROOT) AND GAPPS

Back to TWRP main menu, go to Mount menu again to connect phone to PC again.

Connect phone to PC and use Windows explorer to copy files on phone's internal memory.

Copy TWRP folder from your phone to somewhere safe on PC.

This backup can restore your phone to its original Samsung state.

Copy files of ROM + GApps + Magisk on phone.

### If you need Android Wizard to migrate a phone or import Apps, copy bitgapps.conf.

Go back to TWRP Home menu. Then tap on Install > choose lineage*.zip

then Swipe to confirm Flash.

Wait for operation to end.

Again, go to Reboot > Recovery.

After restart, go back to Install and select bitgapps*.zip

Optional for root: Add More zips > Magisk*.zip

then Swipe to confirm Flash.

Then tap Wipe cache/dalvik, swipe to confirm,

and Reboot System.

Wait for the phone to boot during 3 minutes.

7) ROOT ACCESS (OPTIONAL)

### Needed to work with Netflix or Disney+

Configure Android as you like.

Don't try to set fingerprints at first setup. It will crash.

### If you copied bitgapps.conf, you have Android SetupWizard.

No need for extra work to be root.

Magisk launches with Android.

Superuser permissions can be managed from Magisk Manager app.

Launch Magisk.

Then in Magisk go to Settings > Hide the Magisk app, give it a name and switch Zygisk option ON.

Go to Modules Tab > Install from Storage: install MagiskHidePropsConfig and safetynet (located in my archive).

Unlock Developer options: go to Settings > About.

At the bottom, tap 7 times on Build number.

Go to Settings > System > Advanced > Developer options > Disable Android debugging (ADB).

Reboot phone.

8) TWEAKS

- Remove ROM install files: TWRP > Advanced > File Manager > data > media

Tap on each file to Delete it.

- Calibrate battery: https://www.ifixit.com/Wiki/Battery_Calibration

- Set dark Mode to improve battery by 30%

Settings > Display > Dark theme.

- For better battery, remove Always on display

Settings > Display > Screen saver > Desactivated

- Screen sensitivity is too low ?

Try to recalibrate screen sensitivity with https://play.google.com/store/apps/details?id=touchcalibration.favoritappindia&hl=en&gl=US

Enjoy,

djibe

Thanks: @Ivan_Meler, LineageOS team, TWRP team, TopJohnWu

---------------------------------------

Force Samsung Galaxy S8 shutdown

Hold Power + Volume down for 10 seconds