Skip to content

sangyufeiwanya/xiaomi-note3-ubuntutouch

Repository files navigation

Ubuntu Touch device tree for the Xiaomi Redmi Note 7 Pro (violet)

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.

How to build

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

Install

After the build process has successfully completed, run

fastboot flash boot out/boot.img
fastboot flash system out/system.img

Splash screen

If you'd like to change the splash screen, run

./splash/generate.sh out
fastboot flash splash out/splash.img

Building the vendor image

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:

  1. Initialize the repo: repo init -u https://github.com/Halium/android -b halium-9.0 --depth=1
  2. repo sync
  3. 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
  1. Apply hybris patches: hybris-patches/apply-patches.sh --mb
  2. source build/envsetup.sh && breakfast violet
  3. mka vendorimage

This will generate a file our/target/product/violet/vendor.img that can be flashed with fastboot flash vendor vendor.img.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages