keyboard_arrow_left Back to the overview

Install LineageOS on
Samsung Galaxy S5 LTE (G9006V/8V)

kltechn

Basic requirements

  1. Read through the instructions at least once before actually following them, so as to avoid any problems due to any missed steps!
  2. Make sure your computer has adb. Setup instructions can be found here.
  3. Enable USB debugging on your device.
  4. Make sure that your model number is one of the following (exact match required!):
    • SM-G9006V
    • SM-G9008V
  5. Boot your device with the stock OS at least once and check every functionality.
  6. Remove all Google accounts from your device to avoid “Factory reset protection”
  7. LineageOS is provided as-is with no warranty. While we attempt to verify everything works you are installing this at your own risk!

Checking the correct firmware

Installation on your device requires a specific firmware version to be installed before you continue.

  • Firmware refers to a device-specific set of images that are included in, and updated by the stock OS
  • LineageOS builds for this device require an Android 6.0.1 version of the stock OS to be installed prior to following the installation guide
  • Please ensure that you are checking the Android version, and not the vendor OS version
  • Being on another custom ROM, including unofficial builds of the same version of LineageOS, does not ensure that this requirement has been fulfilled
  • Please re-read this section as many times as necessary to fully understand the requirements

Failing to install the correct firmware version prior to installation may result in failure to install LineageOS, unexpected crashes post-installation, or permanent damage to your device!

Preparing for installation

Samsung devices come with a unique boot mode called “Download mode”, which is very similar to “Fastboot mode” on some devices with unlocked bootloaders. samloader-rs is a cross-platform, open-source tool for interfacing with Download mode on Samsung devices. The preferred method of installing a custom recovery is through Download Mode – rooting the stock firmware is neither necessary nor required.

  1. Download and extract the appropriate version of the samloader-rs for your machine’s OS from here
  2. Power off the device, and boot it into download mode:
    • With the device powered off, hold Volume Down + Home + Power
    • Now, click the button that the on screen instructions correlate to “Continue”, and insert the USB cable into the device.
  3. On your machine, open a Command Prompt or PowerShell (Windows) window, or Terminal (Linux or macOS) window, and type:
    samloader print-pit
    
  4. If the device reboots that indicates that samloader-rs is working properly. If it does not, please refollow these instructions to verify steps weren’t missed, try a different USB cable, and a different USB port.

Installing Lineage Recovery using samloader-rs

  1. Download Lineage Recovery. Simply download the latest recovery file, named recovery.img.
  2. Power off the device, and boot it into download mode:
    • With the device powered off, hold Volume Down + Home + Power
    • Now, click the button that the on screen instructions correlate to “Continue”, and insert the USB cable into the device.
  3. On your machine, open a Command Prompt or PowerShell (Windows) window, or Terminal (Linux or macOS) window, and type:
    samloader flash --partition RECOVERY recovery.img --no-reboot
    
  4. A transfer bar will appear on the device showing the recovery image being flashed.
  5. Manually reboot into recovery, this may require pulling the device’s battery out and putting it back in, or if you have a non-removable battery, press the Volume Down + Power buttons for 8~10 seconds until the screen turns black & release the buttons immediately when it does, then boot to recovery:
    • With the device powered off, hold Volume Up + Home + Power. When the blue text appears, release the buttons.

Installing LineageOS from recovery

  1. Download the LineageOS zip file that you would like to install or build the package yourself.
  2. If you are not in recovery, reboot into recovery:
    • With the device powered off, hold Volume Up + Home + Power. When the blue text appears, release the buttons.
  3. Now select Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
  4. Return to the main menu.
  5. Sideload the LineageOS .zip package but do not reboot to system before you read/followed the rest of the instructions!
    • On the device, select “Apply update”, then “Apply from ADB” to begin sideload.
    • On the host machine, sideload the package using:
       adb -d sideload /path/to/zip
      

Installing Add-Ons

  1. Click Apply update, then Apply from ADB, then run for each of those packages in sequence:
     adb -d sideload /path/to/zip
    

    When presented with a screen that says Signature verification failed, click Yes. It is expected as add-ons aren’t signed with LineageOS’s official key!

All set!

Once you have installed everything successfully, you can now reboot your device into the OS for the first time!

  • Click the back arrow in the top left of the screen, then “Reboot system now”.

If you are wondering about the next steps, continue, otherwise, enjoy your new LineageOS installation.

What next?

  • If you are considering relocking your bootloader, see our FAQ about it.
  • If your device is displaying a warning on every boot - there is nothing you can do about it but ignoring.
  • Please do not use any methods to deinstall system apps. We are already shipping only a minimal set of apps and doing so can break your system. You are warned!
  • We don’t support any methods for rooting and thus won’t provide support with it on any of our platforms
  • LineageOS is Android. It supports apps the same way as any other Android device, but apps might choose to exclude you from using them. Please go back to your device’s quirks section and read about “Device integrity”.