msm8937-common: Build QTI HIDL power 1.0 HAL

This commit is contained in:
Rashed Abdel-Tawab 2017-12-31 04:40:40 +02:00 committed by Isaac Chen
parent d761cec8e3
commit b93a294b74
10 changed files with 14 additions and 8 deletions

3
board/qcom-power.mk Normal file
View file

@ -0,0 +1,3 @@
# Power
TARGET_HAS_NO_WIFI_STATS := true
TARGET_USES_INTERACTION_BOOST := true

View file

@ -1,8 +1,4 @@
[
{
"repository": "android_device_qcom_common",
"target_path": "device/qcom/common"
},
{
"repository": "android_packages_resources_devicesettings",
"target_path": "packages/resources/devicesettings"

View file

@ -202,7 +202,7 @@
<hal format="hidl">
<name>android.hardware.power</name>
<transport>hwbinder</transport>
<version>1.1</version>
<version>1.0</version>
<interface>
<name>IPower</name>
<instance>default</instance>

View file

@ -1,3 +0,0 @@
# Power IMPL
PRODUCT_PACKAGES += \
android.hardware.power@1.1-service-qti

View file

@ -1,3 +1,4 @@
# Powerhint
PRODUCT_COPY_FILES += \
$(VENDOR_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
@ -6,6 +7,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
$(VENDOR_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
# Power
PRODUCT_PACKAGES += \
android.hardware.power@1.0-service-qti
# Properties
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.extension_library=libqti-perfd-client.so \

View file

@ -1,3 +1,4 @@
type debugfs_wlan, debugfs_type, fs_type;
type fpc_data_file, file_type, data_file_type;
type fpce_socket, file_type;
type fpc_sysfs, fs_type, sysfs_type;

View file

@ -1 +1,2 @@
genfscon debugfs /rmt_storage u:object_r:debugfs_rmt:s0
genfscon debugfs /wlan0 u:object_r:debugfs_wlan:s0

1
sepolicy/vendor/hal_power_default.te vendored Normal file
View file

@ -0,0 +1 @@
r_dir_file(hal_power_default, debugfs_wlan)

1
sepolicy/vendor/hal_wifi_default.te vendored Normal file
View file

@ -0,0 +1 @@
allow hal_wifi_default debugfs_wlan:dir r_dir_perms;

1
sepolicy/vendor/kernel.te vendored Normal file
View file

@ -0,0 +1 @@
allow kernel debugfs_wlan:dir search;