Move createVmRequiresPermission test into a separate APK

This is a squash of aosp/2974230 and aosp/2974230

With associating a new gid for MANAGE_VIRTUAL_MACHINE permissions,
this causes ActivityManager to kill processes that attempt
to modify its gid at runtime.

Remove runtime grant/revoke of MANAGE_VIRTUAL_MACHINE permissions from
existing tests. Move the createVmRequiresPermission that's testing for a
lack of MANAGE_VIRTUAL_MACHINE into its own APK.

Bug: 323448288
Bug: 322197421
Test: atest MicrodroidTests and atest MicrodroidTestAppNoPerm

Merged-In: I1ec62228462efb198ada9141ad91c987d0f8710d
Change-Id: I1ec62228462efb198ada9141ad91c987d0f8710d
Signed-off-by: David Dai <davidai@google.com>
7 files changed
tree: e69101e7ca680d92e4d5c020538656f8c1bc3756
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. compos/
  5. demo/
  6. docs/
  7. encryptedstore/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. rialto/
  15. tests/
  16. virtualizationmanager/
  17. virtualizationservice/
  18. vm/
  19. vm_payload/
  20. vmbase/
  21. vmclient/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. 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.