sm8450-common: Kill xiaomi citsensorservice and sensor communicate

Change-Id: Iaa50c3d23f8c9398e12486098c037bc970ae4940
This commit is contained in:
Arian 2024-07-28 17:54:04 +02:00
parent b9ef44eff2
commit 06f5c160c2
8 changed files with 0 additions and 92 deletions

View file

@ -1437,12 +1437,6 @@ vendor/lib64/jcos_nq_client.so
vendor/lib64/ls_nq_client.so
vendor/lib64/se_nq_extn_client.so
# Sensor communicate
vendor/bin/hw/vendor.xiaomi.sensor.communicate@1.0-service
vendor/etc/init/vendor.xiaomi.sensor.communicate@1.0-service.rc
vendor/etc/vintf/manifest/vendor.xiaomi.sensor.communicate@1.0_manifest.xml
vendor/lib64/vendor.xiaomi.sensor.communicate@1.0.so
# Sensors
vendor/bin/hw/vendor.qti.hardware.sensorscalibrate@1.0-service
vendor/bin/init.qcom.sensors.sh

View file

@ -34,10 +34,6 @@
/vendor/lib(64)?/rfsa/adsp/libsnpe_dsp_v66_domains_v2_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libsnpe_dsp_v68_domains_v3_skel\.so u:object_r:same_process_hal_file:s0
# CIT
/(vendor|system/vendor)/bin/hw/vendor.xiaomi.sensor.citsensorservice@1.1-service u:object_r:vendor_hal_citsensorservice_xiaomi_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor.xiaomi.sensor.citsensorservice@2.0-service u:object_r:vendor_hal_citsensorservice_xiaomi_default_exec:s0
# Diag
/data/vendor/modem(/.*)? u:object_r:vendor_modem_data_file:s0
@ -80,7 +76,6 @@
# Sensors
/(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@2.1-service\.xiaomi-multihal u:object_r:hal_sensors_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor.xiaomi.sensor.communicate@1.0-service u:object_r:vendor_hal_sensorcommunicate_default_exec:s0
/(vendor|system/vendor)/bin/sensor-notifier u:object_r:vendor_sensor_notifier_exec:s0
/dev/stmvl53l5 u:object_r:stmvl53l5_device:s0

View file

@ -1,46 +0,0 @@
attribute vendor_hal_citsensorservice_xiaomi;
attribute vendor_hal_citsensorservice_xiaomi_client;
attribute vendor_hal_citsensorservice_xiaomi_server;
type vendor_hal_citsensorservice_xiaomi_default, domain;
type vendor_hal_citsensorservice_xiaomi_default_exec, exec_type, file_type, vendor_file_type;
type vendor_hal_citsensorservice_xiaomi_hwservice, hwservice_manager_type;
init_daemon_domain(vendor_hal_citsensorservice_xiaomi_default)
hal_server_domain(vendor_hal_citsensorservice_xiaomi_default, vendor_hal_citsensorservice_xiaomi)
hal_client_domain(vendor_hal_citsensorservice_xiaomi_default, hal_graphics_allocator)
add_hwservice(vendor_hal_citsensorservice_xiaomi_server, vendor_hal_citsensorservice_xiaomi_hwservice)
vndbinder_use(vendor_hal_citsensorservice_xiaomi)
binder_call(vendor_hal_citsensorservice_xiaomi_client, vendor_hal_citsensorservice_xiaomi_server)
binder_call(vendor_hal_citsensorservice_xiaomi_server, vendor_hal_citsensorservice_xiaomi_client)
binder_call(vendor_hal_citsensorservice_xiaomi_default, vendor_hal_display_config_hwservice)
binder_call(vendor_hal_citsensorservice_xiaomi_default, hal_graphics_composer)
allow vendor_hal_citsensorservice_xiaomi_default self:socket create_socket_perms;
allow vendor_hal_citsensorservice_xiaomi_default self:qipcrtr_socket create_socket_perms;
allow vendor_hal_citsensorservice_xiaomi_default vendor_persist_sensors_file:dir create_dir_perms;
allow vendor_hal_citsensorservice_xiaomi_default vendor_persist_sensors_file:file create_file_perms;
allow vendor_hal_citsensorservice_xiaomi_default fwk_sensor_hwservice:hwservice_manager find;
allow vendor_hal_citsensorservice_xiaomi_default system_server:binder { call transfer };
allow vendor_hal_citsensorservice_xiaomi_default vendor_sysfs_displayfeature:dir search;
allow vendor_hal_citsensorservice_xiaomi_default vendor_sysfs_displayfeature:file { open read };
allow vendor_hal_citsensorservice_xiaomi_default vendor_sysfs_graphics:dir r_dir_perms;
allow vendor_hal_citsensorservice_xiaomi_default vendor_sysfs_graphics:file r_file_perms;
allow vendor_hal_citsensorservice_xiaomi_default vendor_displayfeature_device:chr_file { ioctl open read write };
allow vendor_hal_citsensorservice_xiaomi_default hal_graphics_mapper_hwservice:hwservice_manager find;
allow vendor_hal_citsensorservice_xiaomi_default vendor_qdisplay_service:service_manager find;
allow vendor_hal_citsensorservice_xiaomi_default vendor_hal_display_config_hwservice:hwservice_manager find;
allow vendor_hal_citsensorservice_xiaomi_default vendor_hal_display_config_hwservice:binder { call transfer };
allow vendor_hal_citsensorservice_xiaomi_default vendor_hal_display_config_hwservice:fd *;
allow vendor_hal_citsensorservice_xiaomi_default vendor_hal_sensorcommunicate_default:binder call;
allow vendor_hal_citsensorservice_xiaomi_default vendor_hal_sensorcommunicate_default:binder transfer;
allowxperm vendor_hal_citsensorservice_xiaomi_default self:socket ioctl msm_sock_ipc_ioctls;
allowxperm vendor_hal_citsensorservice_xiaomi_default self:qipcrtr_socket ioctl msm_sock_ipc_ioctls;
r_dir_file(vendor_hal_citsensorservice_xiaomi_default, mnt_vendor_file)
get_prop(vendor_hal_citsensorservice_xiaomi_default, vendor_sensors_prop)
userdebug_or_eng(`get_prop(vendor_hal_citsensorservice_xiaomi_default, vendor_sensors_debug_prop)');

View file

@ -1 +0,0 @@
allow vendor_hal_display_config_hwservice vendor_hal_citsensorservice_xiaomi_default:binder transfer;

View file

@ -1,6 +1 @@
allow hal_graphics_composer vendor_hal_citsensorservice_xiaomi_default:binder transfer;
allow hal_graphics_composer vendor_hal_citsensorservice_xiaomi_hwservice:hwservice_manager find;
binder_call(hal_graphics_composer_default, vendor_hal_citsensorservice_xiaomi_default)
set_prop(hal_graphics_composer_default, vendor_display_prop)

View file

@ -1,24 +0,0 @@
type vendor_hal_sensorcommunicate_default, domain;
type vendor_hal_sensorcommunicate_default_exec, exec_type, file_type, vendor_file_type;
type vendor_hal_sensorcommunicate_hwservice, hwservice_manager_type;
attribute vendor_hal_sensorcommunicate;
attribute vendor_hal_sensorcommunicate_client;
attribute vendor_hal_sensorcommunicate_server;
init_daemon_domain(vendor_hal_sensorcommunicate_default)
hwbinder_use(vendor_hal_sensorcommunicate_default)
binder_call(vendor_hal_sensorcommunicate_client, vendor_hal_sensorcommunicate_server)
binder_call(vendor_hal_sensorcommunicate_server, vendor_hal_sensorcommunicate_client)
add_hwservice(vendor_hal_sensorcommunicate_server, vendor_hal_sensorcommunicate_hwservice)
hal_server_domain(vendor_hal_sensorcommunicate_default, vendor_hal_sensorcommunicate)
allow vendor_hal_sensorcommunicate_client vendor_hal_sensorcommunicate_hwservice:hwservice_manager find;
allow vendor_hal_sensorcommunicate_default vendor_hal_citsensorservice_xiaomi_hwservice:hwservice_manager find;
allow vendor_hal_sensorcommunicate_default vendor_hal_citsensorservice_xiaomi_default:binder call;
allow vendor_hal_sensorcommunicate_default vendor_hal_citsensorservice_xiaomi_default:binder transfer;
allow vendor_hal_sensorcommunicate_default vendor_persist_sensors_file:dir search;
allow vendor_hal_sensorcommunicate_default vendor_persist_sensors_file:file { getattr open read };

View file

@ -12,9 +12,5 @@ com.fingerprints.extension::IFingerprintSensorTest u:object_r:vendor_hal_fingerp
com.fingerprints.extension::IFingerprintCalibration u:object_r:vendor_hal_fingerprint_hwservice_xiaomi:s0
com.fingerprints.extension::IFingerprintOptical u:object_r:vendor_hal_fingerprint_hwservice_xiaomi:s0
# Sensors
vendor.xiaomi.sensor.citsensorservice::ICitSensorService u:object_r:vendor_hal_citsensorservice_xiaomi_hwservice:s0
vendor.xiaomi.sensor.communicate::ISensorCommunicate u:object_r:vendor_hal_sensorcommunicate_hwservice:s0
# Mlipay
vendor.xiaomi.hardware.mlipay::IMlipayService u:object_r:hal_mlipay_hwservice:s0

View file

@ -1 +0,0 @@
allow system_server vendor_hal_citsensorservice_xiaomi_default:binder { call transfer };