Special Boot Modes

Recovery

The recovery mode can be activated from Samsung Galaxy devices by a special key combination at power up home, volume up and power. Alternatively ./adb reboot recovery goes to download mode without need to press all the buttons.

In this mode different options are possible. To have more flexibility as required for custom OS TWRP can be installed.

TWRP is the TeamWin Recovery Project a GUI based custom touch recovery from https://twrp.me/. It allows to backup/restore partitions, install Custom Firmware and more.

heimdall flash --RECOVERY recovery.img --no-reboot mill install it.

Important

There is also the twrp app. This is a regular app and not a recovery. It is used to deal with recoveries (update, download, restore). To be usefull the twrp app needs to be run with root privileges.

Important

After running it the device needs to unplugged from the PC and then home, volume up and power, to have twpr persistent installed

Important

Having twrp, it is recommended to backup the devices original ROM to an internal SD card, before attempting to install a custom ROM.

Download

In the download mode the device listens to commands to download data in the flash device.

It can be activated from Samsung Galaxy devices by a special key combination at power up home, volume down and power. Alternatively ./adb reboot download goes to download mode without need to press all the buttons.

heimdall is a tool to flash firmware (aka ROMs) onto Samsung Galaxy S devices. https://glassechidna.com.au/heimdall/Source is hosted on Github: https://github.com/Benjamin-Dobell/Heimdall/. heimdall is a command line tool but the separate heimdall-frontend. heimdall might be installed as regular package of the desired Linux distribution.

PIT files hold the Partition Information Table of the device and can be read or written to the device.

heimdall print-pit reads the partition table from the device. heimdall-frontend allows to read and write the pit to a binary file.


Linurs Hosttech startpage