Last updated: 2019-01-19
Upgrading is very fast and easy.
Use of this page requires you already have LineageOS installed on your phone (first time installers go here).
If the computer you are using has not been used to install before, do the prerequisites from the first time installation page.
Note: The first boot can take longer going from 15.1 to 16.0 so give it more time than before.
All instructions assume you are running Linux. These instructions are for Ubuntu with minimum version of 16.04.
Settings - System - Developer options - Android debugging or USB debugging
Connect your phone to your computer with a USB cable and give your computer permission to do USB debugging with your phone.
Settings - Security - Screen Lock - None
If you forget to unlock your phone before you do the next steps you will have to reboot your phone and turn off the lock screen.
If you are moving from another version of LineageOS, then you should do this. Versions built with different keys will not read the data partitions of other builds. See note regarding keys at top of this page.
Personally, I put everything I value in a syncthing folder and just use that for backup/restore.
I don't know if this works; I got it off the internet!
sudo adb backup -apk -shared -all -f ph1.backup.ab
To restore:
sudo adb restore ph1.backup.ab
Type the following in your shell and wait for the phone to restart (your phone may prompt for permission):
sudo adb reboot-bootloader
To verify you can access the phone type:
sudo fastboot devices
If you see a device with the label "unauthorized" you forgot to give your computer permission to access your phone through the adb interface.
sudo fastboot getvar current-slot
sudo fastboot set_active other
TWRP gets written to the boot partition.
sudo fastboot flash boot twrp-3.2.3-0-mata.img
sudo fastboot reboot
After a few moments TWRP will start.
You most likely won't be able to control TWRP with the touchscreen. You can install Lineage without using the touch screen.
If something goes wrong and you need to restart the phone depress the volume down button while the phone reboots.
(NOTE: I had to unplug/replug my phone and wait until my computer acknowledged the phone before issuing each of the next two commands.)
sudo adb shell twrp sideload
The phone will show a message that sideloading is enabled.
sudo adb sideload lineage-16.0-date-UNOFFICIAL-mata.zip
(NOTE: Progress might appear to hang at 47% but the phone will show it is in step 2; be patient. The phone will return to TWRP main screen when it finishes.)
(I don't do this but I expect you can install other things like Magisk or gapps here the same as above: sudo adb sideload images.zip)
sudo adb reboot
Settings - Security - Screen Lock
Settings - System - Developer options - Android debugging
It is safest to keep USB debugging disabled until you need it. Go to the developer options menu in settings and disable it.
Settings - Security - Screen Lock
Turn on firewall
Update adblocking
Something need fixing? Contact me: