This repo contians Base Guide for installation/upgrading and Scripts for automatic building of Ubuntu RootFS, Mainline Kernel, Firmware package, ALSA configs for OnePlus 12R/Ace 3
Just go to the "Actions" tab, open the latest build and download files named rootfs_(Desktop Environment)_(Kernel version)_A(Android Version) and boot-oneplus-aston_(Kernel version)_(Phone RAM Size)G_A(Android Version).img
For upgrading - download all available files, except for rootfs
- Unpack all the .zip files you downloaded into one folder
- Open terminal and go to the folder where you unpacked all .zip files into
- Run "sudo dpkg -i *-oneplus-aston.deb"
- If you use flashing instead of fastboot boot: flash a new boot image using "dd if="path to boot.img" of=/dev/disk/by-partlabel/boot_('a' or 'b')"
- Reboot using new image
- Download parted executable from the "Releases" tab
- Reboot to TWRP recovery and push the downloaded file to /tmp
(adb push parted /tmp) - Access phone shell
(adb shell) - Grant execute permission and open parted for further steps
(chmod +x /tmp/parted && /tmp/parted /dev/block/sda) - Look at the partitions and remember "Number", "Start" "End" for "userdata" partition
(print) - Remove the "userdata" partition
(rm "Number") - Create a new "userdata" partition
(mkpart userdata f2fs "Start" "End - size that you want to allocate for Ubuntu install") - Create a new "win" partition
(mkpart win ntfs "End - size that you want to allocate for Ubuntu install" "End") - Reboot back to recovery
- Format the new "userdata" using TWRP format data function
- Format the new "win" partition
(mkfs.ext4 /dev/block/by-name/win)
- You should have custom partitions, follow "Partitioning steps..."
- Unpack .zip files you downloaded
- Unpack extracted rootfs.7z
- rootfs.img must be flashed to the partition named "win"
⚠️ USE "dd if="path to rootfs.img" of=/dev/block/by-name/win"
FLASHING USING FASTBOOT RESULTS IN BROKEN UBUNTU FILESYSTEM - Flash (or fastboot boot) boot.img that you got from boot archive
