Adding QEMU Emulator Support in Android

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding QEMU Emulator Support in Android

Jump to solution
1,366 Views
vinothkumars
Senior Contributor IV

Dear NXP,

I am working on Android 9. I needs to add ro.kernel.qemu support in Android 9. By default ro.kernel.qemu is false

std::unique_ptr<CommBase> CommFactory::create() {
 bool isEmulator = android::base::GetBoolProperty("ro.kernel.qemu", false);

 if (isEmulator) {
 return std::make_unique<PipeComm>();
 } else {
 return std::make_unique<SocketComm>();
 }
}

Currently, emulated value from BSP through Socket Communication (SocketComm).

Is there any possible to add emulator (ro.kernel.qemu)  in source ?

Thanks & Regards,

VinothS,

Regards,
Vinothkumar Sekar
0 Kudos
1 Solution
1,261 Views
diegoadrian
NXP Employee
NXP Employee

Unfortunately, It is not supported by our BSP.

However, you could add an instance in the init.rc that enables qemu support.

setprop ro.kernel.qemu 1 

However, we cannot guarantee that this will work.

Best regards,

Diego.

View solution in original post

0 Kudos
2 Replies
1,262 Views
diegoadrian
NXP Employee
NXP Employee

Unfortunately, It is not supported by our BSP.

However, you could add an instance in the init.rc that enables qemu support.

setprop ro.kernel.qemu 1 

However, we cannot guarantee that this will work.

Best regards,

Diego.

0 Kudos
1,261 Views
vinothkumars
Senior Contributor IV

Thank you Diego,

Thanks,

VinothS,

Regards,
Vinothkumar Sekar
0 Kudos