msm8976-common: Binderize them all
* Leave out camera and graphics composer as they can't be binderized on current blobs.
This commit is contained in:
parent
1bb48181f8
commit
f387e6602e
34
manifest.xml
34
manifest.xml
|
@ -1,7 +1,7 @@
|
|||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.audio</name>
|
||||
<transport arch="32+64">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+64">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IEffectsFactory</name>
|
||||
|
@ -28,8 +28,12 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.bluetooth</name>
|
||||
<transport arch="32+64">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IBluetoothHci</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.broadcastradio</name>
|
||||
|
@ -65,8 +69,12 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.drm</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ICryptoFactory</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
<interface>
|
||||
<name>IDrmFactory</name>
|
||||
<instance>default</instance>
|
||||
|
@ -74,7 +82,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.gatekeeper</name>
|
||||
<transport arch="32+64">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IGatekeeper</name>
|
||||
|
@ -83,7 +91,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.gnss</name>
|
||||
<transport arch="32+64">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IGnss</name>
|
||||
|
@ -119,7 +127,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.keymaster</name>
|
||||
<transport arch="32+64">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>3.0</version>
|
||||
<interface>
|
||||
<name>IKeymasterDevice</name>
|
||||
|
@ -128,7 +136,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.light</name>
|
||||
<transport arch="32+64">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>ILight</name>
|
||||
|
@ -150,7 +158,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.memtrack</name>
|
||||
<transport arch="32+64">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IMemtrack</name>
|
||||
|
@ -159,7 +167,7 @@
|
|||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.power</name>
|
||||
<transport arch="32+64">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IPower</name>
|
||||
|
@ -170,14 +178,10 @@
|
|||
<name>android.hardware.renderscript</name>
|
||||
<transport arch="32+64">passthrough</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IDevice</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.sensors</name>
|
||||
<transport arch="32+64">passthrough</transport>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ISensors</name>
|
||||
|
|
21
msm8976.mk
21
msm8976.mk
|
@ -91,7 +91,9 @@ PRODUCT_PACKAGES += \
|
|||
|
||||
PRODUCT_PACKAGES += \
|
||||
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-service \
|
||||
android.hardware.broadcastradio@1.0-impl
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
@ -112,6 +114,7 @@ PRODUCT_COPY_FILES += \
|
|||
# Bluetooth
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.bluetooth@1.0-impl \
|
||||
android.hardware.bluetooth@1.0-service \
|
||||
libbt-vendor
|
||||
|
||||
# Camera
|
||||
|
@ -122,7 +125,8 @@ PRODUCT_PACKAGES += \
|
|||
|
||||
# DRM
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.drm@1.0-impl
|
||||
android.hardware.drm@1.0-impl \
|
||||
android.hardware.drm@1.0-service
|
||||
|
||||
# Display
|
||||
PRODUCT_PACKAGES += \
|
||||
|
@ -131,6 +135,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 \
|
||||
AdvancedDisplay \
|
||||
copybit.msm8952 \
|
||||
gralloc.msm8952 \
|
||||
|
@ -150,11 +155,13 @@ PRODUCT_PACKAGES += \
|
|||
|
||||
# Gatekeeper HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.gatekeeper@1.0-impl
|
||||
android.hardware.gatekeeper@1.0-impl \
|
||||
android.hardware.gatekeeper@1.0-service
|
||||
|
||||
# GNSS HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.gnss@1.0-impl
|
||||
android.hardware.gnss@1.0-impl \
|
||||
android.hardware.gnss@1.0-service
|
||||
|
||||
# GPS
|
||||
PRODUCT_PACKAGES += \
|
||||
|
@ -193,11 +200,13 @@ PRODUCT_COPY_FILES += \
|
|||
|
||||
# Keymaster HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.keymaster@3.0-impl
|
||||
android.hardware.keymaster@3.0-impl \
|
||||
android.hardware.keymaster@3.0-service
|
||||
|
||||
# Lights
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.light@2.0-impl \
|
||||
android.hardware.light@2.0-service \
|
||||
lights.MSM8952
|
||||
|
||||
# Media
|
||||
|
@ -228,6 +237,7 @@ PRODUCT_PACKAGES += \
|
|||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power@1.0-impl \
|
||||
android.hardware.power@1.0-service \
|
||||
power.msm8952
|
||||
|
||||
# Qualcomm dependencies
|
||||
|
@ -260,7 +270,8 @@ PRODUCT_COPY_FILES += \
|
|||
|
||||
# Sensors
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.sensors@1.0-impl
|
||||
android.hardware.sensors@1.0-impl \
|
||||
android.hardware.sensors@1.0-service
|
||||
|
||||
# TimeKeep
|
||||
PRODUCT_PACKAGES += \
|
||||
|
|
|
@ -1189,7 +1189,7 @@ on boot
|
|||
chmod 0760 /sys/class/sensor_event/symlink/proximity_sensor/uevent
|
||||
|
||||
# BT
|
||||
chown radio net_bt_stack /efs/bluetooth/bt_addr
|
||||
chown radio bluetooth /efs/bluetooth/bt_addr
|
||||
chmod 0640 /efs/bluetooth/bt_addr
|
||||
|
||||
# Wifi firmware reload path
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
r_dir_file(bluetooth, firmware_file)
|
|
@ -21,6 +21,9 @@
|
|||
/dev/vfsspi u:object_r:vfsspi_device:s0
|
||||
/data/biometrics(/.*)? u:object_r:biometrics_data_file:s0
|
||||
|
||||
# Lights
|
||||
/sys/devices/virtual/sec/sec_touchkey/brightness u:object_r:sysfs_leds:s0
|
||||
|
||||
# mDNIe
|
||||
/sys/devices/virtual/mdnie/mdnie/mode u:object_r:sysfs_mdnie:s0
|
||||
/sys/devices/virtual/mdnie/mdnie/scenario u:object_r:sysfs_mdnie:s0
|
||||
|
@ -28,6 +31,14 @@
|
|||
# SEC
|
||||
/sys/devices/virtual/sec/sec_key(/.*)? u:object_r:sysfs_sec_key:s0
|
||||
|
||||
# Sensors
|
||||
/data/iNemo_gbias.dat u:object_r:sensors_data_file:s0
|
||||
/data/iNemoEngine_gbias.dat u:object_r:sensors_data_file:s0
|
||||
/data/system/yas_lib.cfg u:object_r:sensors_data_file:s0
|
||||
/sys/bus/iio/devices u:object_r:sysfs_sensors:s0
|
||||
/sys/devices/.*/i2c-[0-9]/[0-9]-[0-9a-f]+/iio:device[0-9](/.*)? u:object_r:sysfs_sensors:s0
|
||||
/sys/devices/iio:device[0-9](/.*)? u:object_r:sysfs_sensors:s0
|
||||
|
||||
# TimeKeep
|
||||
/(vendor|system/vendor)/bin/timekeep u:object_r:timekeep_exec:s0
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
allow hal_bluetooth_default bluetooth_data_file:dir search;
|
||||
allow hal_bluetooth_default bluetooth_data_file:file rw_file_perms;
|
||||
|
||||
allow hal_bluetooth_default wcnss_filter:unix_stream_socket connectto;
|
||||
|
||||
r_dir_file(hal_bluetooth_default, firmware_file)
|
||||
|
||||
allow hal_bluetooth_default efs_file:dir search;
|
||||
r_dir_file(hal_bluetooth_default, bluetooth_efs_file)
|
|
@ -0,0 +1,5 @@
|
|||
allow hal_sensors_default sensors_data_file:file rw_file_perms;
|
||||
allow hal_sensors_default iio_device:chr_file r_file_perms;
|
||||
|
||||
allow hal_sensors_default efs_file:dir search;
|
||||
r_dir_file(hal_sensors_default, app_efs_file)
|
|
@ -1,7 +1,3 @@
|
|||
allow system_server efs_file:dir search;
|
||||
|
||||
allow system_server qti_debugfs:file r_file_perms;
|
||||
|
||||
allow system_server sysfs_mdnie:file rw_file_perms;
|
||||
|
||||
r_dir_file(system_server, app_efs_file)
|
||||
|
|
Loading…
Reference in New Issue