Revoke USE_CUSTOM_VIRTUAL_MACHINE permission in @Before setup()

We have some tests checking that some features are guarded by
USE_CUSTOM_VIRTUAL_MACHINE, and if caller doesn't have the permission
they should get a SecurityException back (e.g.
MicrodroidTests#createVmWithConfigRequiresPermission). Such test will
fail if it is ran by itself, e.g.:
atest com.android.microdroid.test.MicrodroidTests#createVmWithConfigurRequiresPermission

This changes fixes the problem by revoking the permission during the
test setup.

Test: atest com.android.microdroid.test.MicrodroidTests#createVmWithConfigRequiresPermission
Change-Id: I54e907d5907d225b2f412451fd456241ff568e00
1 file changed
tree: 2a7e4040dbcafb18c7565b146b412a992911e1bf
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. compos/
  5. demo/
  6. demo_native/
  7. docs/
  8. encryptedstore/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. service_vm/
  17. tests/
  18. virtualizationmanager/
  19. virtualizationservice/
  20. vm/
  21. vm_payload/
  22. vmbase/
  23. vmclient/
  24. zipfuse/
  25. .clang-format
  26. .gitignore
  27. Android.bp
  28. OWNERS
  29. PREUPLOAD.cfg
  30. README.md
  31. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.