[GSI][arm64][A/AB] Ubuntu Touch (ubports)

Search This thread

erfanoabdi

Recognized Developer
Jan 3, 2015
1,010
3,155
Tehran
erfanoabdi.github.io
0*xXfO04nJkRitzXe6

Code:
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */

What is Ubuntu Touch?
Ubuntu Touch is the touch-friendly mobile version of Ubuntu.
This operating system is developed and maintained by UBports: An international community of passionate volunteers.
This means Ubuntu Touch is 100% community driven and independent.

What is Halium?
Halium is the collaborative project to unify the Hardware Abstraction Layer for projects which run GNU/Linux on mobile devices with pre-installed Android.

How it is a GSI?
First of all, I should mention ubports GSI definition is different from android, but both are generic.
ubports root file system was always generic and works for most cases, but devs were porting halium system image to add device-specific (HALs and configs) support to ubports Android container.
But after project treble which introduced in android 8, all device-specific parts of android system image moved to vendor partition and we can use "Generic system images" over one vendor partition.
In halium version 9, we use this adventure and have a totally generic system image + root file system.

Requirements:
The only Requirement of booting this GSI is having Halium patched kernel.
Keep in mind having android 9 firmware installed on the device as GSI base is mandatory (GSI can be used on android 8.0 and 8.1 vendors but experimental and not supported yet)

How to install?
For installation guide and kernel patchings details check ubports wiki page: Click Here

Download:
https://build.lolinet.com/file/halium/GSI/

Whats suppose to work?
  • Bluetooth
  • Camera
  • Cellular Radio
  • Mobile Data
  • GPS
  • Graphics
  • Sensors
  • Sound
  • In-call Audio
  • Touch
  • Wifi
  • Vibration
  • Fingerprint
  • Anbox
  • Media Playback

Known bugs?
Bugs are very device specific and mostly should blame device kernel.
oh and of course VoLTE :)

Supports:

Report Bugs:
Explain your bug in proper support telegram groups (from above)
Please don't ask about spoon-feeding or helping on building kernel or device specific builds.
Please don't ask about picking/reverting commits or any basic git commands.
bug reports without logs will be ignored
logs we need are: android logcat, kernel log, syslog
kernel log:
Code:
dmesg
syslog:
Code:
cat /var/log/syslog
logcat:
Code:
sudo -s
LD_LIBRARY_PATH=/system/lib64 lxc-attach -e -n android -- /system/bin/logcat

Sources:

Good luck
ENJOY!​
 

Attachments

  • screenshot20200605_185551882.jpg
    screenshot20200605_185551882.jpg
    74.3 KB · Views: 8,938
  • screenshot20200605_184012516.jpg
    screenshot20200605_184012516.jpg
    82.6 KB · Views: 8,935
  • screenshot20200605_185407778.jpg
    screenshot20200605_185407778.jpg
    127.6 KB · Views: 8,772
  • screenshot20200605_184639224.png
    screenshot20200605_184639224.png
    144.2 KB · Views: 8,542
  • screenshot20200605_184627665.png
    screenshot20200605_184627665.png
    79 KB · Views: 8,312
  • screenshot20200605_184606195.png
    screenshot20200605_184606195.png
    135.6 KB · Views: 8,163
  • screenshot20200605_184601614.png
    screenshot20200605_184601614.png
    129.8 KB · Views: 7,892
  • screenshot20200605_184551650.png
    screenshot20200605_184551650.png
    81.1 KB · Views: 7,675
  • screenshot20200605_184526987.png
    screenshot20200605_184526987.png
    115.3 KB · Views: 7,555
  • screenshot20200605_183749735.png
    screenshot20200605_183749735.png
    119.5 KB · Views: 7,396
  • screenshot20200605_184024825.jpg
    screenshot20200605_184024825.jpg
    175 KB · Views: 7,440
  • screenshot20200605_184006355.jpg
    screenshot20200605_184006355.jpg
    173 KB · Views: 7,666
  • screenshot20200605_183956313.png
    screenshot20200605_183956313.png
    111.7 KB · Views: 7,414
  • screenshot20200605_183949099.png
    screenshot20200605_183949099.png
    225.6 KB · Views: 7,176
  • screenshot20200605_183918833.jpg
    screenshot20200605_183918833.jpg
    189.6 KB · Views: 6,878
  • screenshot20200605_183731140.png
    screenshot20200605_183731140.png
    132.7 KB · Views: 6,618
Last edited:

twfs

Senior Member
Oct 3, 2013
157
35
Hi looks great but should there be any concerns that this shows in the screenshots its based on nougat and Ubuntu 16.04 just curious if there would be a more up to date version in the works
 

erfanoabdi

Recognized Developer
Jan 3, 2015
1,010
3,155
Tehran
erfanoabdi.github.io
Hi looks great but should there be any concerns that this shows in the screenshots its based on nougat and Ubuntu 16.04 just curious if there would be a more up to date version in the works


The ubuntu touch is based on ubuntu 16.04 LTS version and gets needed security patches so no worries
And about the Android N screenshots, that was anbox (kinda an Android emulator) to run Android apps on gnu/linux operating systems
But this GSI needs Android 9 vendor for base to boot correctly..


Sent from my iPhone using Tapatalk
 

twfs

Senior Member
Oct 3, 2013
157
35
The ubuntu touch is based on ubuntu 16.04 LTS version and gets needed security patches so no worries
And about the Android N screenshots, that was anbox (kinda an Android emulator) to run Android apps on gnu/linux operating systems
But this GSI needs Android 9 vendor for base to boot correctly..


Thank you for the reply will try this asap!
 

Sands207

Senior Member
Oct 13, 2014
1,278
670
Portland,Maine
I'm using a Moto g6 play (Jeter) I am using pie vendor on the GSI I am currently on. Besides flashing the Ubuntu GSI and the pie vendor, do i need to patch my kernel too?

Sent from my moto g(6) play using Tapatalk
 

twfs

Senior Member
Oct 3, 2013
157
35
I'm using a Moto g6 play (Jeter) I am using pie vendor on the GSI I am currently on. Besides flashing the Ubuntu GSI and the pie vendor, do i need to patch my kernel too?


I believe so hoping I get a chance to try this today but if you beat me to it let us know how it goes. I will be trying it on a moto g7 power and a pixel 2xl if everything goes smooth
 
  • Like
Reactions: Sands207

Sands207

Senior Member
Oct 13, 2014
1,278
670
Portland,Maine
I believe so hoping I get a chance to try this today but if you beat me to it let us know how it goes. I will be trying it on a moto g7 power and a pixel 2xl if everything goes smooth
Are you going to patch your kernel? Our kernel source is a real unorganized mess, I'm looking forward to trying this out but im not looking forward to untangling the disaster we have on github to do it

Sent from my moto g(6) play using Tapatalk
 
  • Like
Reactions: twfs and eMPee584

twfs

Senior Member
Oct 3, 2013
157
35
Are you going to patch your kernel? Our kernel source is a real unorganized mess, I'm looking forward to trying this out but im not looking forward to untangling the disaster we have on github to do it


Yeah if I understand correctly that is the only way it will boot. Haven't looked at the g6 forums in awhile to see if there might be a custom kernel that may be easier to modify because I don't think we will get lucky enough to find one with it already built in.
 
  • Like
Reactions: Sands207

Sands207

Senior Member
Oct 13, 2014
1,278
670
Portland,Maine
Yeah if I understand correctly that is the only way it will boot. Haven't looked at the g6 forums in awhile to see if there might be a custom kernel that may be easier to modify because I don't think we will get lucky enough to find one with it already built in.
I am one of the top contributers to the g6, I've built ROM's and kernels and while I've been able to produce permissive kernels with a few modifications... patching this kernel may prove difficult for me at my current skill level. I'll give it my best shot though [emoji846]

Sent from my moto g(6) play using Tapatalk
 

erfanoabdi

Recognized Developer
Jan 3, 2015
1,010
3,155
Tehran
erfanoabdi.github.io

tax3718

Member
Mar 28, 2009
38
4
Santa Cruz de Tenerife
Hello,
Excuse my ignorance.
I have already used Ubuntu touch on oneplus one and on Xperia X.
1) Is it possible to carry out this installation on a oneplus 7?
2) What is the ota based on?
3) In what percentage is it operational?
Thank you so much for everything.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    0*xXfO04nJkRitzXe6

    Code:
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */

    What is Ubuntu Touch?
    Ubuntu Touch is the touch-friendly mobile version of Ubuntu.
    This operating system is developed and maintained by UBports: An international community of passionate volunteers.
    This means Ubuntu Touch is 100% community driven and independent.

    What is Halium?
    Halium is the collaborative project to unify the Hardware Abstraction Layer for projects which run GNU/Linux on mobile devices with pre-installed Android.

    How it is a GSI?
    First of all, I should mention ubports GSI definition is different from android, but both are generic.
    ubports root file system was always generic and works for most cases, but devs were porting halium system image to add device-specific (HALs and configs) support to ubports Android container.
    But after project treble which introduced in android 8, all device-specific parts of android system image moved to vendor partition and we can use "Generic system images" over one vendor partition.
    In halium version 9, we use this adventure and have a totally generic system image + root file system.

    Requirements:
    The only Requirement of booting this GSI is having Halium patched kernel.
    Keep in mind having android 9 firmware installed on the device as GSI base is mandatory (GSI can be used on android 8.0 and 8.1 vendors but experimental and not supported yet)

    How to install?
    For installation guide and kernel patchings details check ubports wiki page: Click Here

    Download:
    https://build.lolinet.com/file/halium/GSI/

    Whats suppose to work?
    • Bluetooth
    • Camera
    • Cellular Radio
    • Mobile Data
    • GPS
    • Graphics
    • Sensors
    • Sound
    • In-call Audio
    • Touch
    • Wifi
    • Vibration
    • Fingerprint
    • Anbox
    • Media Playback

    Known bugs?
    Bugs are very device specific and mostly should blame device kernel.
    oh and of course VoLTE :)

    Supports:

    Report Bugs:
    Explain your bug in proper support telegram groups (from above)
    Please don't ask about spoon-feeding or helping on building kernel or device specific builds.
    Please don't ask about picking/reverting commits or any basic git commands.
    bug reports without logs will be ignored
    logs we need are: android logcat, kernel log, syslog
    kernel log:
    Code:
    dmesg
    syslog:
    Code:
    cat /var/log/syslog
    logcat:
    Code:
    sudo -s
    LD_LIBRARY_PATH=/system/lib64 lxc-attach -e -n android -- /system/bin/logcat

    Sources:

    Good luck
    ENJOY!​
    5
    Hey guys sorry if i reply late..
    here is the download page for halium-boots i've built for my devices for testing, maybe this comes useful
    https://build.lolinet.com/file/halium/


    Hello,
    Excuse my ignorance.
    I have already used Ubuntu touch on oneplus one and on Xperia X.
    1) Is it possible to carry out this installation on a oneplus 7?
    2) What is the ota based on?
    3) In what percentage is it operational?
    Thank you so much for everything.
    1) yeah it's possible to boot that device, i've booted op7tpro but had some bugs and i really didn't put time to work on them
    2) no ota updates yet
    3) 90% of halium9/ubports platform is functional, but device specific bugs might show up

    I've prepared g7 power (ocean) kernel source as it's common with my device.
    just need to build it
    (Build with gcc, not clang)
    https://github.com/erfanoabdi/android_kernel_motorola_sdm632/tree/halium-9.0


    Hey could you possibly link me to the toolchain you are building with please. I've been trying to build this thing for awhile now and always end up with Bluetooth btfm_slim fatal error. Thanks
    i'm using google gcc toolchain
    check this guide for building kernels: https://forum.xda-developers.com/an...erence-how-to-compile-android-kernel-t3627297
    also i just built halium-boot for ocean: https://build.lolinet.com/file/halium/ocean/halium-boot.img

    Re-edited:
    Sorry, already replied.
    Awesome work
    btw Should it work on Android 10 vendor ?
    thanks, nope only 9 is supported, there's no halium 10 yet

    Does it work on oneplus 6t?
    yeah i've booted
    use this halium-boot: https://build.lolinet.com/file/halium/fajita/halium-boot.img
    (flash it over stock 9)

    Many thanks erfanoabdi building GSI's for all.
    My small and ignorant question is whether this GSI Ubuntu Touch (ubports) is restricted to be started on a Mediatek device (android 9 obviously - octacore)?
    thanks
    no restriction even there's a fully functional mtk device called volla phone by ubports team
    this GSI works on mtk, exynos and qcom devices

    If I was to install this on my One Plus 7 Pro would msm be able to be used to restore to stock?
    yeah it's possible to go back to stock
    we just place some files on data partition and flash halium-boot on boot partition no more touching to partition tables

    Really cool!
    Could you share the Halium patched kernel image you use for lavender?
    sure, https://build.lolinet.com/file/halium/lavender/halium-boot.img

    Flashed today on a 6t. Some minor things I think can be fixed after reading the docs but a lot of learning to do for me.

    One question, though. How do I boot back into twrp to resize the rootfs?

    Awesome work btw!
    this 8GB is size of rootfs.img which is read-only and just root of ubports for system files and shouldn't be edited, your data partition size is untouched.

    Anyone have Anbox working? Followed instructions here, got "ubport is not supported (yet)" https://forums.ubports.com/topic/1676/development-testers-for-anbox/9
    yeah here is the anbox installation guide: https://gist.github.com/Vince1171/69cdcb2e90f2c70e3ee24de93da8caac

    Hi erfanoabdi.
    Your work makes talk on ubports forums.
    Maybe you could come and share your work there too.
    And maybe join the ubp (device porting?) team?
    I see your nick is registred there : https://forums.ubports.com/user/erfanoabdi
    Is that you?
    All effort for UBP rising should be merged in one i think...
    See here https://forums.ubports.com/topic/1621/would-it-be-possible-to-make-a-ubports-gsi , or there https://forums.ubports.com/topic/4501/this-might-help-with-porting-devices-to-ut/7?_=1593207213241
    yeah that's me,
    thanks for letting me know, will join you guys there

    can i install app like linux normal, sir?
    this project can be multiboot with android wil be greatest! maybe in the feature?
    1) yeah you can install "some" linux apps on libertine container but not all: http://docs.ubports.com/en/latest/userguide/dailyuse/libertine.html
    2) multiboot not supported, but device specific porters found solutions for it..
    4
    Hi looks great but should there be any concerns that this shows in the screenshots its based on nougat and Ubuntu 16.04 just curious if there would be a more up to date version in the works


    The ubuntu touch is based on ubuntu 16.04 LTS version and gets needed security patches so no worries
    And about the Android N screenshots, that was anbox (kinda an Android emulator) to run Android apps on gnu/linux operating systems
    But this GSI needs Android 9 vendor for base to boot correctly..


    Sent from my iPhone using Tapatalk
    3
    I believe so hoping I get a chance to try this today but if you beat me to it let us know how it goes. I will be trying it on a moto g7 power and a pixel 2xl if everything goes smooth


    I've prepared g7 power (ocean) kernel source as it's common with my device.
    just need to build it
    (Build with gcc, not clang)
    https://github.com/erfanoabdi/android_kernel_motorola_sdm632/tree/halium-9.0


    Sent from my iPhone using Tapatalk
    2
    I believe so hoping I get a chance to try this today but if you beat me to it let us know how it goes. I will be trying it on a moto g7 power and a pixel 2xl if everything goes smooth
    Are you going to patch your kernel? Our kernel source is a real unorganized mess, I'm looking forward to trying this out but im not looking forward to untangling the disaster we have on github to do it

    Sent from my moto g(6) play using Tapatalk
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone