60991a57c4
VirtualizationModuleFrameworkInitializer.registerServiceWrappers() is
called in SystemServiceRegistry during zygote initialization to register
Manager classes inside the com.android.virt APEX with the
Context.getSystemService() lookup API.
For the devices without AVF support the
Context.getSystemService(VirtualMachineManager.class) will return null.
A CTS test is added to verify this behaviour.
Bug: 249093790
Test: presubmit
Change-Id: Ib8a94643e5f7ccbfa55dd659d93d02d146af6443
Merged-In: Ib8a94643e5f7ccbfa55dd659d93d02d146af6443
(cherry picked from commit
|
||
---|---|---|
.. | ||
java/com/android/microdroid/demo | ||
res | ||
Android.bp | ||
AndroidManifest.xml | ||
README.md |
README.md
Microdroid demo app
Building
UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true TARGET_BUILD_APPS=MicrodroidDemoApp m apps_only dist
Installing
adb install -t out/dist/MicrodroidDemoApp.apk
adb shell pm grant com.android.microdroid.demo android.permission.MANAGE_VIRTUAL_MACHINE
Don't run the app before granting the permission. Or you will have to uninstall the app, and then re-install it.
Running
Run the app by touching the icon on the launcher. Press the run
button to
start a VM. You can see console output from the VM on the screen. You can stop
the VM by pressing the stop
button.