libhardware loads a module from APEX

libhardware loading a module from /vendor/lib/hw is dangerous when it's
used by APEX because libhardware modules don't provide ABI stability.

Now, libhardware, when it's used in APEX, loads a module from the same
APEX, not crossing the APEX/system boundary.

Bug: 300564486
Test: consumerir HAL APEX loading consumerir.default from the same APEX
Test: ConsumerIrTest VtsHalIrTargetTest
Change-Id: I086eec8d1726b9f0c42a7b1a26dfcc93f394106e
diff --git a/Android.bp b/Android.bp
index 210db85..ee61635 100644
--- a/Android.bp
+++ b/Android.bp
@@ -92,6 +92,7 @@
 
     srcs: ["hardware.c"],
     shared_libs: [
+        "libapexsupport",
         "libcutils",
         "liblog",
         "libvndksupport",
@@ -114,10 +115,16 @@
     },
     target: {
         host: {
-            exclude_shared_libs: ["libvndksupport"],
+            exclude_shared_libs: [
+                "libapexsupport",
+                "libvndksupport",
+            ],
         },
         recovery: {
-            exclude_shared_libs: ["libvndksupport"],
+            exclude_shared_libs: [
+                "libapexsupport",
+                "libvndksupport",
+            ],
         },
     },
     min_sdk_version: "29",