This is based on Halium 9.0, and uses the mechanism described in this page.
This project can be built manually (see the instructions below) or you can
download the ready-made artifacts from gitlab: take the latest
archive,
unpack the artifacts.zip
file (make sure that all files are created inside a
directory called out/
, then follow the instructions in the
Install section.
To manually build this project, follow these steps:
./build.sh -b bd # bd is the name of the build directory
./build/prepare-fake-ota.sh out/device_violet.tar.xz ota
./build/system-image-from-ota.sh ota/ubuntu_command out
After the build process has successfully completed, run
fastboot flash boot out/boot.img
fastboot flash system out/system.img
If you'd like to change the splash screen, run
./splash/generate.sh out
fastboot flash splash out/splash.img
The vendor image is available as a downloadable blob here. If you'd like to build it yourself, the steps are quite similar to those needed to build the system image with Halium:
- Initialize the repo:
repo init -u https://github.com/Halium/android -b halium-9.0 --depth=1
repo sync
- Until this PR is not
merged, you'll have to download the
fm-bridge
repository yourself:
mkdir -p vendor/ubports/fm-bridge
git clone https://gitlab.com/ubuntu-touch-xiaomi-violet/fm-bridge.git vendor/ubports/fm-bridge
- Apply hybris patches:
hybris-patches/apply-patches.sh --mb
source build/envsetup.sh && breakfast violet
mka vendorimage
This will generate a file our/target/product/violet/vendor.img
that can be
flashed with fastboot flash vendor vendor.img
.