From 78db2504702717ea00ad84cbb24780e90ae9ec53 Mon Sep 17 00:00:00 2001 From: Michael Cheah Date: Thu, 26 Mar 2020 09:44:58 +0800 Subject: [PATCH] [xiaomi] Use persist.sys.phh.xiaomi.dt2w prop to control DT2W --- base.mk | 1 + sepolicy/treble_app.te | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/base.mk b/base.mk index 32df2fa..816b1d6 100644 --- a/base.mk +++ b/base.mk @@ -56,6 +56,7 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ device/phh/treble/rw-system.sh:system/bin/rw-system.sh \ + device/phh/treble/phh-prop-handler.sh:system/bin/phh-prop-handler.sh \ device/phh/treble/fixSPL/getSPL.arm:system/bin/getSPL PRODUCT_COPY_FILES += \ diff --git a/sepolicy/treble_app.te b/sepolicy/treble_app.te index a4e5ceb..9b79aeb 100644 --- a/sepolicy/treble_app.te +++ b/sepolicy/treble_app.te @@ -8,10 +8,6 @@ allow system_app sysfs_batteryinfo:file rw_file_perms; type vendor_camera_prop, property_type; set_prop(system_app, vendor_camera_prop); -#Used to control double-tap-to-wake on Xiaomi -allow system_app input_device:chr_file rw_file_perms; -allow system_app input_device:dir r_dir_perms; - type hal_ext_fingerprint_hwservice, hwservice_manager_type; allow system_app hal_ext_fingerprint_hwservice:hwservice_manager { find }; type hal_fingerprint_default, domain;