Use libapexsupport only for apex variants

Bug: 312510312
Test: m libhardware libhardware.vendor libhardware.vendor.com.google.cf.ir
  # check DTNEEDED
  # only apex variant should have libapexsupport
Change-Id: I3161b54aeb9dd6c5780041769fa149302c621279
diff --git a/Android.bp b/Android.bp
index ee61635..d9e0694 100644
--- a/Android.bp
+++ b/Android.bp
@@ -126,6 +126,11 @@
                 "libvndksupport",
             ],
         },
+        non_apex: {
+            exclude_shared_libs: [
+                "libapexsupport",
+            ],
+        },
     },
     min_sdk_version: "29",
 }