From 14c4279118748b4184550e0af372cb632ce7f34f Mon Sep 17 00:00:00 2001 From: Albert Tang Date: Mon, 23 May 2022 17:01:15 -0500 Subject: [PATCH] dre: Remove KeyHandler The N200 does not have an alert slider, making KeyHandler useless to us. Change-Id: I9589b730172b3fc79070d75b8183fe9f92447a6e --- BoardConfig.mk | 1 - device.mk | 5 ----- sepolicy/private/keyhandler_app.te | 10 ---------- sepolicy/private/seapp_contexts | 1 - sepolicy/vendor/file.te | 1 - sepolicy/vendor/file_contexts | 1 - sepolicy/vendor/genfs_contexts | 1 - sepolicy/vendor/tri-state-key-calibrate.te | 13 ------------- 8 files changed, 33 deletions(-) delete mode 100644 sepolicy/private/keyhandler_app.te delete mode 100644 sepolicy/private/seapp_contexts delete mode 100644 sepolicy/vendor/tri-state-key-calibrate.te diff --git a/BoardConfig.mk b/BoardConfig.mk index a34600f..eb66bf8 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -218,7 +218,6 @@ VENDOR_SECURITY_PATCH := 2022-03-01 include device/qcom/sepolicy_vndr/SEPolicy.mk BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor -PRODUCT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private # Verified Boot BOARD_AVB_ENABLE := true diff --git a/device.mk b/device.mk index 1cf05f2..d6e9dcd 100644 --- a/device.mk +++ b/device.mk @@ -499,11 +499,6 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ vendor.lineage.touch@1.0-service.oneplus -# tri-state-key -PRODUCT_PACKAGES += \ - KeyHandler \ - tri-state-key-calibrate - # Update engine PRODUCT_PACKAGES += \ update_engine \ diff --git a/sepolicy/private/keyhandler_app.te b/sepolicy/private/keyhandler_app.te deleted file mode 100644 index 4dbb2d4..0000000 --- a/sepolicy/private/keyhandler_app.te +++ /dev/null @@ -1,10 +0,0 @@ -type keyhandler_app, domain; - -app_domain(keyhandler_app) - -allow keyhandler_app self:netlink_kobject_uevent_socket { read bind setopt create }; - -allow keyhandler_app app_api_service:service_manager find; - -allow keyhandler_app system_app_data_file:dir create_dir_perms; -allow keyhandler_app system_app_data_file:{ file lnk_file } create_file_perms; diff --git a/sepolicy/private/seapp_contexts b/sepolicy/private/seapp_contexts deleted file mode 100644 index 0af6cc1..0000000 --- a/sepolicy/private/seapp_contexts +++ /dev/null @@ -1 +0,0 @@ -user=system seinfo=platform name=org.lineageos.settings.device domain=keyhandler_app type=system_app_data_file diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te index 7d86cff..4a407ce 100644 --- a/sepolicy/vendor/file.te +++ b/sepolicy/vendor/file.te @@ -20,4 +20,3 @@ type sysfs_ois_control, fs_type, sysfs_type; type sysfs_project_info, fs_type, sysfs_type; type sysfs_tof_control, fs_type, sysfs_type; type sysfs_tpd, fs_type, sysfs_type; -type sysfs_tri_state_key, sysfs_type, fs_type; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 0f2f8f8..ad6ee2f 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -1,6 +1,5 @@ # Binaries /(vendor|system/vendor)/bin/opf-service u:object_r:opf_exec:s0 -/(vendor|system/vendor)/bin/tri-state-key-calibrate u:object_r:tri-state-key-calibrate_exec:s0 /(vendor|system/vendor)/bin/wifi-mac-generator u:object_r:wifi-mac-generator_exec:s0 # Block devices diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts index 17f01e1..8915f92 100644 --- a/sepolicy/vendor/genfs_contexts +++ b/sepolicy/vendor/genfs_contexts @@ -10,7 +10,6 @@ genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/notify_dim u:object_r:sysfs_fod:s0 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/notify_fppress u:object_r:sysfs_fod:s0 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/power_status u:object_r:sysfs_fod:s0 -genfscon sysfs /devices/platform/soc/soc:tri_state_key/hall_data_calib u:object_r:sysfs_tri_state_key:s0 genfscon sysfs /kernel/ois_control u:object_r:sysfs_ois_control:s0 genfscon sysfs /kernel/tof_control u:object_r:sysfs_tof_control:s0 genfscon sysfs /module/memplus_core/parameters u:object_r:sysfs_memplus:s0 diff --git a/sepolicy/vendor/tri-state-key-calibrate.te b/sepolicy/vendor/tri-state-key-calibrate.te deleted file mode 100644 index c6d03ce..0000000 --- a/sepolicy/vendor/tri-state-key-calibrate.te +++ /dev/null @@ -1,13 +0,0 @@ -type tri-state-key-calibrate, domain; -type tri-state-key-calibrate_exec, exec_type, vendor_file_type, file_type; - -init_daemon_domain(tri-state-key-calibrate) - -allow tri-state-key-calibrate vendor_shell_exec:file rx_file_perms; -allow tri-state-key-calibrate vendor_toolbox_exec:file rx_file_perms; - -allow tri-state-key-calibrate sysfs_tri_state_key:file w_file_perms; - -allow tri-state-key-calibrate mnt_vendor_file:dir search; - -r_dir_file(tri-state-key-calibrate, oem_file)