Instructions to build Lineage OS for the Xiaomi Mi 11 Lite 4g
  • Dockerfile 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-24 03:14:06 +00:00
.devcontainer chore(deps): update ci dependencies (#59) 2026-10-24 03:14:06 +00:00
.forgejo chore(deps): update ci dependencies (#59) 2026-10-24 03:14:06 +00:00
.gitignore feat: update to ubuntu 26 (#57) 2026-10-11 13:07:18 +00:00
.prettierrc.json feat: initial commit 2025-09-10 16:34:09 +02:00
.renovaterc.json feat: update to ubuntu 26 (#57) 2026-10-11 13:07:18 +00:00
.yamllint.yml feat: initial commit 2025-09-10 16:34:09 +02:00
diff.patch feat: update to ubuntu 26 (#57) 2026-10-11 13:07:18 +00:00
LICENSE feat: update to ubuntu 26 (#57) 2026-10-11 13:07:18 +00:00
README.md feat: update to ubuntu 26 (#57) 2026-10-11 13:07:18 +00:00
roomservice.xml feat: update to ubuntu 26 (#57) 2026-10-11 13:07:18 +00:00

Lineage Os build container for Courbet (Xiaomi Mi 11 Lite 4g)

This repository documents how to build the LineageOS rom for the Xiaomi Courbet.

Prepare the environment

For semplicity I set up a devcontainer that you can start using the devcontainer cli tool and later accessed with docker exec.

# Build and start the container.
devcontainer up
# Start a shell into the container.
devcontainer exec bash

Build steps

1. Initialize the repository

The first thing to do is to create the directory where the build process will happen. Then we can enter in that directory and use the repo command to initialize the repository.

export SOURCE_DIR='/workspace/work'
mkdir $SOURCE_DIR

cd $SOURCE_DIR
repo init \
  --depth=1 \
  --git-lfs \
  --manifest-branch lineage-23.2 \
  --manifest-url https://github.com/LineageOS/android

3. Sync the repository

Now it's time to download all the files needed for building the ROM, to do that run this command inside the $SOURCE_DIR directory.

cd $SOURCE_DIR
mkdir .repo/local_manifests
cp ../roomservice.xml .repo/local_manifests/
repo sync

6. Build the ROM

It's now time to start compiling, step into the source directory and let the computer do its work.

cd $SOURCE_DIR
source build/envsetup.sh
# The initial part (generating the ninja file from the Android.bp files)
# requires a lot of ram (around 40g). I recommend creating a temporary swap file
# at least for this step.
brunch courbet user