且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有没有办法在模拟器中将ro.kernel.qemu设置为0?

更新时间:2023-02-25 13:22:05

您需要修改ramdisk.img,其中包含/init和初始属性文件. system.img将在以后安装,因此在那里进行的任何更改都不会影响启动.

You need to modify ramdisk.img which contains /init and the initial property files. system.img is mounted later, so any changes there will not affect the boot.

此外,可能需要修改init,因为它可能会在解析启动属性配置文件之前,从内核命令行 设置ro.kernel.xxxxx变量.

Also, init might need to be modified, because it might set the ro.kernel.xxxxx variables from the kernel command-line before parsing the boot property config file.