Change com.android.runtime.host to be an installable test_apex

We need this module to actually be built and installed to the
out-directory but we don't want it to affect the libraries installed
on actual devices so make it a test_apex.

Bug: 123892969
Bug: 123892969
Test: Build and boot
Test: ./art/test/testrunner/run_build_test_target.py -j72 art-linux-bionic-x64-zipapex
Change-Id: I9950698863fb280cbdc6dfa4743985c0217d2e7c
diff --git a/build/art.go b/build/art.go
index 5236e31..4b63829 100644
--- a/build/art.go
+++ b/build/art.go
@@ -298,11 +298,11 @@
 	// changes this to 'prefer32' on all host binaries. Since HOST_PREFER_32_BIT is
 	// only used for testing we can just disable the module.
 	// See b/120617876 for more information.
-	android.RegisterModuleType("art_apex", artApexBundleFactory)
+	android.RegisterModuleType("art_apex_test", artTestApexBundleFactory)
 }
 
-func artApexBundleFactory() android.Module {
-	module := apex.ApexBundleFactory()
+func artTestApexBundleFactory() android.Module {
+	module := apex.ApexBundleFactory( /*testApex*/ true)
 	android.AddLoadHook(module, func(ctx android.LoadHookContext) {
 		if envTrue(ctx, "HOST_PREFER_32_BIT") {
 			type props struct {
@@ -356,7 +356,7 @@
 func libartStaticDefaultsFactory() android.Module {
 	c := &codegenProperties{}
 	module := cc.DefaultsFactory(c)
-	android.AddLoadHook(module, func(ctx android.LoadHookContext) {	codegen(ctx, c, true) })
+	android.AddLoadHook(module, func(ctx android.LoadHookContext) { codegen(ctx, c, true) })
 
 	return module
 }