summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2023-09-01 16:18:10 -0700
committerCole Faust <colefaust@google.com>2023-09-01 16:18:10 -0700
commitbff3433084b1d4ba272a25779ae609fdbf004626 (patch)
tree5d11b91a68348fc8ee6e84b07a7115f0276a4894
parent076137f53104abb6b2a0ff1bb44bcc7b2adff64f (diff)
downloadhwservicemanager-bff3433084b1d4ba272a25779ae609fdbf004626.tar.gz
Install the compatibility symlink with a soong module
So that it's properly tracked for artifact path requirements, sbom, and installclean-less builds. Bug: 205632228 Test: built and ran the emulator observed the /system/bin/hwservicemanager symlink is still there Change-Id: Ic7cfb263be2eb598a704c765bbef1afc5a0f5023
-rw-r--r--Android.bp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index f3f2342..2009186 100644
--- a/Android.bp
+++ b/Android.bp
@@ -112,6 +112,17 @@ cc_binary {
],
bootstrap: true,
system_ext_specific: true,
+ required: ["hwservicemanager_compat_symlink_module"],
+}
+
+// Create symlink /system/bin/hwservicemanager -> /system/system_ext/bin/hwservicemanager
+// Old vendor libraries (like libhidlbase) may require /system/bin/hwservicemanager to be present
+install_symlink {
+ name: "hwservicemanager_compat_symlink_module",
+ symlink_target: "/system/system_ext/bin/hwservicemanager",
+ // installed_location is relative to /system because that's the default partition for soong
+ // modules, unless we add something like `system_ext_specific: true` like in hwservicemanager.
+ installed_location: "bin/hwservicemanager",
}
cc_test {