Zahkc 45 Posted April 21, 2021 Share Posted April 21, 2021 Alright, after toying with it for a few days I have cracked dual booting and decided to write up the steps myself. YOU WILL LOSE YOUR DATA DOING THIS. Credit to @order#10248 for proving the concept. First thing you will want to do is re-flash stock android on your phone. There isn't an official repo for this yet but @Waxberry has kindly provided one on this post. Download and extract the files from there and run the script fastboot_all.bat or you can download my modified linux version flash_all.sh. While that is flashing, download the latest version of Lineage here. You will need the recovery and the nightly. Once downloaded and the flash_all script is finished, navigate to the folder with the lineage os stuff in it and run the following commands: fastboot set_active a fastboot flash boot_a ./lineage-18.1-xxxxxxxxx-recovery-pro1.img fastboot erase userdata It is important the recovery is installed on the a slot as it will install it to the b slot. Once that is done boot into recovery, select "Apply Update -> Apply from ADB" then run this command: adb sideload lineage-18.1-xxxxxxxx-nightly-pro1-signed.zip Once that finishes go back to the main menu and select "Reboot system now". Once booted don't bother setting it up cause we are gonna reset it later. reboot back into the boot loader and run these commands: fastboot erase userdata fastboot set_active a Now you can run the UBports installer. Make sure that "Wipe personal data" and "Flash system partitions using fastboot" are both checked. Once again when the device installs you will get to the set up screen, don't configure anything yet cause were wiping it again. Boot back into your boot loader and run the following commands: fastboot erase userdata fastboot set_active b Then start the system. Hopefully you will get into Lineage and now you can set stuff up. You will need to root it thou to use Swap my Slot. You can download the magisk apk and my patched version of the boot image for lineage-18.1-20210419-magisk-22.1 and skip the below steps. To do so you are going to want to download the script Payload Dumper. Set it up as instructed on the git and do the following: Extract the file payload.bin from lineage-18.1-xxxxxxxx-nightly-pro1-signed.zip to the same path as payload dumper. Rrun python3 payload_dumper.py ./payload.bin Navigate to the folder output and copy boot.img to your phones storage, sd or usb (in android mode) Now you have the boot img on your phone you are going to want to download and install the magisk_manager apk. Open the Magisk app and click install. It will ask you to provide the boot.img to patch. Now move the patched magisk_patched-xxxx_xxxxx.img file from your phones Downloads folder to your computer again. Now you have a rooted version of the Lineage boot image on your pc. To flash it run the following command: fastboot set_active b fastboot flash boot_b ./magisk_patched-xxxxx_xxxxx.img Now start your phone again. Open Magisk to confirm it is rooted. Now we can install the Switch my State app. Firstly you will need to download the bootctl-binary module and install it through magisk. (The jigsaw piece on the bottom of the app). After it reboots you can now install the Switch My Slot.apk on android. After installing, simply open it and press the green button to switch to ubuntu. Once back in ubuntu you can install the Switch My Slot.click or simply download it off the OpenStore. Now you can easily switch between the Hope this help. I don't check this forum too much but I will try answer questions you may have. Important note: Lineage dose not reset the Bluetooth chip to the right RF state and UBTouch isn't able to resolve it for whatever reason. You will need to ensure Bluetooth is off in lineage before switching to UBTouch. 5 16 Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.