Install LineageOS on channel
Back to the overviewBasic requirements
- Make sure your computer has
adb
andfastboot
. Setup instructions can be found here. - Enable USB debugging on your device.
Unlocking the bootloader
- Connect the device to your PC via USB.
- On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) 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.
- Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
Tip: If you seeno permissions fastboot
while on Linux or macOS, try runningfastboot
as root. -
Follow the instructions at Motorola Support to unlock your bootloader.
Note: If your device is not supported by the Motorola Bootloader Unlock website, you may be able to use an alternative bootloader unlock method like SunShine, though they only support some devices/firmwares. - Since the device resets completely, you will need to re-enable USB debugging to continue.
Temporarily booting a custom recovery using fastboot
-
Download a custom recovery - you can download TWRP. Simply download the latest recovery file, named something like
twrp-x.x.x-x-channel.img
. - Connect your device to your PC via USB.
- On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) 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.
- Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
Tip: If you seeno permissions fastboot
while on Linux or macOS, try runningfastboot
as root.Tip: Some devices have buggy USB support while in bootloader mode, if you seefastboot
hanging with no output when using commands such asfastboot getvar ..
,fastboot boot ...
,fastboot flash ...
you may want to try a different USB port (preferably a USB Type-A 2.0 one) or a USB hub. - Temporarily flash a recovery on your device by typing:
fastboot flash boot <recovery_filename>.img
Note: Newer fastboot releases dropped legacy A/B support, so it might attempt to flash toboot__a
/boot__b
rather thanboot_a
/boot_b
if you try to flashboot
. In this case, you must manually specify which slot to flash to based on what slot fastboot failed to flash to. For example, if fastboot fails to flash toboot__a
, you must flash toboot_a
.Tip: The file may not be named identically to what stands in this command, so adjust accordingly. -
With the device powered off, hold Volume Down + Power, then select “Recovery mode” using Volume keys.
Alternatively, on some devices and recoveries you can use fastboot to boot directly into the freshly flashed or any other desired recovery:
fastboot boot <recovery_filename>.img
Tip: The file may not be named identically to what stands in this command, so adjust accordingly.
Pre-install instructions
In some cases slot b
can be unpopulated or contain much older firmware than slot a
, leading to various issues including a potential hard-brick. We can ensure none of that will happen by copying the contents of slot a
to slot b
. This step is NOT optional.
To do this, sideload the copy-partitions-20210323_1922.zip
package by doing the following:
-
Download the
copy-partitions-20210323_1922.zip
file from here. -
Sideload the
copy-partitions-20210323_1922.zip
package:- On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload
- On the host machine, sideload the package using:
adb sideload copy-partitions-20210323_1922.zip
Installing LineageOS from recovery
- Download the LineageOS installation package that you would like to install or build the package yourself.
- Optionally, download an application package add-on such as Google Apps (use the
arm64
architecture).
- Optionally, download an application package add-on such as Google Apps (use the
- If you are not in recovery, reboot into recovery:
- With the device powered off, hold Volume Down + Power, then select “Recovery mode” using Volume keys.
- Now tap Wipe.
- Now tap Format Data and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.
- 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
.Tip: If the process succeeds the output will stop at 47% and reportadb: failed to read command: Success
.
-
(Optionally): If you want to install any add-ons, run
adb reboot sideload
, thenadb sideload filename.zip
those packages in sequence.Note: 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
.Note: If you want the Google Apps add-on on your device, you must follow this step before booting into LineageOS for the first time! - Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.
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.