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>
diff --git a/TEST_MAPPING b/TEST_MAPPING
index d17b434..0c4e8e6 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -10,6 +10,9 @@
"name": "MicrodroidTestApp"
},
{
+ "name": "MicrodroidTestAppNoPerm"
+ },
+ {
"name": "art_standalone_dexpreopt_tests"
},
{