QEMU vs Android emulator: command line options

十年热恋 提交于 2019-12-11 13:54:08

问题


What are differences regarding command line options between stock QEMU and Android emulator?

Is there an option that has the same syntax, but works differently between the two? Or similar gotchas..


回答1:


Android emulator is built atop qemu, so basically android emulator inherits all the features from qemu and gets more specific options for android. From the view of the command line, android emulator is more like a wrapper. It looks like:

emulator <options-for-android> -qemu <options-for-qemu>

You can refer the code in file main-emulator.c in the folder of android emulator. In there, you will see that all the options will be parsed and sent to the main function of vl-android.c, which is the entry point of a modified qemu.




回答2:


You can also observe which options are given to QEMU with -verbose: How to show which options are passed to QEMU when launching the android emulator?

Comparing to qemu-system-x86_64 -help, there are some Android specific options there.

The location of the Android emulator source code has been asked at: Modifying Android emulator source code



来源:https://stackoverflow.com/questions/20998180/qemu-vs-android-emulator-command-line-options

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!