How to Build LineageOS 18.1 ROM on Ubuntu 16.04

在Ubuntu 16.04上编译LineageOS 18.1 | Android 11

https://wiki.lineageos.org/devices/walleye/build

Pixel 2: walleye

初始化代码仓库

repo init --repo-branch v2.0 -u https://github.com/LineageOS/android.git -b lineage-18.1 --depth 1

配置私有驱动仓库

mkdir -p .repo/local_manifests/
gedit .repo/local_manifests/roomservice.xml

内容如下

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="TheMuppets/proprietary_vendor_google" path="vendor/google" remote="github"/>
</manifest>

下载代码

#!/bin/bash
repo sync -j32
while [ $? -ne 0 ]
do
    repo sync -j32
done

编译

export PHONE_NAME=walleye
source build/envsetup.sh && breakfast ${PHONE_NAME} && brunch ${PHONE_NAME}

FASTBOOT烧写(刷机)

主要是system.img userdata.img vendor.img boot.img

fastboot flashall -w