yashsingh1/xdaforums huggingface dataset:
[Treble-Enabled Device Development A/AB ROMS] Sands207:
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]
[Treble-Enabled Device Development A/AB ROMS] erfanoabdi:
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
[Treble-Enabled Device Development A/AB ROMS] Royna:
[MENTION=6298645]erfanoabdi[/MENTION] does it work on android 10 vendor?
[Treble-Enabled Device Development A/AB ROMS] erfanoabdi:
Nope it's not supported, only Android 9 vendor
[Treble-Enabled Device Development A/AB ROMS] Omborkar:
The Redmi 7A has a 32-bit kernel according to other threads, do you reckon this will still work?
[Treble-Enabled Device Development A/AB ROMS] vytska69:
Can i install it in galaxy j5 2017?
[Treble-Enabled Device Development A/AB ROMS] tax3718:
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.
[Treble-Enabled Device Development A/AB ROMS] twfs:
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
[Treble-Enabled Device Development A/AB ROMS] ztq2046:
Re-edited:

Sorry, already replied. ?

Awesome work?

btw Should it work on Android 10 vendor ?
[Treble-Enabled Device Development A/AB ROMS] mrtausif2004:
Does it work on oneplus 6t?
[Treble-Enabled Device Development A/AB ROMS] os_man:
"Sent from my iPhone using Tapatalk", really ? :)
[Treble-Enabled Device Development A/AB ROMS] Embeeweezer:
This is crazy cool! I hope a more user friendly install will come. Thanks a lot for working on this great initiative!
[Treble-Enabled Device Development A/AB ROMS] Garfanki:
Does it work on oneplus 5?
[Treble-Enabled Device Development A/AB ROMS] DragonPitbull:
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)?
[Treble-Enabled Device Development A/AB ROMS] babyboy8100:
If I was to install this on my One Plus 7 Pro would msm be able to be used to restore to stock?
[Treble-Enabled Device Development A/AB ROMS] hex@dec:
Really cool!

Could you share the Halium patched kernel image you use for lavender?
[Treble-Enabled Device Development A/AB ROMS] AgustinH:
Question as a noob...how difficult it's to flash this? I want to try out in my backup phone but how can I know if it works?...it's a LeEco Le Max 2. And my main device is a Umidigi S3 Pro
[Treble-Enabled Device Development A/AB ROMS] okloloi:
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!
[Treble-Enabled Device Development A/AB ROMS] JakoDel:
I think so? Qualcomm download mode should be accessible.

---------- Post added at 10:40 AM ---------- Previous post was at 10:37 AM ----------

[MENTION=6298645]erfanoabdi[/MENTION]

Sorry for the tag, but this seems to be a rather important question. And I have one too: Flashing UT (and halium) leaves the bootloader (and recovery) partition untouched, right?
[Treble-Enabled Device Development A/AB ROMS] okloloi:
So it seems like my google-fu has failed me, I was mistakenly using the wrong button combo for fastboot.
[Treble-Enabled Device Development A/AB ROMS] 117micc:
Does anyone have the files for a working OG pixel so on ubuntu touch?
[Treble-Enabled Device Development A/AB ROMS] tt1pjm:
I've had a successful (river) build with:

git clone -b android-9.0.0_r57 h**ps://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9

git clone -b android-9.0.0_r57 h**ps://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9
[Treble-Enabled Device Development A/AB ROMS] idumych:
Can you provide a little bit more information? "In order to get media working you need to update in apparmor in kernel, check links blew as example " in the OP makes no sense to me, there's no instructions how to actually apply those patches. What steps did you take other than those two git clones?

---------- Post added at 01:30 AM ---------- Previous post was at 01:27 AM ----------

The instructions in the first post are quite vague, not possible to follow without a fair amount of experience. Can someone who's actually gotten this working post the specific commands used please?

For that matter, why isn't anyone posting kernel builds to share with others? What a tease! I'd love a copy of whatever you flashed on your River.
[Treble-Enabled Device Development A/AB ROMS] tt1pjm:
erfanoabdi has provided his halium patched repo so I think you only need to run the first patch script over river_defconfig. If you check the 4.9 apparmor patches you'll see that they are applied to the repo erfanoabdi provided so you only need to clone that. I haven't fully validated all the other patches are applied but if any are needed just check how to use git log/apply for creating and applying patches.

