Phone name: OnePlus One (bacon)
LineageOS Version: 18.1 (Android 11)
Download nightly image and recovery image:
https://download.lineageos.org/bacon
and gapps (arm version, not arm64)
https://androidfilehost.com/?w=files&flid=322935
Full innstallation instructions:
https://wiki.lineageos.org/devices/bacon/install
How to install adb and fastboot on pc:
https://wiki.lineageos.org/adb_fastboot_guide
mkdir ~/adb-fastboot cd ~/adb-fastboot wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip unzip platform-tools-latest-linux.zip
Add the following to ~/.profile:
if [ -d "$HOME/adb-fastboot/platform-tools" ] ; then export PATH="$HOME/adb-fastboot/platform-tools:$PATH" fi
Log out and back in.
You may also need to set up udev rules: see this repository for more info.
https://github.com/M0Rf30/android-udev-rules#installation
To use “adb” with your device, you’ll need to enable developer options and USB debugging:
Open Settings, and select “About”. Tap on “Build number” seven times. Go back, and select “Developer options”. Scroll down, and check the “Android debugging” or “USB debugging” entry under “Debugging”. Plug your device into your computer. On the computer, open up a terminal/command prompt and type "adb devices". A dialog should show on your device, asking you to allow usb debugging. Check “always allow”, and choose “OK”.
Congratulations! adb is now ready to use with your device.
Setting up fastboot
Using “fastboot” (if your device supports it) should simply involve rebooting to fastboot mode. While in fastboot mode, you can type “fastboot devices” to verify that your device is being detected.
Popular adb commands
adb shell - launches a shell on the device adb push <local> <remote> - pushes the file <local> to <remote> adb pull <remote> [<local>] - pulls the file <remote> to <local>. If <local> isn’t specified, it will pull to the current folder. adb logcat - allows you to view the device log in real-time. You can use adb logcat -b radio to view radio logs, and adb logcat -C to view logs in colour adb install <file> - installs the given .apk file to your device
1. Connect the device to your PC via USB.
2. 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 Up + Power.
3. Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
check Tip: If you see "no permissions fastboot" while on Linux or macOS, try running "fastboot" as root.
4. Now type the following command to unlock the bootloader:
fastboot oem unlock
Note: At this point the device may display on-screen prompts which will require interaction to continue the process of unlocking the bootloader. Please take whatever actions the device asks you to to proceed.
5. If the device doesn’t automatically reboot, reboot it. It should now be unlocked.
6. Since the device resets completely, you will need to re-enable USB debugging to continue.
1. Download a custom recovery - you can download Lineage Recovery. Simply download the latest recovery file, named something like lineage-18.1-20220101-recovery-bacon.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, hold Volume Up + Power.
4. Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
Tip: If you see no permissions fastboot while on Linux or macOS, try running fastboot as root.
5. 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.
Tip: Some devices have buggy USB support while in bootloader mode, if you see fastboot hanging with no output when using commands such as fastboot 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.
6. Now reboot into recovery to verify the installation:
With the device powered off, hold Volume Down + Power.
1. 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 arm architecture). https://wiki.lineageos.org/gapps.html https://androidfilehost.com/?w=files&flid=322935
2. If you are not in recovery, reboot into recovery:
With the device powered off, hold Volume Down + Power.
3. Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
4. Return to the main menu.
5. Sideload the LineageOS .zip package:
On the device, select “Apply Update”, then “Apply from ADB” to begin sideload. On the host machine, sideload the package using: adb sideload filename.zip. Tip: Normally, adb will report Total xfer: 1.00x, but in some cases, even if the process succeeds the output will stop at 47% and report adb: failed to read command: Success. In some cases it will report adb: failed to read command: No error which is also fine.
6. (Optionally): If you want to install any add-ons, repeat the sideload steps above for 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 says Signature verification failed, this is expected, please click Continue. 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!
7. Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.
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.