Adding QEMU Emulator Support in Android

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding QEMU Emulator Support in Android

Jump to solution
282 Views
vinothkumars
Senior Contributor III

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
177 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
178 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
177 Views
vinothkumars
Senior Contributor III

Thank you Diego,

Thanks,

VinothS,

Regards,
Vinothkumar Sekar
0 Kudos