sm7250-common: Kill touchfeature

Change-Id: Iea8dbe1a69906627ffdabca70ecea624435fc53e
This commit is contained in:
Sebastiano Barezzi 2021-07-22 16:32:58 +02:00 committed by xSylla
parent 51a9e88374
commit 53f39f7889
15 changed files with 1 additions and 60 deletions

View File

@ -47,7 +47,6 @@ cc_binary {
"vendor.lineage.biometrics.fingerprint.inscreen@1.0",
"//hardware/xiaomi:vendor.goodix.hardware.biometrics.fingerprint@2.1",
"//hardware/xiaomi:vendor.xiaomi.hardware.fingerprintextension@1.0",
"//hardware/xiaomi:vendor.xiaomi.hardware.touchfeature@1.0",
],
vendor: true,
}

View File

@ -459,12 +459,4 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.xiaomi.hardware.touchfeature</name>
<version>1.0</version>
<interface>
<name>ITouchFeature</name>
<instance>default</instance>
</interface>
</hal>
</compatibility-matrix>

View File

@ -209,8 +209,7 @@ PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.xiaomi_lito
PRODUCT_PACKAGES += \
vendor.xiaomi.hardware.fingerprintextension@1.0.vendor \
vendor.xiaomi.hardware.touchfeature@1.0.vendor
vendor.xiaomi.hardware.fingerprintextension@1.0.vendor
# Health
PRODUCT_PACKAGES += \

View File

@ -312,9 +312,4 @@
<transport>hwbinder</transport>
<fqname>@1.0::IMotor/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.xiaomi.hardware.touchfeature</name>
<transport>hwbinder</transport>
<fqname>@1.0::ITouchFeature/default</fqname>
</hal>
</manifest>

View File

@ -667,11 +667,6 @@ vendor/bin/time_daemon
vendor/etc/init/init.time_daemon.rc
vendor/lib64/libtime_genoff.so
# Touchfeature
vendor/bin/hw/vendor.xiaomi.hardware.touchfeature@1.0-service
vendor/etc/init/vendor.xiaomi.hardware.touchfeature@1.0-service.rc
vendor/lib64/hw/vendor.xiaomi.hardware.touchfeature@1.0-impl.so
# Trusted Execution Environment connector
vendor/bin/hw/vendor.qti.hardware.qteeconnector@1.0-service
vendor/etc/init/vendor.qti.hardware.qteeconnector@1.0-service.rc

View File

@ -12,7 +12,6 @@ allow devicesettings_app {
}:service_manager find;
hal_client_domain(devicesettings_app, hal_motor)
hal_client_domain(devicesettings_app, hal_touchfeature)
# Allow devicesettings_app read and write /data/data subdirectory
allow devicesettings_app system_app_data_file:dir create_dir_perms;
@ -21,7 +20,6 @@ allow devicesettings_app system_app_data_file:{ file lnk_file } create_file_perm
# Allow binder communication with gpuservice
binder_call(devicesettings_app, gpuservice)
binder_call(devicesettings_app, hal_motor)
binder_call(devicesettings_app, hal_touchfeature)
# Allow devicesettings_app to read and write to cgroup/sysfs_leds/sysfs_thermal
allow devicesettings_app sysfs_leds:dir search;

View File

@ -1,5 +1,3 @@
hal_attribute_lineage(mlipay)
hal_attribute_lineage(motor)
hal_attribute_lineage(touchfeature)

View File

@ -9,5 +9,3 @@ type lirc_device, dev_type;
type motor_device, dev_type;
type sound_device, dev_type;
type touchfeature_device, dev_type;

View File

@ -84,10 +84,6 @@
/vendor/bin/mi_thermald u:object_r:mi_thermald_exec:s0
/data/vendor/thermal(/.*)? u:object_r:thermal_data_file:s0
# Touchfeature
/dev/xiaomi-touch u:object_r:touchfeature_device:s0
/vendor/bin/hw/vendor\.xiaomi\.hardware\.touchfeature@1\.0-service u:object_r:hal_touchfeature_default_exec:s0
# USB
/vendor/bin/init\.mi\.usb\.sh u:object_r:vendor_qti_init_shell_exec:s0

View File

@ -8,14 +8,10 @@ wakelock_use(hal_lineage_fod_lito)
# Allow access to the HALs
hal_client_domain(hal_lineage_fod_lito, hal_fingerprint)
hal_client_domain(hal_lineage_fod_lito, hal_touchfeature)
# Allow binder communication with hal_fingerprint_lito
binder_call(hal_lineage_fod_lito, hal_fingerprint_default)
# Allow binder communication with hal_touchfeature_default
binder_call(hal_lineage_fod_lito, hal_touchfeature_default)
allow hal_lineage_fod_lito sysfs_graphics:dir r_dir_perms;
allow hal_lineage_fod_lito sysfs_graphics:file rw_file_perms;

View File

@ -1,16 +0,0 @@
type hal_touchfeature_default, domain;
hal_server_domain(hal_touchfeature_default, hal_touchfeature)
type hal_touchfeature_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_touchfeature_default)
binder_call(hal_touchfeature_client, hal_touchfeature_server)
hal_attribute_hwservice(hal_touchfeature, hal_touchfeature_hwservice)
# Allow hal_touchfeature_default to read and write to touchfeature_device
allow hal_touchfeature_default touchfeature_device:chr_file rw_file_perms;
set_prop(hal_touchfeature_default, vendor_touchfeature_prop)
vndbinder_use(hal_touchfeature_default)

View File

@ -1,5 +1,3 @@
type hal_mlipay_hwservice, hwservice_manager_type;
type hal_motor_hwservice, hwservice_manager_type;
type hal_touchfeature_hwservice, hwservice_manager_type;

View File

@ -7,4 +7,3 @@ vendor.xiaomi.hardware.campostproc::IMiPostProcService u:
vendor.xiaomi.hardware.fingerprintextension::IXiaomiFingerprint u:object_r:hal_fingerprint_hwservice:s0
vendor.xiaomi.hardware.mlipay::IMlipayService u:object_r:hal_mlipay_hwservice:s0
vendor.xiaomi.hardware.motor::IMotor u:object_r:hal_motor_hwservice:s0
vendor.xiaomi.hardware.touchfeature::ITouchFeature u:object_r:hal_touchfeature_hwservice:s0

View File

@ -9,6 +9,3 @@ type power_prop, property_type;
# Thermal
type thermal_normal_prop, property_type;
# Touchfeature
type vendor_touchfeature_prop, property_type;

View File

@ -66,8 +66,5 @@ sys.thermal. u:object_r:thermal_normal_prop:s0
vendor.sys.thermal. u:object_r:thermal_normal_prop:s0
persist.sys.thermal.config u:object_r:thermal_normal_prop:s0
# Touchfeature
ro.vendor.touchfeature.type u:object_r:vendor_touchfeature_prop:s0
# USB
sys.usb.configfs u:object_r:system_prop:s0