Install LineageOS on berkeley

玩机 6个月前 pand
20 0

Install LineageOS on berkeley

Basic requirements

warning
Important: Please read through the instructions at least once before actually following them, so as to avoid any problems due to any missed steps!
  1. Make sure your computer hasadbandfastboot. Setup instructions can be found here.
  2. Enable USB debugging on your device.
check
Tip: It is highly recommended to have the latest official EMUI package installed on the device, before proceeding.

Unlocking the bootloader

warning
Important: An official method of unlocking the bootloader is not available, but there may be some unofficial methods available. Unofficial methods are not recommended or supported by LineageOS, so use them at your own risk! An unlocked bootloader is required to install LineageOS.

Installing a custom recovery usingfastboot

  1. Download a custom recovery - you can download TWRP. Simply download the latest recovery file, named something liketwrp-x.x.x-x-berkeley.img.

  2. Connect your device to your PC via USB.
  3. 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.
  4. Once the device is in fastboot mode, verify your PC finds it by typing:

    fastboot devices

    check
    Tip: If you seeno permissions fastbootwhile on Linux or macOS, try runningfastbootas root.

  5. Flash recovery onto your device:

    fastboot flash recovery <recovery_filename>.img

    check
    Tip: The file may not be named identically to what stands in this command, so adjust accordingly.

  6. 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

    check
    Tip: The file may not be named identically to what stands in this command, so adjust accordingly.

Installing LineageOS from recovery

  1. 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).
  2. If you are not in recovery, reboot into recovery:

    • With the device powered off, holdVolume Down+Power.
  3. Now tap Wipe.
  4. Now tap Format Data and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.

  5. Return to the previous menu and tap Advanced Wipe, then select the Cache and System partitions and then Swipe to Wipe.
  6. 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
  7. (Optionally): If you want to install any additional add-ons, runadb reboot sideload, thenadb sideload filename.zipthose packages in sequence.

    info_outline
    Note: If you want Google Apps on your device, you must follow this step before booting into LineageOS for the first time!

  8. (Optional): Root your device by installing LineageOS’ AddonSU, (use thearm64package) or by using any other method you prefer.
  9. Once you have installed everything successfully, run ‘adb reboot’.

    warning
    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.

版权声明:pand 发表于 2020-03-28 7:38:02。
转载请注明:Install LineageOS on berkeley | ROM仓库