Instructions to build Lineage OS for the Xiaomi Mi 11 Lite 4g
- Dockerfile 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .devcontainer | ||
| .forgejo | ||
| .gitignore | ||
| .prettierrc.json | ||
| .renovaterc.json | ||
| .yamllint.yml | ||
| diff.patch | ||
| LICENSE | ||
| README.md | ||
| roomservice.xml | ||
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