Date created: Wednesday, August 14, 2019 8:54:45 AM. Last modified: Thursday, October 7, 2021 11:09:46 AM

LineageOS Install/Upgrade

####################################################################
# Unlock the bootloader (only required once for the the first time)#
####################################################################

# Enable USB debugging mode in Android settings

# Reboot phone into fastmode
./adb reboot bootloader

# Check device is present
./fastboot devices

# Unlock the bootloader:
./fastboot oem unlock-go

# If the device doesn’t automatically reboot, reboot it. It should now be unlocked.
# Since the device resets completely, you will need to re-enable USB debugging to continue.



##############################################################################
# Install TeamWin recovery image (https://twrp.me/ - https://dl.twrp.me/zl1/)#
##############################################################################

# Download twrp-x.x.x-x-zl1.img image

# Enable USB debugging options

# Reboot into fastmode
./adb reboot bootloader

# Check device is detected
./fastboot devices

# Flash new recover image
./fastboot flash recovery twrp-x.x.x-x-zl1.img

# Reboot into recovery to verify the installation
./fastboot boot twrp-x.x.x-x-zl1.img



###############################################
#Install LineageOS and Open GApps (same for install or upgrade)
###############################################

# Reboot into recovery mode (assuming that TWRP is already installed)
# In TWRP recovery mode goto Advanced > ADB Sideload

# List adb connected devices
./adb devices

# https://wiki.lineageos.org/devices/zl1/upgrade
# Load the lineageos file over USB:
./adb sideload lineage-16.0-20190812-nightly-zl1-signed.zip

# Go to Advanced > ADB sideload and load and install the OpenGApps file
./adb sideload open_gapps-arm64-9.0-pico-20190813.zip

# Reboot

Previous page: References
Next page: ODROID-N2 Notes