Flashing stock ROM Galaxy S5 mini SM-G800F

From WickyWiki
Revision as of 11:53, 7 January 2021 by Wilbert (talk | contribs) (→‎Device button functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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:

  1. Disconnect USB cable
  2. Boot device in download mode
  3. Connect USB with an original cable
  4. 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:

  1. Disconnect USB cable
  2. Power off

If you are done:

  1. Power off device
  2. 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:

  1. Disconnect USB cable
  2. Boot device in download mode
  3. Connect USB with an original cable
  4. 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:

  1. Copy to device (you could use ADB and TWRP to copy files)
  2. Boot into TWRP recovery
  3. Install
  4. Select zip
  5. Flash
  6. Read what it is saying
  7. Reboot