From eac9496d05f1770d14d99f76f0dedd51c5d79340 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Fri, 26 Jan 2018 11:27:35 +0000 Subject: [PATCH] msm8974-common: Binderize them all * Switch to binderized HAL services as possible and update HIDL manifest accordingly. Change-Id: Id50291488d655187aa013c51bdd6890dca010564 --- manifest.xml | 8 ++++---- msm8974.mk | 6 +++++- sepolicy/common/hal_bluetooth_default.te | 9 +++++++++ 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 sepolicy/common/hal_bluetooth_default.te diff --git a/manifest.xml b/manifest.xml index 54504e7..edb3dce 100644 --- a/manifest.xml +++ b/manifest.xml @@ -19,7 +19,7 @@ android.hardware.bluetooth - passthrough + hwbinder 1.0 IBluetoothHci @@ -59,7 +59,7 @@ android.hardware.gnss - passthrough + hwbinder 1.0 IGnss @@ -113,7 +113,7 @@ android.hardware.keymaster - passthrough + hwbinder 3.0 IKeymasterDevice @@ -144,7 +144,7 @@ android.hardware.memtrack - passthrough + hwbinder 1.0 IMemtrack diff --git a/msm8974.mk b/msm8974.mk index 0db57f5..1a49756 100644 --- a/msm8974.mk +++ b/msm8974.mk @@ -63,6 +63,7 @@ PRODUCT_PACKAGES += \ # Bluetooth PRODUCT_PACKAGES += \ android.hardware.bluetooth@1.0-impl \ + android.hardware.bluetooth@1.0-service \ libbt-vendor # Boot animation @@ -75,6 +76,7 @@ PRODUCT_PACKAGES += \ android.hardware.graphics.composer@2.1-impl \ android.hardware.graphics.mapper@2.0-impl-2.1 \ android.hardware.memtrack@1.0-impl \ + android.hardware.memtrack@1.0-service \ copybit.msm8974 \ gralloc.msm8974 \ hwcomposer.msm8974 \ @@ -103,6 +105,7 @@ PRODUCT_PACKAGES += \ # GPS PRODUCT_PACKAGES += \ android.hardware.gnss@1.0-impl \ + android.hardware.gnss@1.0-service \ gps.msm8974 PRODUCT_COPY_FILES += \ @@ -121,7 +124,8 @@ PRODUCT_COPY_FILES += \ # Keymaster PRODUCT_PACKAGES += \ - android.hardware.keymaster@3.0-impl + android.hardware.keymaster@3.0-impl \ + android.hardware.keymaster@3.0-service # Lights PRODUCT_PACKAGES += \ diff --git a/sepolicy/common/hal_bluetooth_default.te b/sepolicy/common/hal_bluetooth_default.te new file mode 100644 index 0000000..33aa630 --- /dev/null +++ b/sepolicy/common/hal_bluetooth_default.te @@ -0,0 +1,9 @@ +allow hal_bluetooth_default { + bt_fw_file + wifi_data_file +}:file r_file_perms; + +allow hal_bluetooth_default bluetooth_device:chr_file w_file_perms; +allow hal_bluetooth_default firmware_file:dir r_dir_perms; +allow hal_bluetooth_default proc_bt_sleep:dir w_dir_perms; +allow hal_bluetooth_default proc_bt_sleep:file w_file_perms;