sailfishos-oneplus5 / boot-switcher

A simple flashable zip to switch between LineageOS and Sailfish OS boots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

boot-switcher

A simple flashable zip to switch between LineageOS and Sailfish OS boots specialized for cheeseburger (OnePlus 5) & dumpling (OnePlus 5T) devices by default.

Feel free to fork and adapt (see guide below the screenshots) to your device's needs! ^^

Screenshots

Sailfish OS LineageOS

Adaptation guide

To make a flashable, package the boot-switcher directory contents inside this repo into a zip. Usually I prefer to use zip -r Switch-Boot-Target-SFOS-LOS.zip . from within a terminal when inside said directory.

NOTICE: Here are few things that may or may not require changes in the update-binary shell script on your part:

  1. Variable TARGET_DEVICES: Change your device codename(s) to be the value of this variable (multiple devices are seperated by spaces) e.g. for the OnePlus 7 Pro alone it should be TARGET_DEVICES="guacamole"
  2. Treble: On some devices the /vendor partition may be something else such as /odm, or alternatively on older bases such as 14.1 it wouldn't be present. Remove / modify the check part from your script as needed. Changing the error message is also approperiate :)
  3. Boot partition: The boot partition path (/dev/block/bootdevice/by-name/boot) may need to be replaced to match your device needs. This could also be an absolute partition like /dev/block/sde19 etc

About

A simple flashable zip to switch between LineageOS and Sailfish OS boots


Languages

Language:Shell 100.0%