从 adb shell 获取正在运行的 LineageOS 内核配置

问题描述 投票:0回答:1

我已经从源代码构建了 LineageOS 18.1 并在 ARM 设备上刷新了它。在构建主机上,我可以看到

lineage/out/target/product/jfltexx/obj/KERNEL_OBJ/.config
包含

KERNEL_IKCONFIG=y
KERNEL_IKCONFIG_PROD=y

this SO post等来源,我得出结论,此内核配置将启用对设备上内核配置的运行时读取访问,例如使用

adb shell

此内核配置到底在 LineageOS 运行时文件系统中的什么位置?

android linux-kernel lineageos
1个回答
0
投票

它位于标准位置

/proc/config.gz
并且可以使用
adb shell zcat /proc/config.gz | grep <YOUR_SEARCH_TERM_HERE>

进行 grep
© www.soinside.com 2019 - 2024. All rights reserved.