[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-20。"],[],[],null,["# Try Android Virtualization Framework (AVF)\n\npKVM is included in the Generic Kernel Image configuration files for\n`android-13-5.x`. To try AVF, follow these steps:\n\n1. Include `com.android.virt` APEX in your system image.\n\n2. Run tests to confirm that pKVM is working:\n\n $ atest MicrodroidHostTestCases MicrodroidTestApp\n\n3. Execute the following commands to run a demo app that spawns a pVM, boots\n Microdroid, and adds two numbers together:\n\n $ TARGET_BUILD_APPS=MicrodroidDemoApp m apps_only dist\n\n $ adb install -t out/dist/MicrodroidDemoApp.apk\n\n $ adb shell pm grant com.android.microdroid.demo android.permission.MANAGE_VIRTUAL_MACHINE\n\nTo download source code for this demo app, refer to\n[MicrodroidDemo](https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/heads/android16-release/android/MicrodroidDemoApp/).\n| **Note:** This demo works only on Cuttlefish."]]