[Galaxy S 4 i9506 Android Development] CastagnaIT:
-- Team Win Recovery Project --​

​

Supported model ONLY ks01lte​

I'm sorry but my i9506 is definitely dead, who wants to use my source code to create new updates this is the guide:

(links below)

device > use branch cm-14.1_twrp

kernel > use branch cm-14.1-rc

android_bootable_recovery repo > rebase with official omni repo or cherry-pick my last two commit on top​

Team Win Recovery Project 3.x, or twrp for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

I built this recovery by using my cleaned source code for kernel and OmniRom for twrp.

If you find any bug or problem please reply below this thread or use the dedicated tab page "Bug Reports" over here.

Phone look:

Features:

MTP auto mounting for SD / External SD

Mass storage mounting for External SD

Usb OTG

Full SELinux support

Supported F2FS (system, data, cache partitions)

CPU temperature handled

Thermal control and Performance profiles are active by default

Backup/Restore tested with 4.4.2/5.1 TW original samsung rom and all CyanogenMod

Screen shot capture enabled (Volume (-) + Power) (saved in the "Picture" folder)

Charge-Led

Known problems:

-Samsung HW encryption does not work well, follow this steps to decrypt /data: (thanks Diapolo)

1 - In the initial dialog "Enter Password." press Cancel

2 - "Swipe to Allow Modifications"

3 - Go to "Mount" and select "System" partition

4 - Press "Decrypt Data" and on "Enter Password." dialog press Accept

Changelog:

This is the changelog of my TWRP versions releases, if you want read the original changelog of TWRP versions go to:

http://teamw.in/project/twrp2

CHANGELOG for 3.1.0-0 [04/04/2017]:

-Updated kernel

CHANGELOG for 3.0.3-0 [18/12/2016]:

-Updated kernel

-Fixed twrp screen off timeout problem

CHANGELOG for 3.0.2-0 [20/11/2016]:

-Switched to TWRP android-7.1 branch

-Builded with a new stable kernel for Nougat and CM-14.1

-Added /misc partition on fstab for the recovery commands (Nougat changes)

-Tried to add Samsung HW encryption, it does not seem to work well i think it's incomplete, in our stock rom missing some file

such as keystore.xx.so and firmware files such as keymaster.xxx

CHANGELOG for 3.0.2-0 [08/05/2016]:

-Fixed chargeled service

-Fixed SEANDROIDENFORCE warning at boot, again

-Some changes in the partitions parameters on fstab

CHANGELOG for 3.0.2-0 [07/05/2016]:

-Switched to TWRP android-6.0 branch

-Builded from cm-13.0 repo

-New kernel made by me with latest LP sources

CHANGELOG for 2.8.7.0 [01/08/2015]:

-Switched to TWRP android-5.1 branch

-Builded from cm-12.1 repo

-Updated kernel from cyanogenmod

-Fixed brightness slider

-Fixed SEANDROIDENFORCE warning at boot

CHANGELOG for 2.8.5.0 [15/02/2015]:

-Fixed problem when wiping Data partition in F2FS

CHANGELOG for 2.8.4.0 [07/02/2015]:

-Added rewrite of TWRP settings after a SD wipe (prevent lost settings)

-Fixed mount F2FS or others filesystems to system, data, cache partitions

-Updated with latest changes from source

CHANGELOG for 2.8.4.0 [24/01/2015]:

-Switched to TWRP android-5.0 branch

-Brightness slider still does not work (it's a kernel related problem)

CHANGELOG for 2.8.1.0 [24/01/2015]:

-Updated kernel from cyanogenmod

-Screen blink on boot is not longer present

-Brightness slider no longer work (it's a kernel related problem)

-Added chargeled - adapted for samsung devices

CHANGELOG for 2.8.1.0 [27/11/2014]:

-Enabled mass storage mounting for external sd

-Fixed MTP mounting without external sd

CHANGELOG for 2.8.1.0:

-Initial TWRP release for I9506 (ks01lte)

How to do for install it:

FIRST INSTALL FROM ODIN (v3.07 or higher):

-Download twrp

.TAR.MD5

file.

-Go to download mode (Volume down + Home + Power)

-Open Odin and check AutoReboot and F.Reset Time checkboxes are selected, also Re-Partition it

NOT

selected.

-Click on AP (PDA) and select the downloaded twrp recovery tar.md5 file.

-Check if all options are corrects, and press Start.

-Once the installation process complete, your phone will restart and soon you will see a PASS message with green background in the left-most box at the very top of the Odin. You can now unplug the USB cable to disconnect it from the computer.

-Some users has found problems with previous procedure: in this unlucky situation, when phone reboot and the logo (i9506 Samsung S4 Galaxy) appear, pull out the battery. Don't panic, the logo is there for several seconds. The installation process should be finalized now. There will be no PASS status in Odin. Put back the battery in the phone and try to boot straight to recovery.

UPGRADE YOUR TWRP:

-Download twrp

.ZIP

file.

-Copy the recovery zip file in the internal SD or external SD.

-Go to recovery mode (Volume up + Home + Power)

-Touch the INSTALL button.

-Select the appropriate SD

-Select the twrp file copied previously and slide to flash.

-Press back some times and reboot.

DOWNLOAD:

You can dowload the current version from this folder, you will find the flashable zip and tar version.

CLICK HERE TO GET DOWNLOAD FOLDER

To download Odin go here: samsungodin.com

SOURCES:

TWRP Source: https://github.com/omnirom/android_bootable_recovery

Kernel Source: https://github.com/CastagnaIT/android_kernel_samsung_ks01lte

Device Source: https://github.com/CastagnaIT/android_device_samsung_ks01lte

Thanks to: CyanogenMod, OmniRom Team, TWRP Team, Dees_Troy, Solk2, DualJoe​

XDA:DevDB Information

TWRP, Tool/Utility for the Samsung Galaxy S4

Contributors

CastagnaIT, smeroni68

Version Information

Status: Stable

Current Stable Version: v3.1.0-0

Stable Release Date: 2017-04-04

Created 2014-11-16

Last Updated 2017-07-15