I haven't flashed this yet and this is my first attempt at seeing if I could get a successful build. If and when I get a successful build flashed I'll post details.
[Treble-Enabled Device Development A/AB ROMS] BombinBasta:
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
[Treble-Enabled Device Development A/AB ROMS] idumych:
Anyone have Anbox working? Followed instructions here, got "ubport is not supported (yet)" https://forums.ubports.com/topic/1676/development-testers-for-anbox/9
[Treble-Enabled Device Development A/AB ROMS] twfs:
I'm pretty sure that is the same one I been trying to build with that gives me that error. Could you give me some brief instructions on the commands you used please? Thank you for your reply
[Treble-Enabled Device Development A/AB ROMS] mrtausif2004:
Hi can you please share the procedure and files used for oneplus6t?

And any bugs you facing?
[Treble-Enabled Device Development A/AB ROMS] okloloi:
I just followed the instructions from here

https://github.com/ubports/porting-notes/wiki/OnePlus-6(t)-(fajita---enchilada)

So fa, Bluetooth is messed up. It will connect but no sound through the headphones. Also the status bar display is cut off a bit on the side and by the front camera. Haven't really had much time to mess around with it.
[Treble-Enabled Device Development A/AB ROMS] CactiChameleon9:
Installer not writing images?

Hi, I am trying to install on a sm-t580, but all I got was a black screen, so I installed viper os GSI to test and treble is working. But when I use the installer, viper OS is still there, and boots, so I don't think the installer is working for me.... is it not writing the images? Can I follow the steps manually? Any help would be greatly appreciated.

