diff --git a/framework_compatibility_matrix.xml b/framework_compatibility_matrix.xml index 4c2b75c..c43b55c 100644 --- a/framework_compatibility_matrix.xml +++ b/framework_compatibility_matrix.xml @@ -451,12 +451,4 @@ default - - vendor.xiaomi.hardware.motor - 1.0 - - IMotor - default - - diff --git a/manifest.xml b/manifest.xml index 1d6b0f1..9575ad5 100644 --- a/manifest.xml +++ b/manifest.xml @@ -307,9 +307,4 @@ hwbinder @3.0::IRTPService/imsrtpservice - - vendor.xiaomi.hardware.motor - hwbinder - @1.0::IMotor/default - diff --git a/sepolicy/private/devicesettings_app.te b/sepolicy/private/devicesettings_app.te index 04e3d5b..bc267e7 100644 --- a/sepolicy/private/devicesettings_app.te +++ b/sepolicy/private/devicesettings_app.te @@ -11,15 +11,12 @@ allow devicesettings_app { mediaserver_service }:service_manager find; -hal_client_domain(devicesettings_app, hal_motor) - # Allow devicesettings_app read and write /data/data subdirectory allow devicesettings_app system_app_data_file:dir create_dir_perms; allow devicesettings_app system_app_data_file:{ file lnk_file } create_file_perms; # Allow binder communication with gpuservice binder_call(devicesettings_app, gpuservice) -binder_call(devicesettings_app, hal_motor) # Allow devicesettings_app to read and write to cgroup/sysfs_leds/sysfs_thermal allow devicesettings_app sysfs_leds:dir search; diff --git a/sepolicy/public/attributes b/sepolicy/public/attributes index 2e6e922..1a0c38a 100644 --- a/sepolicy/public/attributes +++ b/sepolicy/public/attributes @@ -1,3 +1 @@ hal_attribute_lineage(mlipay) - -hal_attribute_lineage(motor) diff --git a/sepolicy/vendor/device.te b/sepolicy/vendor/device.te index 5dee0d4..8966935 100644 --- a/sepolicy/vendor/device.te +++ b/sepolicy/vendor/device.te @@ -6,6 +6,4 @@ type hall_device, dev_type; type lirc_device, dev_type; -type motor_device, dev_type; - type sound_device, dev_type; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index bd00157..f86588e 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -6,11 +6,6 @@ /mnt/vendor/persist/camera(/.*)? u:object_r:camera_persist_file:s0 /vendor/bin/remosaic_daemon u:object_r:remosaic_daemon_exec:s0 -# Camera motor -/dev/drv8846_dev u:object_r:motor_device:s0 -/dev/ti-drv8846 u:object_r:motor_device:s0 -/vendor/bin/hw/vendor\.xiaomi\.hardware\.motor@1.0-service u:object_r:hal_motor_default_exec:s0 - # Charger /vendor/bin/batterysecret u:object_r:batterysecret_exec:s0 diff --git a/sepolicy/vendor/hal_motor_default.te b/sepolicy/vendor/hal_motor_default.te deleted file mode 100644 index d1eeafe..0000000 --- a/sepolicy/vendor/hal_motor_default.te +++ /dev/null @@ -1,31 +0,0 @@ -type hal_motor_default, domain; - -type hal_motor_default_exec, exec_type, vendor_file_type, file_type; -init_daemon_domain(hal_motor_default) - -binder_call(hal_motor_client, hal_motor_server) - -hal_client_domain(cameraserver, hal_motor) -hal_server_domain(hal_motor_default, hal_motor) - -binder_call(devicesettings_app, hal_motor) -binder_call(hal_motor_default, devicesettings_app) - -hal_attribute_hwservice(hal_motor, hal_motor_hwservice) - -# Allow hal_motor_default to read and write to { motor_device hall_device } -allow hal_motor_default { - hall_device - motor_device -}:chr_file rw_file_perms; - -# Allow hal_motor_default to read and write to { mnt_vendor_file vendor_persist_sensors_file } -allow hal_motor_default { - mnt_vendor_file - vendor_persist_sensors_file -}:dir rw_dir_perms; - -allow hal_motor_default { - mnt_vendor_file - vendor_persist_sensors_file -}:file rw_file_perms; diff --git a/sepolicy/vendor/hwservice.te b/sepolicy/vendor/hwservice.te index cda7549..158b6cc 100644 --- a/sepolicy/vendor/hwservice.te +++ b/sepolicy/vendor/hwservice.te @@ -1,3 +1 @@ type hal_mlipay_hwservice, hwservice_manager_type; - -type hal_motor_hwservice, hwservice_manager_type; diff --git a/sepolicy/vendor/hwservice_contexts b/sepolicy/vendor/hwservice_contexts index 69640ba..93aec8d 100644 --- a/sepolicy/vendor/hwservice_contexts +++ b/sepolicy/vendor/hwservice_contexts @@ -6,4 +6,3 @@ vendor.goodix.hardware.biometrics.fingerprint::IGoodixFingerprintDaemon vendor.xiaomi.hardware.campostproc::IMiPostProcService u:object_r:hal_camerapostproc_xiaomi_hwservice:s0 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