Skip to content

Instantly share code, notes, and snippets.

@stefan2904
Last active October 18, 2017 04:06
Show Gist options
  • Save stefan2904/c877512c5a221ea7898675731707587d to your computer and use it in GitHub Desktop.
Save stefan2904/c877512c5a221ea7898675731707587d to your computer and use it in GitHub Desktop.
LineageOS on my OnePlus One

Basically, follow guide at https://wiki.lineageos.org/devices/bacon/install

Download files

Run commands

# enable usb debugging on device (developer settings)

$ ./adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
5d61e8f9	device

$ ./adb reboot bootloader

$ sudo -s

$ ./fastboot devices                            
5d61e8f9	fastboot

$ ./fastboot oem unlock
...
OKAY [  0.021s]
finished. total time: 0.021s

# now we wait forever while the device tells us it is deleting everything ...
# (this takes forever)

# re-enable usb debugging

$ ./adb reboot bootloader

$ ./fastboot devices
5d61e8f9	fastboot

$ ./fastboot flash recovery twrp-3.1.1-0-bacon.img
target reported max download size of 1073741824 bytes
sending 'recovery' (13972 KB)...
OKAY [  0.440s]
writing 'recovery'...
OKAY [  0.184s]
finished. total time: 0.624s

$ ./adb push lineage-14.1-20171016-nightly-bacon-signed.zip /sdcard/

5909 KB/s (332698899 bytes in 54.976s)

$ ./adb push open_gapps-arm-7.1-nano-20171017.zip /sdcard/
4953 KB/s (190085862 bytes in 37.474s)

$ ./adb push addonsu-14.1-arm-signed.zip /sdcard/
10335 KB/s (566692 bytes in 0.053s)

# wipe Cache, System and Data partitions

# install lineage 
# install gapps
# install addonsu

# reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment