From b86cae0ebadd0f5f3a578aee73441785e4c30027 Mon Sep 17 00:00:00 2001 From: Kuber Sharma Date: Mon, 7 Dec 2020 11:42:57 +0530 Subject: [PATCH] kunlun2: Copy updated handheld_core_hardware.xml to enable software controls feature * AOSP has included device software controls feature permission inside handheld_core_hardware.xml from android-11.0 but since we use prebuilt OEM vendor which is from android-10.0 it does not have this feature permission included in that. https://android.googlesource.com/platform/frameworks/native/+/a9708b1763d7d97693d08a7b534acf120b57f7f8%5E%21/#F1 Signed-off-by: Ayush Dubey Signed-off-by: aashil123 Signed-off-by: victor10520 --- device.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/device.mk b/device.mk index ea73a89..9329f40 100644 --- a/device.mk +++ b/device.mk @@ -25,6 +25,10 @@ PRODUCT_AAPT_PREF_CONFIG := xxhdpi DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-pe +# Permissions +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/handheld_core_hardware.xml + # Audio PRODUCT_PACKAGES += \ audio.a2dp.default