Add test for INSTALL_PACKAGES when adding installer package

Verifies that INSTALL_PACKAGES is required to add an installer
to an existing package and that an app cannot exploit a previous
vulnerability allowing it to grant itself whitelist restricted
permissions.

Bug: 150857253

Test: atest android.appsecurity.cts.PackageSetInstallerTest
Test: atest CtsMediaHostTestCases
Test: cts-tradefed run commandAndExit cts --abi armeabi-v7a
    -m CtsMediaBitstreamsTestCases

Change-Id: Ib94bc437d6738821f58367216b711096459768c2
diff --git a/hostsidetests/appsecurity/Android.bp b/hostsidetests/appsecurity/Android.bp
index 3cc61fe..7a77cc9 100644
--- a/hostsidetests/appsecurity/Android.bp
+++ b/hostsidetests/appsecurity/Android.bp
@@ -17,7 +17,7 @@
     defaults: ["cts_defaults"],
 
     // Only compile source java files in this apk.
-    srcs: ["src/**/*.java"],
+    srcs: ["src/**/*.java", "src/**/*.kt"],
 
     libs: [
         "cts-tradefed",
@@ -27,7 +27,11 @@
         "hamcrest-library",
     ],
 
-    static_libs: ["CompatChangeGatingTestBase"],
+    static_libs: [
+        "CompatChangeGatingTestBase",
+        "CtsPkgInstallerConstants",
+        "cts-host-utils",
+    ],
 
     java_resource_dirs: ["res"],