From 39e441937b5b7215be0f08817478ffd36d60a45f Mon Sep 17 00:00:00 2001 From: hoaysly Date: Sun, 13 Jul 2025 23:57:23 +0000 Subject: [PATCH] msm8998-common: Switch to Touch AIDL Change-Id: I86844e8f2579e966fb617b279be7485ef685e884 --- sepolicy/vendor/hal_touch_oneplus_msm8998.te | 2 ++ touch/include/TouchscreenGestureConfig.h | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sepolicy/vendor/hal_touch_oneplus_msm8998.te b/sepolicy/vendor/hal_touch_oneplus_msm8998.te index 2df1417..7e26a9f 100644 --- a/sepolicy/vendor/hal_touch_oneplus_msm8998.te +++ b/sepolicy/vendor/hal_touch_oneplus_msm8998.te @@ -5,6 +5,8 @@ init_daemon_domain(hal_touch_oneplus_msm8998) hal_server_domain(hal_touch_oneplus_msm8998, hal_lineage_touch) +binder_call(hal_touch_oneplus_msm8998, servicemanager) + # Allow access to gesture enable nodes allow hal_touch_oneplus_msm8998 proc_touchpanel:dir search; allow hal_touch_oneplus_msm8998 proc_touchpanel:file rw_file_perms; diff --git a/touch/include/TouchscreenGestureConfig.h b/touch/include/TouchscreenGestureConfig.h index e342f89..3606015 100644 --- a/touch/include/TouchscreenGestureConfig.h +++ b/touch/include/TouchscreenGestureConfig.h @@ -1,6 +1,5 @@ /* - * Copyright (C) 2021 The LineageOS Project - * + * SPDX-FileCopyrightText: 2025 The LineageOS Project * SPDX-License-Identifier: Apache-2.0 */ @@ -9,11 +8,10 @@ #include +namespace aidl { namespace vendor { namespace lineage { namespace touch { -namespace V1_0 { -namespace implementation { const std::map kGestureInfoMap = { {0, {251, "Two fingers down swipe", "/proc/touchpanel/double_swipe_enable"}}, @@ -31,10 +29,9 @@ const std::map kGestureInfoMap = { {12, {246, "Letter W", "/proc/touchpanel/letter_w_enable"}}, }; -} // namespace implementation -} // namespace V1_0 } // namespace touch } // namespace lineage } // namespace vendor +} // namespace aidl #endif // TOUCH_ONEPLUS_TOUCHSCREENGESTURE_H