sm7250-common: sepolicy: Drop Motor hal
*There are no devices on lito that use motor Signed-off-by: xSylla <syllamodder@gmail.com>
This commit is contained in:
parent
9b33d47fff
commit
c74a5a4f8f
@ -451,12 +451,4 @@
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.xiaomi.hardware.motor</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IMotor</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</compatibility-matrix>
|
||||
|
@ -307,9 +307,4 @@
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@3.0::IRTPService/imsrtpservice</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>vendor.xiaomi.hardware.motor</name>
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@1.0::IMotor/default</fqname>
|
||||
</hal>
|
||||
</manifest>
|
||||
|
@ -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;
|
||||
|
@ -1,3 +1 @@
|
||||
hal_attribute_lineage(mlipay)
|
||||
|
||||
hal_attribute_lineage(motor)
|
||||
|
2
sepolicy/vendor/device.te
vendored
2
sepolicy/vendor/device.te
vendored
@ -6,6 +6,4 @@ type hall_device, dev_type;
|
||||
|
||||
type lirc_device, dev_type;
|
||||
|
||||
type motor_device, dev_type;
|
||||
|
||||
type sound_device, dev_type;
|
||||
|
5
sepolicy/vendor/file_contexts
vendored
5
sepolicy/vendor/file_contexts
vendored
@ -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
|
||||
|
||||
|
31
sepolicy/vendor/hal_motor_default.te
vendored
31
sepolicy/vendor/hal_motor_default.te
vendored
@ -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;
|
2
sepolicy/vendor/hwservice.te
vendored
2
sepolicy/vendor/hwservice.te
vendored
@ -1,3 +1 @@
|
||||
type hal_mlipay_hwservice, hwservice_manager_type;
|
||||
|
||||
type hal_motor_hwservice, hwservice_manager_type;
|
||||
|
1
sepolicy/vendor/hwservice_contexts
vendored
1
sepolicy/vendor/hwservice_contexts
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user