mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
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:
parent
2da3370a1e
commit
3b70fbcd31
6 changed files with 25 additions and 7 deletions
12
manifest.xml
12
manifest.xml
|
@ -1,7 +1,7 @@
|
|||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.audio</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IDevicesFactory</name>
|
||||
|
@ -10,7 +10,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.audio.effect</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IEffectsFactory</name>
|
||||
|
@ -19,7 +19,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.bluetooth</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IBluetoothHci</name>
|
||||
|
@ -61,7 +61,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.gnss</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IGnss</name>
|
||||
|
@ -106,7 +106,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.keymaster</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>3.0</version>
|
||||
<interface>
|
||||
<name>IKeymasterDevice</name>
|
||||
|
@ -128,7 +128,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.memtrack</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IMemtrack</name>
|
||||
|
|
|
@ -93,6 +93,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
|||
# Audio
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.audio@2.0-impl \
|
||||
android.hardware.audio@2.0-service \
|
||||
android.hardware.audio.effect@2.0-impl \
|
||||
audio_policy.msm8226 \
|
||||
audio.a2dp.default \
|
||||
|
@ -108,6 +109,7 @@ PRODUCT_PACKAGES += \
|
|||
# Bluetooth
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.bluetooth@1.0-impl \
|
||||
android.hardware.bluetooth@1.0-service \
|
||||
libbt-vendor
|
||||
|
||||
# Boot animation
|
||||
|
@ -120,6 +122,7 @@ PRODUCT_PACKAGES += \
|
|||
android.hardware.graphics.composer@2.1-impl \
|
||||
android.hardware.graphics.mapper@2.0-impl \
|
||||
android.hardware.memtrack@1.0-impl \
|
||||
android.hardware.memtrack@1.0-service \
|
||||
copybit.msm8226 \
|
||||
gralloc.msm8226 \
|
||||
hwcomposer.msm8226 \
|
||||
|
@ -144,6 +147,7 @@ PRODUCT_PACKAGES += \
|
|||
# GPS
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.gnss@1.0-impl \
|
||||
android.hardware.gnss@1.0-service \
|
||||
gps.msm8226
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
@ -164,7 +168,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
|
||||
|
||||
# LiveDisplay
|
||||
PRODUCT_PACKAGES += \
|
||||
|
|
7
sepolicy/common/hal_bluetooth_default.te
Normal file
7
sepolicy/common/hal_bluetooth_default.te
Normal 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;
|
3
sepolicy/common/hal_gnss_default.te
Normal file
3
sepolicy/common/hal_gnss_default.te
Normal file
|
@ -0,0 +1,3 @@
|
|||
allow hal_gnss_default location_data_file:file rw_file_perms;
|
||||
|
||||
qmux_socket(hal_gnss_default)
|
|
@ -1,2 +1,4 @@
|
|||
allow hal_keymaster_default vfat:dir search;
|
||||
allow hal_keymaster_default vfat:file { getattr open read };
|
||||
|
||||
r_dir_file(hal_keymaster_default, firmware_file)
|
||||
|
|
1
sepolicy/common/hal_memtrack_default.te
Normal file
1
sepolicy/common/hal_memtrack_default.te
Normal file
|
@ -0,0 +1 @@
|
|||
dontaudit hal_memtrack_default { domain -surfaceflinger }:file read;
|
Loading…
Reference in a new issue