[Android Software/Hacking General [Developers Only]] Duhjoker:
howdy folks im currently in development of bringing Ubuntu touch and Native Ubuntu to the lge cv1 devices including the Aristo 2, Aristo 2 plus and K8 plus.

Oreo roms only!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

i have had a really hard time trying to bring this too and to be honest most of the work ive done has been Kernel related as Ubuntu touch and Ubuntu need systemd/upstart kernels to boot into the rootfs and beyond.

oreo roms only !!!!!!!!!!!!!!!!!!!!!!

ive also added kali-linux-nethunter support to the kernels as well for all of you ethical hackers that want to use it for protecting yourself from the blackhat hackers out there or a lil bit of both. Duhjoker doesnt judge just compiles the kernels for you.

DUALBOOT

one added benifit is that one kernel dual boots to android and a native Ubuntu rootfs of your choice. both kernels will boot ubuntu touch or ubuntu natively but the second kernel has ubuntu security requirements like apparmor enabled that break android.

Ubuntu Touch

is still in development as im needing a solid system.img. Right now i have been working on an armhf GSI thats also non trebler. the GSI is complete and has vendor built into it but im having trouble getting the lxc container inside the rootfs to start android.

that means no GUI but it will boot into the ubuntu touch rootfs. it will also boot into any ubuntu armhf root file system from ubuntu 14 to 18.

this is where i need help. the system is quite capable of booting to the rootfs and beyond but i cant figure out how to go beyond on the non-UT rootfs.

im including some downloads

a boot.img that has commandline arguments built in to allow you to boot ubuntu from your external sdcard.

dualboota2p.zip that flashes the Kali_NeHunter dualbooting kernel to your boot image

fullubuntukernel.zip which flashes the full ubuntu non-dualboot kernel to the cli modified boot images described above

arm-ramdisk-installer zip that flashes a generic ubuntu ramdisk to your boot image.

a /lib/modules and /boot folder to add to your rootfs that has all the modules needed by the rootfs and boot folder requirements needed like a config and vmlinuz

you will need:::::

cv1 device = aristo 2, aristo 2 plus or k8 plus

32gb or higher (im using a 128gb) external sdcard split into two partition vfat for partition 1 and ext4 for partition 2

an armhf ubuntu root file system of your choice between 14 and 18 or choose a kali rootfs

basic knowledge of linux comnands and setting up a rootfs for ssh and internet

patience and know how

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I AM IN NO WAY RESPONSIBLE FOR ANY

DAMAGE CAUSED TO YOUR DEVICE BY ATTEMPTING THE PRICEDURES BELOW YOUR WARRANTY IS NOW VOID

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

now it seems like a lot of flashing but its to make it easier to get started with dual booting from your external sdcard. And i know some people like to make sure thier boot image matches thier device so the comnandline arguments are

root=/dev/mmcblk1p2 rootwait rw rootfstype=ext4

now to make it easier for you to chroot into the native ubuntu envirinment on your device so you do configuring offline and set things up you will need to add these lines to init.rc under mkdir /mnt/appfuse 0711 root root.

mkdir /linux 0755 root root

mount ext4 /dev/block/mmcblk1p2 /inux rw

that will automatically mount the second partition of your ext4 formatted external sdcard to a folder called /linux in the root of your device as well as make it rewritable.

note: after much experimentation i chose to use init.rc as on oreo any other place i put the commands had no effect.

if you want to try an initd command the kernel and rom support it just add an init.d folder to /system/etc from TWRP RECOVERY and place your script in init.

the following procedure is to build up rootfs

download and copy an ubuntu or kali armhf rootfs.tar.gz to the /linux folder

type these commands into your terminal on your cv1 device

su

cd /linux

tar xvzf your-rootfs.tar.gz

cd /

chroot /linux /bin/bash

export PATH="$PATH:/usr/sbin:/sbin:/bin"

apt-get update

apt-get install build-essential lightdm openssh-server

once thats done setup ssh for your device so when it boots into the rootfs you can use ssh to problem solve and get the GUI working

now you should reference this for how i got the idea and how i got this far.

https://www.reddit.com/r/lgv20/comments/bqp7f3

you will need to compile install and make a service for msm-framebuffer-refresher

add the /lib/modules and /boot zip to your rootfs and grab all your firmware from etc vendor and root and copy them to /lib/firmware of your rootfs

go ahead and grab that kali firmware from the magiskk repo too.

you should already be testing out the dualboot kernel i hope and now you that you have set up lets move to flashing

boot to twrp and flash the provided boot.img or your own modified boot.img then flash the full ubuntu kernel if you like or leave it on the dualboot kernel. now flash the ramdisk installer and reboot

it will go to first lge bootsplash then then bootloader unkock warning then boot to first android lge bootsplash.

you have now booted into the ubuntu rootfs.

But wait theres no GUI

i have mentioned that already.

heres where i need help and testing. i have not been able to go any further as my expertise is lacking. its all there and should work but im not knowledgable enough to solve the problems of getting it up and running.

for some the refresher might do the trick if you get it figured out. for others it might just need ssh into it to startx

im still working on getting the UT rom going and ill post what i have of that too for any of you that want to try and get it going

you can find me ubports porting and @duhjokersinhell on telegram if you need

here is the link to the ubuntu touch images i have compiled. they are a halium-9 ubuntu touch rootfs.img and a hal9 android-rootfs.img. to play around with them just go to twrp and format data making sure its formatted to ext4. then move the images from your external sdcard storage to data. then flash the full ubuntu kernel zip and the ramdisk installer

ssh phablet@10.15.19.82

password = phablet

try to get the lxc container loaded with

sudo mount -o remount,rw /

sudo lxc-start -n android

to get init logs

sudo lxc-start -n android -F -l DEBUG -- /init

ubuntu touch - Google Drive

drive.google.com