Is there any way to set ro.kernel.qemu to 0 in the emulator?

I replaced the modified build.prop file that contains ro.kernel.qemu=0 for system.img with yaffey, but that didn't work. When the emulator is rebooted, ro.kernel.qemu=1 still exists on the adb shell getprop .

EDIT:

I also tried:

  • add ro.kernel.qemu=0 to default.prop in ramdisk.img
  • add setprop ro.kernel.qemu 0 to init.goldfish.rc in ramdisk.img

But all this did not work. When I run the emulator with the modified ramdisk.img, ro.kernel.qemu still remains on the adb shell getprop .

Now I'm trying to rebuild the kernel to set it to 0, but I did not find where ro.kernel.qemu installed in the kernel source.

Score for any advice.

+6
source share
1 answer

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

In addition, you may need to change init, because it can set the ro.kernel.xxxxx variables from the kernel command line before parsing the boot properties configuration file.

+2
source

Source: https://habr.com/ru/post/980990/


All Articles