Flashing stock ROM Galaxy S5 mini SM-G800F
Find your stock ROM, for example here:
Note: if you use the free service it will take at least 8 hours to download, so start this before going to sleep.
Device button functions
| Device | Download mode | Recovery mode | Reboot |
|---|---|---|---|
| Galaxy Tab S10 | Volume Down + Home button + Power | Volume Up + Home button + Power | |
| Galaxy S8 | Power + Volume Down + Bixby | Power + Volume Up + Bixby | Power + Volume Up + Volume Down |
| Galaxy S5 mini | Home + Volume Down + Power | Home + Volume Up + Power | Home + Volume Down + Power |
Install Heimdall
Install Heimdall on your system. You can use Heimdall to upload and replace files on your phone while the device is in download mode. Heimdall is available for Windows and Linux, the examples here assume you use Linux.
sudo add-apt-repository ppa:modycz/heimdall sudo apt-get update sudo apt-get install heimdall
Flash images
Use Heimdall, and flash back to stock
Prepare device:
- Disconnect USB cable
- Boot device in download mode
- Connect USB with an original cable
- Follow the instruction on your device screen
On computer, list the available partitions:
sudo heimdall print-pit --no-reboot
Based on the output you can map the image files to their partitions and use this to construct the Heimdall flash command. Ignore partitions for which you don't have an image file.
Note: you need to extract the archives-within-archives from your ROM file until you have the image files. Sometimes there is an md5 appendix, you might need to rename it and use extract software that can ignore the appended md5 bytes (for example 7z).
In your terminal, go where your image files are and flash:
cd /path/to/image/files
sudo heimdall flash --RECOVERY recovery.img --BOOT boot.img --CACHE cache.img --HIDDEN hidden.img --RADIO modem.bin --BOOTLOADER sboot.bin --SYSTEM system.img
If you get a protocol error, start again:
- Disconnect USB cable
- Power off
If you are done:
- Power off device
- Start the device and be patient
Install custom recovery
An unofficial TWRP for Galaxy S5 Mini (G800F):
Install the custom recovery following the same steps as described above.
Prepare device:
- Disconnect USB cable
- Boot device in download mode
- Connect USB with an original cable
- Follow the instruction on your device screen
In your terminal, go where your image files are and flash away:
cd /path/to/image/file
sudo heimdall flash --RECOVERY 20170226-TWRP_SM800F_recovery_UNOFFICIAL-kminilte.img
Root device
Root device by flashing SuperSU with TWRP.
Download:
- Copy to device (you could use ADB and TWRP to copy files)
- Boot into TWRP recovery
- Install
- Select zip
- Flash
- Read what it is saying
- Reboot