LINEAGEOS

Devices

There are lots of devices supported by lineageOS. The devices I’ve used with it are:

Toolchain

adb and fastboot

Before installing your host machine needs to be set up with Android Debug Bridge (adb). Google hosts adb files somewhere. When I run adb --version I see the following

Android Debug Bridge version 1.0.41
Version 30.0.3-6597393
Installed as /home/chris/adb-fastboot/platform-tools/adb

TODO: add more detail from https://wiki.lineageos.org/adb_fastboot_guide.html

Flash

Lets you flash an Android build to your device through Chrome. See here

Installation

Instructions for sailfish Instructions for taimen

Unlocking the bootloader

  1. Enable OEM unlock in the Developer options under device Settings, if present. a. To get into Developer mode go to about and press build number a bunch of times
  2. Toggle “USB Debugging”
  3. Connect the device to your PC via USB
  4. On the computer, open a terminal window, and type:
adb reboot bootloader

You can also boot into fastboot mode via a key combination:

With the device powered off, hold Volume Down + Power.
  1. Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
  1. Now type the following command to unlock the bootloader:
fastboot flashing unlock
  1. You may be prompted to select “unlock the bootloader”. Use the volume and power keys on the device to do so.
  2. You should know see DEVICE STATE - unlocked on the device

Temporarily booting a custom recovery using fastboot

  1. Download a custom recovery - you can download TWRP. Simply download the latest recovery file (make sure its a .img file), named something like twrp-x.x.x-x-taimen.img.
  2. On the computer, open a terminal window, and type:
adb reboot bootloader
  1. Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
  1. Temporarily flash a recovery on your device by typing:1
fastboot flash boot <recovery_filename>.img

Installing LineageOS from recovery

  1. Download the LineageOS installation package that you would like to install or build the package yourself.
  2. Now tap Wipe.
  3. Now tap Format Data and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.
  4. Sideload the LineageOS .zip package: a. On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload. b. On the host machine, sideload the package using: adb sideload filename.zip.
  5. reboot the system

Developer options

remove apps

 adb root 
 adb shell pm uninstall -k --user 0 org.lineageos.jelly 

install apps

Pretty straightforward using adb. Have done this for things like signal.

adb install [apkfile]

In the case of adding additional info (e.g. .obb files for games), I found this answer useful

make it grayscale

Developer Options -> Under Hardware accelerated rendering you will see option called Simulate color space , click it and set it to Monochromacy .

slot a vs slot b?

https://www.androidauthority.com/lineageos-install-guide-893303/


  1. Note: Outdated fastboot releases dropped legacy A/B support, so it might attempt to flash to boot__a / boot__b rather than boot_a / boot_b if you try to flash boot. In this case, you must update fastboot to a release newer than or equal to 31.0.2. Alternatively, you can manually specify which slot to flash to based on what slot fastboot failed to flash to. For example, if fastboot fails to flash to boot__a, you must flash to boot_a. ↩︎