From eb7a690439298070393a5fe8c291014e6615eaec Mon Sep 17 00:00:00 2001 From: Jake Weinstein Date: Mon, 28 Oct 2019 04:16:47 +0100 Subject: [PATCH] sdm710-common: Enable UXE,IOP in perfconfigstore Matches stock Qualcomm configuration and improves performance. OnePlus disables this because of their framework features, which we do not have. Change-Id: I2b6e8c9ed59415bc7841bf244bd3dd9b5633088c Signed-off-by: SamarV-121 --- configs/perfconfigstore.xml | 37 ++++++++++++++++++++++++++++++++++ sdm710.mk | 3 +++ sepolicy/private/file_contexts | 1 + 3 files changed, 41 insertions(+) create mode 100644 configs/perfconfigstore.xml diff --git a/configs/perfconfigstore.xml b/configs/perfconfigstore.xml new file mode 100644 index 0000000..795712d --- /dev/null +++ b/configs/perfconfigstore.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdm710.mk b/sdm710.mk index def82fb..ae4efde 100644 --- a/sdm710.mk +++ b/sdm710.mk @@ -111,6 +111,9 @@ PRODUCT_BOOT_JARS += \ QPerformance \ UxPerformance +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/perfconfigstore.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/perf/perfconfigstore.xml + # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) diff --git a/sepolicy/private/file_contexts b/sepolicy/private/file_contexts index 7470bc1..ae56a36 100644 --- a/sepolicy/private/file_contexts +++ b/sepolicy/private/file_contexts @@ -11,6 +11,7 @@ # Vendor overlay /(product|system/product)/vendor_overlay/[0-9]+/etc(/.*)? u:object_r:vendor_configs_file:s0 +/(product|system/product)/vendor_overlay/[0-9]+/etc/perf(/.*)? u:object_r:vendor_configs_file:s0 /(product|system/product)/vendor_overlay/[0-9]+/etc/wifi(/.*)? u:object_r:vendor_configs_file:s0 /(product|system/product)/vendor_overlay/[0-9]+/etc/vintf(/.*)? u:object_r:vendor_configs_file:s0 /(product|system/product)/vendor_overlay/[0-9]+/lib(64)?/hw u:object_r:vendor_hal_file:s0