[Galaxy S5 Mini Original Android Development] ayke:
Disclaimer: Usual disclaimer applies. I've tested this recovery but it might not work due to a different ROM / device / moon phase / etc. Use at your own risk.

Introduction

After working with upstream TWRP developers and fixing some bugs (in TWRP itself and in this port) this device finally has an official port :D

There were various builds available at different times (some with bugs) but most of them should now be fixed.

Features

Works

backup/restore

installing zips

ADB

MTP

Screen turns off

Basically the rest of this list

format /data

Adoptable storage

Decrypt /data

Doesn't work (please ask if you need this)

Encrypted backup (set password for /data/data)

USB-OTG

Untested

Backup/restore of stock system / data.

Installation instructions

Warning: only use it on the G800F/M/Y, NOT on the G800H! I only tested the G800F, but think G800M/Y will also work. G800H will most likely NOT work, as it is based on a different SoC (Qualcomm).

Download the recovery image from twrp.me. It also includes some installation instructions.

There are more extensive installation instructions over at the LineageOS ROM installation instructions.

I personally prefer using Heimdall, but you can also use Odin. Commands in Download/Odin mode (power off, then press home+Volume-Down+power):

heimdall flash --RECOVERY recovery.img

If you're using the stock ROM, use:

heimdall flash --RECOVERY recovery.img --no-reboot

When you come from the stock ROM you have to make sure the stock ROM doesn't overwrite TWRP: Pull the battery, wait 5 seconds, insert it again, and press home + volume up + power to enter TWRP and replace the stock ROM from there.

If you already have TWRP or LineageOS, it's much easier to install from there, see twrp.me.

Another method is using ADB (from your computer). I used it a lot during testing:

adb root
adb push twrp-3.1.1-1-kminilte.img /dev/block/mmcblk0p10

Changelog

2017-07-10:
* fix formatting /data while the partition is encrypted
(device is not encrypted by default)
* add support for adoptable storage
* accept kminiltexx etc. for flashing basebands

2017-06-20:
* ADB
* MTP at the same time as ADB
* Screen turns fully off
* fix for restoring backups made using `adb backup --twrp`

Source code

Kernel: https://github.com/TeamWin/android_kernel_samsung_kminilte/tree/cm-14.1

Device: https://github.com/TeamWin/android_device_samsung_kminilte/tree/cm-14.1

This recovery is built using a LineageOS tree. Instructions are similar to the instructions for building LineageOS for the S5 mini. Differences are: you don't need to patch the source (skip that step) and the last step is mka recoveryimage instead of mka bacon - this only builds the recovery resulting in much faster builds. Also see the official build instructions.

Thanks

Other people who have worked on this project:

Team Win, of course, for the recovery itself! In particular bigbiff which has worked with me to make this device official.

hennymcc

RVR

---

Note to moderators: this is my first DevDB thread started on XDA so I may have made mistakes.

XDA:DevDB Information

Team Win Recovery Project, ROM for the Samsung Galaxy S5 Mini

Contributors

ayke, hennymcc, RVR

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.4.x

Version Information

Status: Stable

Current Stable Version: 3.1.1

Stable Release Date: 2017-06-20

Created 2017-06-24

Last Updated 2017-07-09