From c68ac049e183628a60f85652607c7a66aa367bbc Mon Sep 17 00:00:00 2001 From: "ELIYAZ MOMIN (xWF)" Date: Wed, 13 Nov 2024 14:06:06 +0000 Subject: [PATCH] Revert "Add GIA (Google Input interface Abstraction layer) relat..." Revert submission 29512389-gia Reason for revert: Reverted changes: /q/submissionid:29512389-gia Change-Id: Ia4fd036130e54a5573efbd02a044631232561ea1 --- input/gia/aidl/compatibility_matrix.xml | 10 ---------- input/gia/aidl/manifest.xml | 10 ---------- input/gia/gia.mk | 11 ----------- input/gia/sepolicy/attributes | 2 -- input/gia/sepolicy/file_contexts | 2 -- input/gia/sepolicy/gia.te | 18 ------------------ input/gia/sepolicy/hal_gia.te | 8 -------- input/gia/sepolicy/service.te | 2 -- input/gia/sepolicy/service_contexts | 2 -- 9 files changed, 65 deletions(-) delete mode 100644 input/gia/aidl/compatibility_matrix.xml delete mode 100644 input/gia/aidl/manifest.xml delete mode 100644 input/gia/gia.mk delete mode 100644 input/gia/sepolicy/attributes delete mode 100644 input/gia/sepolicy/file_contexts delete mode 100644 input/gia/sepolicy/gia.te delete mode 100644 input/gia/sepolicy/hal_gia.te delete mode 100644 input/gia/sepolicy/service.te delete mode 100644 input/gia/sepolicy/service_contexts diff --git a/input/gia/aidl/compatibility_matrix.xml b/input/gia/aidl/compatibility_matrix.xml deleted file mode 100644 index 1a348ea..0000000 --- a/input/gia/aidl/compatibility_matrix.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - com.google.input.gia.core - - IGiaService - default - - 1 - - \ No newline at end of file diff --git a/input/gia/aidl/manifest.xml b/input/gia/aidl/manifest.xml deleted file mode 100644 index 98303c8..0000000 --- a/input/gia/aidl/manifest.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - com.google.input.gia.core - - IGiaService - default - - 1 - - \ No newline at end of file diff --git a/input/gia/gia.mk b/input/gia/gia.mk deleted file mode 100644 index ea079ca..0000000 --- a/input/gia/gia.mk +++ /dev/null @@ -1,11 +0,0 @@ -BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/input/gia/sepolicy - -PRODUCT_PACKAGES += gia -PRODUCT_PACKAGES += com.google.input.gia.giaservicemanager - -PRODUCT_SOONG_NAMESPACES += vendor/google/interfaces -PRODUCT_SOONG_NAMESPACES += vendor/google/input/gia/core -PRODUCT_SOONG_NAMESPACES += vendor/google/input/gia/core-servicemanager - -DEVICE_MANIFEST_FILE += device/google/gs-common/input/gia/aidl/manifest.xml -DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs-common/input/gia/aidl/compatibility_matrix.xml diff --git a/input/gia/sepolicy/attributes b/input/gia/sepolicy/attributes deleted file mode 100644 index 1d61ad3..0000000 --- a/input/gia/sepolicy/attributes +++ /dev/null @@ -1,2 +0,0 @@ -# This macro produces: define hal_gia, hal_gia_client, hal_gia_server -hal_attribute(gia) diff --git a/input/gia/sepolicy/file_contexts b/input/gia/sepolicy/file_contexts deleted file mode 100644 index 99d6857..0000000 --- a/input/gia/sepolicy/file_contexts +++ /dev/null @@ -1,2 +0,0 @@ -# chmod +x in SEPolicy language -/vendor/bin/gia u:object_r:gia_exec:s0 diff --git a/input/gia/sepolicy/gia.te b/input/gia/sepolicy/gia.te deleted file mode 100644 index 2c84e7c..0000000 --- a/input/gia/sepolicy/gia.te +++ /dev/null @@ -1,18 +0,0 @@ -# SEPolicies for GIA (Google Input interface Abstraction layer) -type gia, domain; -type gia_exec, exec_type, vendor_file_type, file_type; - -# Macro transferring gia_exec to the gia domain -init_daemon_domain(gia) - -# let this domain use the hal service -hal_client_domain(gia, hal_gia) -# allow binder communication with service_manager -binder_use(gia) - -# let this domain serve the hal service -hal_server_domain(gia, hal_gia) - -# allow gia for accessing touch related system file-nodes -allow gia sysfs_touch_gti:dir r_dir_perms; -allow gia sysfs_touch_gti:file rw_file_perms; diff --git a/input/gia/sepolicy/hal_gia.te b/input/gia/sepolicy/hal_gia.te deleted file mode 100644 index b75c9fb..0000000 --- a/input/gia/sepolicy/hal_gia.te +++ /dev/null @@ -1,8 +0,0 @@ -# allow binder connection from client to server -binder_call(hal_gia_client, hal_gia_server) - -# allow client to find the service & allow server to register the service -hal_attribute_service(hal_gia, hal_gia_service) - -# allow binder communication from server to service_manager -binder_use(hal_gia_server) diff --git a/input/gia/sepolicy/service.te b/input/gia/sepolicy/service.te deleted file mode 100644 index aed1135..0000000 --- a/input/gia/sepolicy/service.te +++ /dev/null @@ -1,2 +0,0 @@ -# Declares GIA related services -type hal_gia_service, hal_service_type, protected_service, service_manager_type; diff --git a/input/gia/sepolicy/service_contexts b/input/gia/sepolicy/service_contexts deleted file mode 100644 index b1773ec..0000000 --- a/input/gia/sepolicy/service_contexts +++ /dev/null @@ -1,2 +0,0 @@ -# Attaches GIA services to the cooresponding SEPolicy group -com.google.input.gia.core.IGiaService/default u:object_r:hal_gia_service:s0