msm8937-common: Build QTI HIDL power 1.0 HAL
This commit is contained in:
parent
d761cec8e3
commit
b93a294b74
10 changed files with 14 additions and 8 deletions
3
board/qcom-power.mk
Normal file
3
board/qcom-power.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Power
|
||||
TARGET_HAS_NO_WIFI_STATS := true
|
||||
TARGET_USES_INTERACTION_BOOST := true
|
|
@ -1,8 +1,4 @@
|
|||
[
|
||||
{
|
||||
"repository": "android_device_qcom_common",
|
||||
"target_path": "device/qcom/common"
|
||||
},
|
||||
{
|
||||
"repository": "android_packages_resources_devicesettings",
|
||||
"target_path": "packages/resources/devicesettings"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
# Power IMPL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power@1.1-service-qti
|
|
@ -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 \
|
||||
|
|
1
sepolicy/vendor/file.te
vendored
1
sepolicy/vendor/file.te
vendored
|
@ -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;
|
||||
|
|
1
sepolicy/vendor/genfs_contexts
vendored
1
sepolicy/vendor/genfs_contexts
vendored
|
@ -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
1
sepolicy/vendor/hal_power_default.te
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
r_dir_file(hal_power_default, debugfs_wlan)
|
1
sepolicy/vendor/hal_wifi_default.te
vendored
Normal file
1
sepolicy/vendor/hal_wifi_default.te
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
allow hal_wifi_default debugfs_wlan:dir r_dir_perms;
|
1
sepolicy/vendor/kernel.te
vendored
Normal file
1
sepolicy/vendor/kernel.te
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
allow kernel debugfs_wlan:dir search;
|
Loading…
Reference in a new issue