[Galaxy S5 Mini Android Development] bouncinglime:
Step-by-step Instructions

I did this process over a year ago when I updated my phone from the stock ROM to CM12. Which means that I couldn't remember the exact order of the steps, and had to read between the lines to get them right. So here, presented for the benefit of those of us who don't do this on a regular basis, are actual numbered steps. Hopefully this is helpful for others, too!

I've included some of the notes from the original post, mostly the warnings and troubleshooting tips. For other details, please read the original post and look for relevant comments in the thread.

Note : I started with an encrypted version of CM12, and had to keep entering my key every time I booted into Recovery Mode as well as for the wipe in Step 5. The key seems to have been preserved through all the wipes and installations, and I'm not sure how I feel about that.

0 : Back Up Everything

Aside from just dragging all the files you want to keep to your computer, it's also recommended to create an image of your current setup. That way you can flash back to it if anything goes horribly wrong.

Another recommendation is to go through all the apps you use to see if they have an "export" function. Do that, and drag those files to your computer, too.

Power off the phone.

Boot the phone into Recovery Mode : hold the volume-up + home + power buttons at the same time until the teamwin screen appears.

Select Backup.

Select Encryption (third tab, on the right) and enter a strong key.

Leave the default selections - Boot, System, and Data.

Swipe to Backup. This will take a while, so just let it run.

Once that's done, remember also to move this backup file to somewhere that won't get deleted when you wipe the phone prior to installing Lineage.​

1 : Wipe the Phone

This is going to depend on what OS you have installed at the moment, but it'll be somewhere in Settings > Backup & Reset. Tick all the boxes, wipe all the data. You've moved everything important onto another device, right?​

2 : Download the Files

While all of these things are running, download the four files you'll need for this. They're the ones listed in the "Download" section of the first post. Once they're downloaded, the only one you need to unzip is CF-Auto-Root because it contains the exe for Odin that you'll need in the next step.

2.1 : Install Official Samsung Driver

Although your phone works with your computer, there's another driver that you'll need to actually get it to work in Odin mode. That can be downloaded from developer(dot)samsung(dot)com/galaxy/others/android-usb-driver-for-windows [can't link to outside sites yet]. The site looks a little shady, but it does appear to be the official link, and worked with my G800F.​

3 : Boot Phone into Odin Mode

Once your phone is done running its wipe, power it off.

Boot the phone into Odin mode - hold the volume-down + home + power buttons at the same time until the warning screen appears.

Confirm the warning message by pressing the volume-up button.

The "Downloading... Do not turn off target!!" screen should now appear to indicate that the phone is now in Odin mode.

4 : Flash Recovery

By flashing the recovery, your warranty will be void.

Before you flash the recovery :

- You need the latest TWRP recovery (downloaded in Step 2). Otherwise TWRP might not be able to flash the ROM. This is because TWRP checks now if the device is "supported".

- Wipe the device to avoid problems with remaining files from the old installation (see Step 1). This also applies if you already installed an older version of CM 13.0.

Plug the phone, in Odin mode, into your computer via USB.

From the CF-Auto-Root directory that you downloaded and unzipped on your computer, launch the Odin exe.

In the Odin application, you should see some information in the Log window on the left - it should say something like "Added!!" to let you know that it sees the phone.

Click the "AP" button on the left under the "Files [Download]" section. This will bring up a system file-picker dialogue - navigate to and select the "recovery.tar.md5" file downloaded earlier.

On the left, click on the second "Options" tab - verify that only "Auto Reboot" and "F. Reset Time" are selected.

THE NEXT STEP WILL VOID YOUR WARRANTY.

Click "Start" to flash the new kernel image. The phone should reboot into the OS when it's finished.

When the phone reboots into the OS, it should take you to the initial setup screen. At this point, power off the phone. If this was not successful, restart into Odin mode (Step 3) and flash the downloaded recovery again, or flash the stock ROM.

5 : Move Lineage ROM & GApps Files

Boot the phone into Recovery Mode (see Step 0).

Connect the phone to your computer via USB.

- If the phone is not recognized as a volume in Windows : On the phone (Recovery Mode) select Mounts, and click on Enable MTP.

- If MTP does not work from recovery, try rebooting into the OS. Or remove the external sd card from the phone and put it into your computer.

Copy the open_gapps and lineage-13.0 ROM zip files to the internal or external storage of the phone.

- Be careful not to put the files into the "data" directory of the internal storage, as this will be deleted in the next step.

6 : Wipe the Caches and System

You've made a backup ROM of the phone before you wiped it, right? Because if anything goes wrong at this step, you'll want to be able to put your phone back to how it was so that it works.

On the phone (Recovery Mode), select Wipe > Advanced Wipe > Selections.

Ensure that Dalvik Cache, Cache, System, and Data are selected and click "Wipe."

- Do not report problems if you did not wipe those partitions as the problems are most probably related to this!

7 : Install Lineage ROM & GApps Files

The phone should stay in Recovery Mode when the wipe is done. If not, reboot into Recovery Mode again.

In Recovery Mode, click Install.

Select the lineage-13.0 zip file.

Click Install.

Select the open_gapps zip file.

Click Install.

8 : Boot into Lineage!

When all of those installations are done, you should be able to reboot the phone into the OS. This should now be Lineage 13! It takes a long time to boot, so be patient.

Congratulations, you've got a shiny new OS!
​