diff --git a/board/qcom-power.mk b/board/qcom-power.mk new file mode 100644 index 0000000..9f4a667 --- /dev/null +++ b/board/qcom-power.mk @@ -0,0 +1,3 @@ +# Power +TARGET_HAS_NO_WIFI_STATS := true +TARGET_USES_INTERACTION_BOOST := true diff --git a/lineage.dependencies b/lineage.dependencies index b4b3f7a..bc99f19 100644 --- a/lineage.dependencies +++ b/lineage.dependencies @@ -1,8 +1,4 @@ [ - { - "repository": "android_device_qcom_common", - "target_path": "device/qcom/common" - }, { "repository": "android_packages_resources_devicesettings", "target_path": "packages/resources/devicesettings" diff --git a/manifest.xml b/manifest.xml index 49d0627..68d45b7 100644 --- a/manifest.xml +++ b/manifest.xml @@ -202,7 +202,7 @@ android.hardware.power hwbinder - 1.1 + 1.0 IPower default diff --git a/product/power.mk b/product/power.mk deleted file mode 100644 index 64c9aab..0000000 --- a/product/power.mk +++ /dev/null @@ -1,3 +0,0 @@ -# Power IMPL -PRODUCT_PACKAGES += \ - android.hardware.power@1.1-service-qti diff --git a/product/qcom-perf.mk b/product/qcom-perf.mk index b243eb3..35b75cb 100644 --- a/product/qcom-perf.mk +++ b/product/qcom-perf.mk @@ -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 \ diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te index e34dda4..ea3c2e5 100644 --- a/sepolicy/vendor/file.te +++ b/sepolicy/vendor/file.te @@ -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; diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts index f94e9eb..f10db8c 100644 --- a/sepolicy/vendor/genfs_contexts +++ b/sepolicy/vendor/genfs_contexts @@ -1 +1,2 @@ genfscon debugfs /rmt_storage u:object_r:debugfs_rmt:s0 +genfscon debugfs /wlan0 u:object_r:debugfs_wlan:s0 diff --git a/sepolicy/vendor/hal_power_default.te b/sepolicy/vendor/hal_power_default.te new file mode 100644 index 0000000..a7f0a61 --- /dev/null +++ b/sepolicy/vendor/hal_power_default.te @@ -0,0 +1 @@ +r_dir_file(hal_power_default, debugfs_wlan) diff --git a/sepolicy/vendor/hal_wifi_default.te b/sepolicy/vendor/hal_wifi_default.te new file mode 100644 index 0000000..d0a3cfc --- /dev/null +++ b/sepolicy/vendor/hal_wifi_default.te @@ -0,0 +1 @@ +allow hal_wifi_default debugfs_wlan:dir r_dir_perms; diff --git a/sepolicy/vendor/kernel.te b/sepolicy/vendor/kernel.te new file mode 100644 index 0000000..9ba3537 --- /dev/null +++ b/sepolicy/vendor/kernel.te @@ -0,0 +1 @@ +allow kernel debugfs_wlan:dir search;