Install LineageOS on gts4lvwifi

Pre-Install Instructions

  1. Connect the device to a Wi-Fi network.
  2. Enable Developer Options by pressing the “Build Number” option in the “Settings” app within the “About” menu
    • From within the Developer options menu, enable OEM unlock.
  3. Download this VBMeta image .tar file.
  4. Power off the device, and boot it into download mode:
    • With the device powered off, plug in the device while holding Volume up + Volume Down + Power.
    • Now, click the button that the onscren instructions coorelate to “Continue” and/or “Unlock Bootloader”, and insert the USB cable into the device.
  5. Download and install the necessary drivers.
    • Download the newest Samsung drivers from here. You will need to create a Samsung account and login to download them.
    • Install SAMSUNG_USB_Driver_for_Mobile_Phones.exe.
  6. Download this version of Odin.
  7. Extract “Odin_3.13.1.zip”.
  8. Run Odin3 v3.13.1 found in the newly extracted “Odin_3.13.1” folder.
  9. Check the box labeled next to the button labeled “AP”, and then click the “AP” button.
    • In the menu that pops up, select the newly downloaded custom VBMeta .tar file.
  10. Check in the top left of thne Odin window that you see a valid device, it will show up as something like COM0.
  11. A blue transfer bar will appear on the device showing the recovery image being flashed.
  12. Your device will reboot, you may now unplug the USB cable from your device.
  13. The device will demand you format userdata, please follow the onscreen instructions to do so.

  14. Run through Android Setup skipping everything you can, then connect the device to a Wi-Fi network.
  15. Re-enable Development settings by clicking the “Build Number” option 10 times, in the “Settings” app within the “About” menu, and verify that “OEM Unlock” is still enabled in the “Developer options” menu.

Basic requirements

  1. Make sure your computer has adb and fastboot. Setup instructions can be found here.
  2. Enable USB debugging on your device.

Important Information

Samsung devices come with a unique boot mode called “Download mode”, which is very similar to “Fastboot mode” on some devices with unlocked bootloaders. Odin is a Samsung-made 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.

Installing a custom recovery using Odin

  1. Enable Developer Options by pressing the “Build Number” option 10 times, in the “Settings” app within the “About” menu
    • From within the Developer options menu, enable OEM unlock.
  2. Download a custom recovery - you can download TWRP. Simply download the latest recovery file, named something like twrp-x.x.x-x-gts4lvwifi.tar.
  3. Power off the device, and boot it into download mode:
    • With the device powered off, plug in the device while holding Volume up + Volume Down + Power.
    • Now, click the button that the onscren instructions coorelate to “Continue”, and insert the USB cable into the device.
  4. Download and install the necessary drivers.
    • Download the newest Samsung drivers from here. You will need to create a Samsung account and login to download them.
    • Install SAMSUNG_USB_Driver_for_Mobile_Phones.exe.
  5. Download this version of Odin.
  6. Extract “Odin_3.13.1.zip”.
  7. Run Odin3 v3.13.1 found in the newly extracted “Odin_3.13.1” folder.
  8. Check in the top left of the Odin window that you see a valid device, it will show up as something like COM0.
  9. In the left side of the Odin window, you will see an “Options” tab, click it, and then un-check the “Auto Reboot” option.
  10. Check the box labeled next to the button labeled “AP”, and then click the “AP” button.
    • In the menu that pops up, select the newly downloaded custom recovery .tar or .tar.md5.
  11. A blue transfer bar will appear on the device showing the recovery image being flashed.
  12. Unplug the USB cable from your device.
  13. 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 + Power.

Installing LineageOS from recovery

  1. Download the LineageOS installation package that you would like to install or build the package yourself.

    • Optionally, download additional application packages such as Google Apps (use the arm64 architecture).
  2. If you are not in recovery, reboot into recovery:
    • With the device powered off, hold Volume Up + Power.
  3. Now tap Wipe.
  4. Now tap Format Data and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.

  5. Return to the previous menu and tap Advanced Wipe, then select the Cache and System partitions and then Swipe to Wipe.

  6. Sideload the LineageOS .zip package:
    • On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload.
    • On the host machine, sideload the package using: adb sideload filename.zip
  7. (Optionally): If you want to install any additional add-ons, repeat the sideload steps above for those packages in sequence.

  8. Once you have installed everything successfully, run ‘adb reboot’.

Get assistance

If you have any questions or get stuck on any of the steps, feel free to ask on our subreddit or in #LineageOS on freenode.