msm8226-common: Binderize them all

* Switch to binderized HAL services as possible and update
   HIDL manifest accordingly.

 * Following considerations regarding those without any change:

   - Sensors left out of the game because wouldn't work
     otherwise.

Change-Id: Id50291488d655187aa013c51bdd6890dca010564
This commit is contained in:
Bruno Martins 2018-01-26 11:27:35 +00:00 committed by RomanDesigner
parent 2da3370a1e
commit 3b70fbcd31
No known key found for this signature in database
GPG key ID: 6757965E5D54CB61
6 changed files with 25 additions and 7 deletions

View file

@ -1,7 +1,7 @@
<manifest version="1.0" type="device"> <manifest version="1.0" type="device">
<hal format="hidl"> <hal format="hidl">
<name>android.hardware.audio</name> <name>android.hardware.audio</name>
<transport arch="32">passthrough</transport> <transport>hwbinder</transport>
<version>2.0</version> <version>2.0</version>
<interface> <interface>
<name>IDevicesFactory</name> <name>IDevicesFactory</name>
@ -10,7 +10,7 @@
</hal> </hal>
<hal format="hidl"> <hal format="hidl">
<name>android.hardware.audio.effect</name> <name>android.hardware.audio.effect</name>
<transport arch="32">passthrough</transport> <transport>hwbinder</transport>
<version>2.0</version> <version>2.0</version>
<interface> <interface>
<name>IEffectsFactory</name> <name>IEffectsFactory</name>
@ -19,7 +19,7 @@
</hal> </hal>
<hal format="hidl"> <hal format="hidl">
<name>android.hardware.bluetooth</name> <name>android.hardware.bluetooth</name>
<transport arch="32">passthrough</transport> <transport>hwbinder</transport>
<version>1.0</version> <version>1.0</version>
<interface> <interface>
<name>IBluetoothHci</name> <name>IBluetoothHci</name>
@ -61,7 +61,7 @@
</hal> </hal>
<hal format="hidl"> <hal format="hidl">
<name>android.hardware.gnss</name> <name>android.hardware.gnss</name>
<transport arch="32">passthrough</transport> <transport>hwbinder</transport>
<version>1.0</version> <version>1.0</version>
<interface> <interface>
<name>IGnss</name> <name>IGnss</name>
@ -106,7 +106,7 @@
</hal> </hal>
<hal format="hidl"> <hal format="hidl">
<name>android.hardware.keymaster</name> <name>android.hardware.keymaster</name>
<transport arch="32">passthrough</transport> <transport>hwbinder</transport>
<version>3.0</version> <version>3.0</version>
<interface> <interface>
<name>IKeymasterDevice</name> <name>IKeymasterDevice</name>
@ -128,7 +128,7 @@
</hal> </hal>
<hal format="hidl"> <hal format="hidl">
<name>android.hardware.memtrack</name> <name>android.hardware.memtrack</name>
<transport arch="32">passthrough</transport> <transport>hwbinder</transport>
<version>1.0</version> <version>1.0</version>
<interface> <interface>
<name>IMemtrack</name> <name>IMemtrack</name>

View file

@ -93,6 +93,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
# Audio # Audio
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.audio@2.0-impl \ android.hardware.audio@2.0-impl \
android.hardware.audio@2.0-service \
android.hardware.audio.effect@2.0-impl \ android.hardware.audio.effect@2.0-impl \
audio_policy.msm8226 \ audio_policy.msm8226 \
audio.a2dp.default \ audio.a2dp.default \
@ -108,6 +109,7 @@ PRODUCT_PACKAGES += \
# Bluetooth # Bluetooth
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.0-impl \ android.hardware.bluetooth@1.0-impl \
android.hardware.bluetooth@1.0-service \
libbt-vendor libbt-vendor
# Boot animation # Boot animation
@ -120,6 +122,7 @@ PRODUCT_PACKAGES += \
android.hardware.graphics.composer@2.1-impl \ android.hardware.graphics.composer@2.1-impl \
android.hardware.graphics.mapper@2.0-impl \ android.hardware.graphics.mapper@2.0-impl \
android.hardware.memtrack@1.0-impl \ android.hardware.memtrack@1.0-impl \
android.hardware.memtrack@1.0-service \
copybit.msm8226 \ copybit.msm8226 \
gralloc.msm8226 \ gralloc.msm8226 \
hwcomposer.msm8226 \ hwcomposer.msm8226 \
@ -144,6 +147,7 @@ PRODUCT_PACKAGES += \
# GPS # GPS
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.gnss@1.0-impl \ android.hardware.gnss@1.0-impl \
android.hardware.gnss@1.0-service \
gps.msm8226 gps.msm8226
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
@ -164,7 +168,8 @@ PRODUCT_COPY_FILES += \
# Keymaster # Keymaster
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.keymaster@3.0-impl android.hardware.keymaster@3.0-impl \
android.hardware.keymaster@3.0-service
# LiveDisplay # LiveDisplay
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \

View file

@ -0,0 +1,7 @@
allow hal_bluetooth_default bluetooth_device:chr_file w_file_perms;
allow hal_bluetooth_default bt_fw_file:file r_file_perms;
allow hal_bluetooth_default efs_file:dir search;
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;
allow hal_bluetooth_default wifi_data_file:file r_file_perms;

View file

@ -0,0 +1,3 @@
allow hal_gnss_default location_data_file:file rw_file_perms;
qmux_socket(hal_gnss_default)

View file

@ -1,2 +1,4 @@
allow hal_keymaster_default vfat:dir search; allow hal_keymaster_default vfat:dir search;
allow hal_keymaster_default vfat:file { getattr open read }; allow hal_keymaster_default vfat:file { getattr open read };
r_dir_file(hal_keymaster_default, firmware_file)

View file

@ -0,0 +1 @@
dontaudit hal_memtrack_default { domain -surfaceflinger }:file read;