Install LineageOS on berkeley
Basic requirements
- Make sure your computer hasadbandfastboot. Setup instructions can be found here.
- Enable USB debugging on your device.
Unlocking the bootloader
Installing a custom recovery usingfastboot
-
Download a custom recovery - you can download TWRP. Simply download the latest recovery file, named something liketwrp-x.x.x-x-berkeley.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, holdVolume Down+Power.
-
Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
Tip: If you seeno permissions fastbootwhile on Linux or macOS, try runningfastbootas root. -
Flash recovery onto your device:
fastboot flash recovery <recovery_filename>.img
Tip: The file may not be named identically to what stands in this command, so adjust accordingly. -
Now reboot into recovery to verify the installation:
- With the device powered off, holdVolume Down+Power.
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.
Installing LineageOS from recovery
-
Download the LineageOS installation package that you would like to install or build the package yourself.
- Optionally, download additional application packages such as Google Apps (use thearm64architecture).
-
If you are not in recovery, reboot into recovery:
- With the device powered off, holdVolume Down+Power.
- 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.
- Return to the previous menu and tap Advanced Wipe, then select the Cache and System partitions and then Swipe to Wipe.
-
Sideload the LineageOS.zippackage:
- On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload.
- On the host machine, sideload the package using:adb sideload filename.zip
-
(Optionally): If you want to install any additional add-ons, runadb reboot sideload, thenadb sideload filename.zipthose packages in sequence.
Note: If you want Google Apps on your device, you must follow this step before booting into LineageOS for the first time! - (Optional): Root your device by installing LineageOS’ AddonSU, (use thearm64package) or by using any other method you prefer.
-
Once you have installed everything successfully, run ‘adb reboot’.
Warning: Depending on which recovery you use, you may be prompted to install additional apps and services. We strongly advise you to opt out of installing these, as they may cause your device to bootloop, as well as attempt to access or corrupt your data.
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.