Wrapper service: only register if enabled.
- wrapper services should only register themselves if
persist.hal.binderization is true (which is set in system
settings).
- If binderization is disabled, we just block the service (otherwise it
will just be restarted by init).
Bug: 34256441
Test: nfc and lights work with ag/1833821 with persist.hal.binderization
set to on and off. There are no additional selinux denials. No other
services are affected by this (ENABLE_TREBLE also now requires setting
a hal to hwbinder in the manifest to force/guarantee it to be binderized).
Change-Id: Ibc314338db5ac9857479609d293ea73672d90849
diff --git a/transport/Android.bp b/transport/Android.bp
index a5903e0..9dc54b4 100644
--- a/transport/Android.bp
+++ b/transport/Android.bp
@@ -55,6 +55,7 @@
srcs: [
"HidlBinderSupport.cpp",
"HidlPassthroughSupport.cpp",
+ "LegacySupport.cpp",
"ServiceManagement.cpp",
"Static.cpp"
],