(yes I have compiled a kernel using the patching instructions and a video online https://www.youtube.com/watch?v=qCJEevBe0Qs)
[Treble-Enabled Device Development A/AB ROMS] :
Oneplus 5 | LineageOS 16 kernel

I have managed to boot on my Oneplus 5 using a patched LineageOS 16 kernel. Touchscreen is non functional so I got stuck on language select screen.

Stock kernel would end up in a bootloop.
[Treble-Enabled Device Development A/AB ROMS] idumych:
Some notes on the Moto G7 River. I have the "RETUS" variant, apparently. I went from the most current stock rom to Lineage 16, and then flashed the boot file for River from lolinet. Then, I just flashed the GSI package in TWRP and it worked great. Only minor issue is lots of screen tearing and flickering, but wifi and cellular and sound were all good out of the box. I'd daily driver this if there were just a fix for the graphical issues and a working method to set up Anbox.

Fellow River owners, if you flash that firmware package for River that's on lolinet with the boot file, and you lose your radio, that's probably why. It worked better for me when I just ignored that file the first time. After applying it I lost my IMEI and Ubuntu started making a loud hiss each time I pressed a key on the virtual keyboard. I wouldn't recommend using that firmware package at all. It took me around 6 hours to find a stock firmware package that would actually restore my IMEI.
[Treble-Enabled Device Development A/AB ROMS] feiplane:
alright....

followed exactly in the guide to patch kernel, defconfig, fixes and etc, the phone(ze620kl) booted succesfully into ubuntu touch,

but as expected bugs happened here and there especially wifi and bluetooth failed to work.

so i just reverted back to previous rom with twrp backups(every necessary partitions) and booted with no issue except wifi,

no cure no matter what i tried(factory reset, reflash factory stock rom, restore backups), the wifi simply just won't turns on

why is this happening? and i wonder what is inside rootfs in the v9 installer.
[Treble-Enabled Device Development A/AB ROMS] mrtausif2004:
i have successfully booted it on my oneplus6t, UI is really nice.

But some issues are being faced:

1. Bluetooth does not work (no sound but connected)

2. Notch area is not aligned and hiding notification icons

3. Bottom area of the screen is halfway down, causing issue to click on button

I have some queries also:

1. Connecting with computer does not shows up anything, how can I copy data and access it on phone?

2. Does apps with ANDbox works in the same way as on Android? Such as titanium backup etc

thanks
[Treble-Enabled Device Development A/AB ROMS] oldman20:
can i install app like linux normal, sir?

this project can be multiboot with android wil be greatest! maybe in the feature?
[Treble-Enabled Device Development A/AB ROMS] erfanoabdi:
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/

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'm using google gcc toolchain

check this guide for building kernels: https://xdaforums.com/android/software-hacking/reference-how-to-compile-android-kernel-t3627297

also i just built halium-boot for ocean: https://build.lolinet.com/file/halium/ocean/halium-boot.img

thanks, nope only 9 is supported, there's no halium 10 yet

yeah i've booted

use this halium-boot: https://build.lolinet.com/file/halium/fajita/halium-boot.img

(flash it over stock 9)

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

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

sure, https://build.lolinet.com/file/halium/lavender/halium-boot.img

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.

yeah here is the anbox installation guide: https://gist.github.com/Vince1171/69cdcb2e90f2c70e3ee24de93da8caac

yeah that's me,

thanks for letting me know, will join you guys there

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..
[Treble-Enabled Device Development A/AB ROMS] babyboy8100:
So in TWRP I flash the Halium.img for guacamole on boot partition right? then flash the ubports_GSI_installer_v9.zip

824.8 MB like a normal Rom zip file? Is that correct or is there something else I need to do? Mine didn't boot? Thanks!
[Treble-Enabled Device Development A/AB ROMS] Lar1s:
It was awesome but I can't flash it on my Huawei p8 lite 2017 pra
[Treble-Enabled Device Development A/AB ROMS] Htymagic:
Anbox and sound in anbox working, but Libertine and X11 apps, no (Redmi Note 7)

Hey. Thank you very much for the work done. I would like to know. I have a Redmi Note 7 smartphone, most of it works for me, anbox also works. But I would like to install Linux x11 applications on this smartphone, this can be done through Libertine, but for it to work properly, the kernel requires lxc or lxd modules, without them it refuses to work. You can also start a third-party system using chroot, it installs for me, and applications are installed too, only they do not start. Installed Libreoffice, but it does not work, at startup, nothing happens. Could you fix this problem in the next build for Redmi Note 7, or add lxc or lxd modules to the kernel, or can you somehow start it through chroot anyway? If you know, please help with this. And so, from minor bugs for me, auto brightness does not work, sometimes the screen twitches while using the keyboard and there is no indication during charging is displayed. And so, at the expense of Libertine, who knows how to properly run x11 applications, answer.
[Treble-Enabled Device Development A/AB ROMS] idumych:
My Moto G 7 River, RETUS variant has been all messed up ever since I flashed this. I can flash back to stock just fine, but now no matter what I do, I cannot get cell service in either Lineage or Havoc OS. Only works on stock and this GSI. What the heck did I break?
[Treble-Enabled Device Development A/AB ROMS] feiplane:
sry for disturb again

regarding the last post of mine on wifi missing problem

#44

i've sent my phone back to asus for repair,

they just flashed back the stock rom way back to the oreo version from two years ago(which is not available on Asus website, probably the initial version of this phone),

this fixed the wifi issue i've faced after flashed your gsi(not even flashing the latest stock rom be able to cure).

i wonder if the v9 installer might somehow overwrited something that should not be overwrite on this phone?

and how to know that if my phone is A/AB capable?

tried some app on google play stated that my phone is not AB compatible, but what i've seen in twrp backup, there are some partitions which looked identical such as :

-/system

-system image

-/vendor

-vendor image

are these not AB structures?

i really hope that i can use up this gsi without critical issues as it posseses the bluez stack that needed by my ps3 controller to work with bluetooth connectivity(stock rom unable to connect via BT),

but I'm in dilemma of whether to flash this gsi again or not,

i scare that things might get complicated again to broke the wifi and i'm not be able to fix it once more(repair cost considered), please advice.
[Treble-Enabled Device Development A/AB ROMS] screen:
So quick Q, would this have any chance of working on an Sam Gal S6 (g920f) which has been Treble-ized using this method?
[Treble-Enabled Device Development A/AB ROMS] newbie_or_not_newbie:
Hi,

great work.

Like some here, I'm not developer, so I just can wait for a port for galaxy s7 too... (see previous post about s6...) ;)

I see there's already a "treble pizza" for s7, it could help ?
[Treble-Enabled Device Development A/AB ROMS] Htymagic:
Libertine-scope

Hello everyone, I installed libertine chroot on my smartphone to run linux applications, but they do not start. I think the problem is that there is no libertine-scope package in the system, but through sudo apt-get install libertine-scope, it is in the repository, but it is impossible to install it. Can someone know how to fix this? Or, otherwise, run linux somehow
[Treble-Enabled Device Development A/AB ROMS] zarropointone:
Hi,

Thank you for providing this. Could you share the Halium patched kernel image for Santoni?

Thanks.
[Treble-Enabled Device Development A/AB ROMS] Htymagic:
[IMG="libertine"]https://i.ibb.co/BqD5WP4/tmp-5377.png[/IMG]Fix libertine, please
[Treble-Enabled Device Development A/AB ROMS] babyboy8100:
Anybody that can answer?
[Treble-Enabled Device Development A/AB ROMS] essojay:
Is your phone g7 Power? then you have to:

1, boot twrp

2, format data

3, flash copy-partition.zip

4, flash a good base like Lineage OS 16 (android 9)

5, reboot recovery (and after boot you can still access files on phone then goto 6, otherwise format data then go to 6

6, flash halium-boot.img

7, flash GSI

reboot!

But i think halium-boot.img for g7 power (ocean) could be broken, contact Erfans

hope this helps
[Treble-Enabled Device Development A/AB ROMS] babyboy8100:
Thank you! I have the One Plus 7 Pro (Guacamole) I'll try that halium-boot.img
[Treble-Enabled Device Development A/AB ROMS] nexus112:
Thank you for making this GSI.

I have a SM-J730 (2017) which is Trebelized with Exynos7870_CreateVendor_2.0.zip. I found a Lineage 16 rom and a Kernel that I could rebuild with 'check-kernel-config'

Sadly, when I flash: kernel, halium-ramdisk.zip, apparmor_enabler.zip and then the magic: ubports_GSI_installer_v9.zip it doesn't work.

I just end up with bootloop. Any suggestions on how to debug this issue? At this time I'm trying a different GCC compiler to see if it makes a difference. I suspect my manual Trebelizer could be a factor, since my phone is not GSI compatible without it and this different.

Anyway, thanks for making this GSI!
[Treble-Enabled Device Development A/AB ROMS] twfs:
Can anyone else confirm that the (ocean) boot image is broken? I've been trying to get it to boot on mine with no luck.
[Treble-Enabled Device Development A/AB ROMS] gadom92:
Ok, i managed to copile Kernel for my Xiaomi Mi5, so next i have to format data in twrp and:

1 flash vendor partition(or it have to be lineage os16?)

2 Kernel

3 apparmor and halium ramdisk

4 GSI

Am I right?
[Treble-Enabled Device Development A/AB ROMS] essojay:
Yes its broken, Erfan said that much to me, we ve been on trying to boot this ocean halium and try as much as he did with me.. he concluded its broken and would be taken down.

thanks

b\R
[Treble-Enabled Device Development A/AB ROMS] twfs:
Thank you for the reply. Let us know when you guys get it to boot. Can't wait to try it out
[Treble-Enabled Device Development A/AB ROMS] oleonit:
does nfc work here?
[Treble-Enabled Device Development A/AB ROMS] Rush:
Depends on how good the vendor is, for me it works fine though

Bluetooth Ur ****ed on SOME devices though

And those devices are mostly on P vendors so yeah

---------- Post added at 06:24 AM ---------- Previous post was at 06:22 AM ----------

The A/B structure commonly has a System_Root folder on Android 9 P

Or

A System/system folder on Android Q

If you don't have these, it's probably AOnly

Or maybe I'm an idiot and system/system was nontreble and System_root is also on Q

But if you see that folder

It's 100% guaranteed that you have A/B

---------- Post added at 06:25 AM ---------- Previous post was at 06:24 AM ----------

You could also use the treble checker app
[Treble-Enabled Device Development A/AB ROMS] theOriginalSuperl2:
I've tried building a compatible kernel for my Xiaomi Redmi K20 Pro, but I'm facing some issues: the LXC container starts, but fails shortly after, and unity-system-compositor crashes. Does anyone know what could be causing this?

Kernel

Device tree

Full logs are attached below, but here are some relevant snippets:

lxc-start 20200721053559.458 ERROR lxc_cgfsng - cgroups/cgfsng.c:cg_legacy_handle_cpuset_hierarchy:708 - No such file or directory - Failed to create directory "/sys/fs/cgroup/cpuset//lxc"
lxc-start 20200721053559.458 ERROR lxc_cgfsng - cgroups/cgfsng.c:create_path_for_hierarchy:1725 - Failed to handle legacy cpuset controller
lxc-start 20200721053559.458 ERROR lxc_cgfsng - cgroups/cgfsng.c:cgfsng_create:1804 - Failed to create cgroup "/sys/fs/cgroup/cpuset//lxc/android-999"
lxc-start 20200721053559.458 ERROR lxc_cgfsng - cgroups/cgfsng.c:cgfsng_create:1782 - Too many conflicting cgroup names
lxc-start 20200721053559.458 ERROR lxc_start - start.c:lxc_spawn:1537 - Failed creating cgroups.
lxc-start 20200721053559.458 ERROR lxc_start - start.c:__lxc_start:1802 - Failed to spawn container "android".

[2020-07-21 02:00:33.201199] <information> mirserver: Found graphics driver: mir:android-caf (version 1.8.0) Support priority: 0
[2020-07-21 02:00:33.201539] <information> mirserver: Found graphics driver: mir:android (version 1.1.0) Support priority: 256
[2020-07-21 02:00:33.201792] <information> mirserver: Selected driver: mir:android (version 1.1.0)
[2020-07-21 02:00:33.272630] <information> android/server: Error opening HWC HAL. Assuming HWComposer 2 device with libhwc2_compat_layer.
failed to get hwcomposer service

EDIT: Nvm, I was missing Binder patches and kernel configs
[Treble-Enabled Device Development A/AB ROMS] mathew..denniss:
Can anyone point to a guide for paching kernal with haliam....and is it posible to patch an existing kernal...
[Treble-Enabled Device Development A/AB ROMS] surajrv6:
Can anyone answer this question? noob here..

I wanted to know if this GSI implementation works any different than the other ubuntu touch ports. I know the other ports use chroot environment and I read this GSI uses rootfs. Is their any difference?
[Treble-Enabled Device Development A/AB ROMS] idumych:
I don't know if Erfan even reads this thread, or if I need to chase him down on Telegram, but is there a reason why the halium boot devices there are builds for on Lolinet are not upstreamed in Hailum yet? There are builds for several devices that are not listed on the wiki.

My River still shows massive flickering when I try to use this. Not much I can do to troubleshoot with random binaries, it would be nice if this was actually in the Halium tree.

I see this shift in the community and I don't like it, and it's not healthy for the future, for archival purposes. The way that people tend to just emit private builds of things to Telegram and Discord instead of properly participating in the open source projects. It's a bit parasitic, and I pity anyone a year, five years from now, that tries to figure any of this out. It's such a monk mentality, keep your scrolls hidden where no one can learn from them.
[Treble-Enabled Device Development A/AB ROMS] mathew..denniss:
Hi... I was trying to make a patched kernel for ubports Ubuntu touch GSI. Did everything as per the xda page.. and made the patched kernel.....and flashed it on my phone .but it doesn't boot stuck on boot logo... What could be the problem , what am i missing...how to fix this....

---------- Post added at 09:29 AM ---------- Previous post was at 09:27 AM ----------

Bro check out halium9 common kernel error page ...there is a fix for this there
[Treble-Enabled Device Development A/AB ROMS] 2428lu:
Is there a Halium patched kernel suitable for oneplus7t. I’m a novice, I don’t understand those codes very well
[Treble-Enabled Device Development A/AB ROMS] pandabeers88:
Hello, actually I am curious about it and I want to run this on my device.

Can this be installed on miui 12.0.4 eu davinci, and since I wanted to have display refresh rate overclocked, I have flashed hastyIntoxicated r8 kernel, please let me know
[Treble-Enabled Device Development A/AB ROMS] phinhokim:
Can this work in arm32 a64A/B devices?