UBPort installer slot
I managed to dual boot Android 11and Ubuntu touch, but I did not use ubport installer as I was not sure what it does exactly to the memory layout of the device.
my device is Oneplus 6t with a dual boot recovery.
using A/B/C partition layout.
32GB for Android 11 and 32GB for testing other OSs and 64GB for shared Storage.
I used this guide to install Ubuntu Touch, after I installed Android 9 on testing partition.
so far it works.
my question is about UBport installer, does it install UBT to the active slot or does it wipe everything ?
I'm too busy right now to browse the source code to see what it does.
Android 11 as in Stock ROM or Custom ROM ??
This sounds very interesting if it works without any weird issues!
@nero355 with a Custom Rom, It works. I tested many combinations of Operating systems and Android versions.
currently I'm on Android 11 (Evolution X 5.9.2 Rom) on Slot A and Ubuntu Touch on Slot B.
I want to try the installation with ubports-installer, but i'm not sure if it flashes to the active slot on boot-loader or does it change both Slots.
I cant risk losing Slot A, I have many mods on it, even Nand backup won't restore it to the current state.
arubislander last edited by
@bahha said in UBPort installer slot:
I want to try the installation with ubports-installer,
What improvement over your current situation do you expect to gain by using the UBports installer, seeing that you already have a functioning install, tailored to your specific needs?
@arubislander The latest release on GitHub project is Aug 24, 2020.
I'm not sure if it's up to date.
I just want to try the official installer and see the difference.
it's a simple request, if someone could confirm if the UBports-installer can use a specific slot or no.
arubislander last edited by
@bahha Ah, I see. The tutorial you followed does not install the UBports recovery image, and therefore cannot be updated via OTA's. Being an image from August '20 it is most definitely out of date.
I know nothing about your particular phone. But I remember reading in the telegram chat that it is recommended to flash both slots with the installer, implying that only one is flashed at a time.
AppLee last edited by
@arubislander said in UBPort installer slot:
to flash both slots with the installer, implying that only one is flashed at a time.
Now that Arubislander mentioned it, I recall something similar here on the forum. The slot has to be selected manually and the installer will install on the current one...
Lakotaubp last edited by
I have a nasty feelng there s not enough space for both andriod and UT and there recoverys and that one overwrites the other. Are not the two slots just to aid updateing or some such thing. There has to be a reason everyone is not duel booting UT with something on this phone. Either that or OTA;s destroy things again.
Thank you all, I went through the source code and the installer log.
All it does is flash boot.img and vbmeta.img to the current slot and does not touch the other. the recovery image does not work so I fastboot boot a working recovery and continue from adb shell.
Then it downloads the xz.tar files with their keys and push them to the device /cache/recovery once it's in recovery mode, then it adds recovery.fstab to /etc/
The downloaded files come with ubuntu_command file that is executed in recovery using system-image-upgrader script.
the script formats system_b partition and load keyrings then extracts the xz.tar files in cache, and strangely tries to move cache/data/* to /data when the first one doesn't exist, because the extraction results in system folder not data. (I guess I will change the path)
Anyway now that I'm sure the main slotA does not get touched I will keep testing until I come up with something that works. (I already got it to the boot splash but it keep loading and does not go past it)