Back to the overview
Upgrade LineageOS on
troika
Upgrade LineageOS on
Motorola one action
troika
Basic requirements
- Read through the instructions at least once before actually following them, so as to avoid any problems due to any missed steps!
- You actually want to upgrade your device to the newest version - if you wish to downgrade to an earlier version of LineageOS, follow your device’s instructions for installing LineageOS the first time.
Manually upgrading LineageOS
The updater app does not support upgrades from one version of LineageOS to another, and will block installation to any update for a different version. Upgrading manually requires similar steps to installing LineageOS for the first time.
- Download the LineageOS zip file that you would like to install or build the package yourself.
- Make sure your computer has working
adb. Setup instructions can be found here. - Enable USB debugging on your device.
- Reboot into recovery by running:
adb -d reboot recoveryor by performing the following:
- With the device powered off, hold Volume Down + Power. Then use the menu to select Recovery Mode.
- If your device is running LineageOS version older than 23.2, wipe your data partition
(this is usually named “Wipe”, “Format”, or “Factory reset”)
.
Warning: Without this step your device will not boot on the new version!Warning: This step will wipe your personal data and remove any user-installed apps. If these are important to you, then you should back them up before performing the upgrade.
- Click
Advanced, thenEnable ADB. - Run this command to reboot into bootloader mode:
adb -d reboot bootloaderor by performing the following:
- With the device powered off, hold Volume Down + Power.
- Flash the super_empty partition to retrofit dynamic partitions to your device (inserting the path to your
super_empty.imgfile):fastboot wipe-super --slot=all /path/to/super_empty.imgNote: This process only needs to be performed if you are upgrading from LineageOS versions older than 24.0 that still utilize the legacy partition layout.Note: If you get the following error:fastboot: usage: unknown command wipe-super, make sure ADB and fastboot are updated to the latest version. You need fastboot version 28.0.2 or greater. - Update to the latest Lineage Recovery image. Simply download the latest recovery file, named
boot.img. Follow your device’s installation guide to upgrade your recovery image. - While you are in bootloader mode, run this command to enter recovery mode:
fastboot reboot recoveryOr by performing the following:
- With the device powered off, hold Volume Down + Power. Then use the menu to select Recovery Mode.
- Once you are in LineageOS recovery, select “Apply update”, then “Apply from ADB” to put the device into sideload mode.
- Run (inserting the path to your LineageOS package):
adb -d sideload /path/to/zipTip: Normally, adb reportsTotal xfer: 1.00x, but in some cases, even if the process succeeds, the output may stop at 47% and showadb: failed to read command: Success. In other instances, it might displayadb: failed to read command: No errororadb: failed to read command: Undefined error: 0which is also fine.Note: If signature verification fails, that means the image you are trying to flash is either corrupted, or not an official LineageOS image. Please redownload the image. - (Optionally): If you want to install any add-ons, click
Advanced, thenReboot to Recovery, then when your device reboots, clickApply update, thenApply from ADB, then run for each of those packages in sequence:adb -d sideload /path/to/zipNote: Add-ons aren’t signed with LineageOS’s official key, and therefore when they are sideloaded, Lineage Recovery will present a screen that saysSignature verification failed, this is expected, please clickContinue. - Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.