[Galaxy S 5 General] djibe89:
[GUIDE/TUTORIAL/HOWTO] Samsung Galaxy S5 from Stock to Android 13

[GUIDE/TUTORIAL/HOWTO] Samsung Galaxy S5 klte/klteduos Stock to Android 13 / LineageOS 20

This detailed step-by-step guide helps you transform your Samsung Galaxy S5 klte to a powerful one with Android 13.

Make sure your phone is compatible klte model before going further: in Android, go to Settings > About device > Model number is X (model listed below).

klte models:

- SM-G900F

- SM-G900M

- SM-G900R4

- SM-G900R7

- SM-G900T

- SM-G900V

- SM-G900W8

klteduos models: SM-G900FD and SM-G900MD

kltechn models: SM-G9006V, SM-G9008V

kltechnduo models: SM-G9006W, SM-G9008W

kltedv models: SM-G900I, SM-G900P

kltekdi models: SC-04F, SCL23

kltekor models: SM-G900K, SM-G900L, SM-G900S

If model not listed above, quit this tutorial.

Disney+ and Netflix are working.

### READ THOSE WARNING COMMENTS

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

CHANGELOG

v4. Upgrade to Android 13

v3. Upgrade to Android 12.1

v2. Update pack with TWRP, add other S5 variants

v1. Initial release for Android 11

1) DOWNLOAD

- djibe Galaxy S5 klte pack: https://bit.ly/djibe-galaxys5-pack

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

+ ROM Unofficial LineageOS 20: https://forum.xda-developers.com/t/unofficial-lineageos-20-0-android-13.4498857/

klte build here: https://sourceforge.net/projects/khalvat/files/Android 13/klte/

klteduos build here: https://sourceforge.net/projects/khalvat/files/Android 13/klteduos/

kltechn build here: https://sourceforge.net/projects/khalvat/files/Android 13/kltechn/ + TWRP https://eu.dl.twrp.me/kltechn

kltedv (use klte TWRP recovery): https://sourceforge.net/projects/khalvat/files/Android 13/kltedv/

kltekdi: https://sourceforge.net/projects/khalvat/files/Android 13/kltekdi/ + TWRP https://eu.dl.twrp.me/kltekdi/

kltekor: https://sourceforge.net/projects/khalvat/files/Android 13/kltekor/ + TWRP https://eu.dl.twrp.me/klteskt

See official Android 11 builds here: https://download.lineageos.org/klte

### Or try Android 14 early versions: https://xdaforums.com/t/unofficial-lineageos-21-0-android-14.4649772/

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

+ a microSD card. Copy ROM, Gapps, (Magisk root) and Aurora Store on microSD card (FAT32 format) and insert it in phone.

+ Charge phone to 100%

2) BACKUP DATA

Install Samsung drivers (you unzipped earlier).

Then plug phone to PC in File transfer mode.

Collect all .jpg or .mp4

Use app like Backupyourmobile and SMS backup & Restore to backup texts, contacts, etc.

Check that backup is located on microSD card.

Then copy the backup on your PC.

Now connect to Wi-Fi, Settings > About device > Download updates manually (wait during process) > The latest updates have already been installed.

Try another SIM card from another provider to make sure you are not SIMlocked.

3) FLASH TWRP 3.6 RECOVERY

Shut down phone.

Boot in Download Mode : hold Home + Power + Volume- until you see Warning's screen and release all buttons.

Confirm access to Download mode by pressing Volume+.

Connect phone in USB, wait during bootloader drivers installation.

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

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

In Files > PDA > select twrp-3.6.0_9-0-klte.img.tar

### Or klteduos

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

Click Start.

When Success green message appears, hold Power button for 10 seconds to shutdown phone.

4) BACKUP IMEI PARTITION AND SYSTEM (Nandroid backup)

Boot in Recovery Mode: Hold Home + 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 Backup > you can 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 Modem, Boot, System and EFS.

Now type Select Storage > Select Micro SD card and confirm with OK

Now Swipe to Backup and wait during process.

Go to Home screen and continue with next chapter.

5) FORMAT PARTITIONS

Go to Wipe > Format Data

Type yes and confirm with bottom right icon.

Go to Wipe > Advanced wipe,

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

then back.

### Don't select microSD or you will lose your backup

6) FLASH ROM, GAPPS and MAGISK ROOT

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

(Optional) then Add more Zips > Magisk*.zip,

### If you don't see the files, tap on Select Storage and make sure Micro SDCard is active.

then Swipe to confirm Flash.

Go to Reboot > Recovery.

Back to Install > gapps*.zip.

Then tap Wipe cache/dalvik, swipe to confirm,

then Reboot System.

Wait for the phone to boot during 5 minutes.

### Don't connect to your Google account before setting up root.

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.

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) EXTRA

Back to Android, open the Settings menu > About Phone.

Tap on the "Build number" entry seven times. You are notified that developer settings are now active.

Go to Settings > System > Advanced > Developer options,

Set Animations and transition scales to x 0,5.

If Netflix or Disney+ are not accessible from the Play Store, use Aurora Store (available in my pack).

### If you experience too many problems, uninstall Magisk from the app.

9) STORE YOUR BACKUP IN A SAFE PLACE

Connect phone or microSD to PC.

Open microSD folder and backup TWRP folder to a safe place.

Youe /efs partition is now safe (+/- other partitions if you need to fix some crashes)

Enjoy,

djibe

Thanks: @khalvat, @haggertk, LOS Team, TWRP Team, BitGapps team, topjohnwu