diff --git a/proprietary-files.txt b/proprietary-files.txt index 21843f8..952fa7c 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -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 diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 5030780..322775e 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -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 diff --git a/sepolicy/vendor/hal_citsensorservice_xiaomi.te b/sepolicy/vendor/hal_citsensorservice_xiaomi.te deleted file mode 100644 index d155e54..0000000 --- a/sepolicy/vendor/hal_citsensorservice_xiaomi.te +++ /dev/null @@ -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)'); diff --git a/sepolicy/vendor/hal_display_config.te b/sepolicy/vendor/hal_display_config.te deleted file mode 100644 index f4240aa..0000000 --- a/sepolicy/vendor/hal_display_config.te +++ /dev/null @@ -1 +0,0 @@ -allow vendor_hal_display_config_hwservice vendor_hal_citsensorservice_xiaomi_default:binder transfer; diff --git a/sepolicy/vendor/hal_graphics_composer.te b/sepolicy/vendor/hal_graphics_composer.te index 4212cd2..b8c0581 100644 --- a/sepolicy/vendor/hal_graphics_composer.te +++ b/sepolicy/vendor/hal_graphics_composer.te @@ -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) diff --git a/sepolicy/vendor/hal_sensorcommunicate.te b/sepolicy/vendor/hal_sensorcommunicate.te deleted file mode 100644 index 7ddc0b3..0000000 --- a/sepolicy/vendor/hal_sensorcommunicate.te +++ /dev/null @@ -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 }; - diff --git a/sepolicy/vendor/hwservice_contexts b/sepolicy/vendor/hwservice_contexts index daa3c3c..61b3392 100644 --- a/sepolicy/vendor/hwservice_contexts +++ b/sepolicy/vendor/hwservice_contexts @@ -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 diff --git a/sepolicy/vendor/system_server.te b/sepolicy/vendor/system_server.te deleted file mode 100644 index ed07366..0000000 --- a/sepolicy/vendor/system_server.te +++ /dev/null @@ -1 +0,0 @@ -allow system_server vendor_hal_citsensorservice_xiaomi_default:binder { call transfer };