A comprehensive device tree for Xiaomi Garnet (Redmi Note 13 Pro 5G / Poco X6 5G), enabling the development and building of custom Android ROMs such as LineageOS and other AOSP-based distributions.
This branch is for Alphadroid builds
To set up your build environment and integrate this device tree, follow these steps. This guide assumes you have a working AlphaDroid build environment already configured.
- A Linux-based operating system (Ubuntu 20.04+ LTS recommended).
repotool installed and configured.- Sufficient disk space (250GB+ recommended).
- AlphaDroid Source.
-
Navigate to your AlphaDroid source directory:
cd ~/garnet/alphadroid
(Replace
~/garnet/alphadroidwith your actual source directory path) -
Clone the
android_device_xiaomi_garnetrepository:git clone https://github.com/android_device_xiaomi_garnet.git device/xiaomi/garnet
This will place the device tree in the correct location for your build system to recognize it.
Once the device tree is cloned, you can use it to build a custom ROM for your Xiaomi Garnet.
-
Initialize the build environment:
. build/envsetup.sh -
Start the build process:
brunch alpha_garnet-userdebug
This command will compile the entire ROM for your Xiaomi Garnet. The resulting
.zipfile, which can be flashed via a custom recovery, will be located in theout/target/product/garnet/directory upon successful completion.
Tree Credits: AdarshGrewal