Adding QEMU Emulator Support in Android

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Adding QEMU Emulator Support in Android

跳至解决方案
2,848 次查看
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 项奖励
回复
1 解答
2,743 次查看
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 项奖励
回复
2 回复数
2,744 次查看
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 项奖励
回复
2,743 次查看
vinothkumars
Senior Contributor IV

Thank you Diego,

Thanks,

VinothS,

Regards,
Vinothkumar Sekar
0 项奖励
回复