手机版本:pixel6 官方relase镜像:oriole-tq3a.230901.001
同步内核代码
sh
adb shell uname -a
#Linux localhost 5.10.157-android13-4-00003-g776d0a76f6aa-ab10208116 #1 SMP PREEMPT Thu May 25 12:11:12 UTC 2023 aarch64 Toybox
查看对应的分支清单
点击内核工件
可以看到有个 manifest_9937213.xml
下载下来 改名成manifest.xml
sh
mkdir p6k && cd p6k
repo init -u https://android.googlesource.com/kernel/manifest
mv manifest.xml .repo/manifests
repo init -m manifest.xml
repo sync
#编译
tools/bazel build --config=fast //common:kernel_aarch64_dist
#编译输出的文件在 bazel-bin/common/kernel_aarch64_dist/boot.img
#刷入手机测试