diff options
author | Cole Faust <colefaust@google.com> | 2023-09-01 16:18:10 -0700 |
---|---|---|
committer | Cole Faust <colefaust@google.com> | 2023-09-01 16:18:10 -0700 |
commit | bff3433084b1d4ba272a25779ae609fdbf004626 (patch) | |
tree | 5d11b91a68348fc8ee6e84b07a7115f0276a4894 | |
parent | 076137f53104abb6b2a0ff1bb44bcc7b2adff64f (diff) | |
download | hwservicemanager-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.bp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 { |