sm7125-common: Switch to health AIDL HAL

Change-Id: I0600fbe80dbd538dfe2aef0538b68e4e399c915e
15.0
Bruno Martins 8 months ago committed by Simon1511
parent f05bf4790f
commit cdf9885652
  1. 9
      common.mk
  2. 4
      extract-files.sh
  3. 9
      proprietary-files.txt
  4. 7
      rootdir/etc/init.qcom.rc
  5. 1
      sepolicy/vendor/charger_vendor.te
  6. 2
      sepolicy/vendor/file_contexts
  7. 3
      sepolicy/vendor/hwservice_contexts

@ -111,6 +111,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.cas@1.2-service
# Charger
PRODUCT_PACKAGES += \
charger_res_images_vendor
# Control groups and task profiles
PRODUCT_COPY_FILES += \
system/core/libprocessgroup/profiles/cgroups_30.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \
@ -200,6 +204,8 @@ PRODUCT_PACKAGES += \
# Health
PRODUCT_PACKAGES += \
android.hardware.health-service.samsung \
android.hardware.health-service.samsung-recovery \
android.hardware.health@2.1.vendor
# HIDL
@ -406,9 +412,6 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
libcrypto-v33
PRODUCT_COPY_FILES += \
prebuilts/vndk/v30/arm64/arch-arm64-armv8-a/shared/vndk-sp/libutils.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libutils-v30.so
# WiFi
PRODUCT_PACKAGES += \
android.hardware.wifi-service \

@ -67,10 +67,6 @@ function blob_fixup() {
xxd -p -c0 "${2}" | sed "s/600e40f9820c805224008052e10315aa080040f9e30314aa/600e40f9820c805224008052e10315aa080040f9030080d2/g" | xxd -r -p > "${2}".patched
mv "${2}".patched "${2}"
;;
vendor/lib64/hw/android.hardware.health@2.0-impl-2.1-samsung.so)
# Replace libutils with vndk30 libutils
"${PATCHELF}" --replace-needed libutils.so libutils-v30.so "${2}"
;;
vendor/lib64/hw/gatekeeper.mdfpp.so|vendor/lib64/libskeymaster4device.so)
"${PATCHELF}" --replace-needed "libcrypto.so" "libcrypto-v33.so" "${2}"
;;

@ -701,15 +701,6 @@ vendor/firmware/a630_gmu.bin
vendor/firmware/a630_sqe.fw
vendor/firmware/a640_gmu.bin
# Health
vendor/bin/hw/android.hardware.health@2.1-service-samsung
vendor/etc/init/android.hardware.health@2.1-service-samsung.rc
-vendor/etc/vintf/manifest/android.hardware.health@2.1-samsung.xml
vendor/lib/hw/android.hardware.health@2.0-impl-2.1-samsung.so
vendor/lib64/hw/android.hardware.health@2.0-impl-2.1-samsung.so|c2fe30e1db417bf33262f4a126f4ee496499958a
vendor/lib/vendor.samsung.hardware.health@2.0.so
vendor/lib64/vendor.samsung.hardware.health@2.0.so
# HotwordEnrollment
-product/priv-app/HotwordEnrollmentOKGoogleEx3HEXAGON/HotwordEnrollmentOKGoogleEx3HEXAGON.apk
-product/priv-app/HotwordEnrollmentXGoogleEx3HEXAGON/HotwordEnrollmentXGoogleEx3HEXAGON.apk

@ -867,13 +867,6 @@ service profiler_daemon /system/bin/profiler_daemon
group root
disabled
service charger /system/bin/charger
class charger
user system
group system graphics input
capabilities SYS_BOOT
seclabel u:r:charger:s0
service vendor.ssr_diag /system/vendor/bin/ssr_diag
class late_start
user system

@ -0,0 +1 @@
allow charger_vendor sysfs_battery:file r_file_perms;

@ -63,5 +63,5 @@
/(vendor|system/vendor)/bin/hw/vendor.samsung.hardware.thermal@1.0-service u:object_r:hal_thermal_default_exec:s0
/(vendor|system/vendor)/bin/hw/android.hardware.sensors-service.samsung-multihal u:object_r:hal_sensors_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator\-service\.samsung u:object_r:hal_vibrator_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.health@2\.1-service-samsung u:object_r:hal_health_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.health-service\.samsung u:object_r:hal_health_default_exec:s0
/(vendor|system/vendor)/bin/hw/sehradiomanager u:object_r:sehradiomanager_exec:s0

@ -7,9 +7,6 @@ vendor.samsung.hardware.bluetooth.audio::ISehBluetoothAudioProvidersFactory
# GNSS
vendor.samsung.hardware.gnss::ISehGnss u:object_r:hal_gnss_hwservice:s0
# Health
vendor.samsung.hardware.health::ISehHealth u:object_r:hal_health_hwservice:s0
# RIL
vendor.samsung.hardware.radio.bridge::ISehBridge u:object_r:hal_telephony_hwservice:s0
vendor.samsung.hardware.radio::ISehRadio u:object_r:hal_telephony_hwservice:s0

Loading…
Cancel
Save