diff options
author | Xin Li <delphij@google.com> | 2022-02-14 17:31:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-02-14 17:31:19 +0000 |
commit | ff847ab2d435abc766e239fed204100e2c92c763 (patch) | |
tree | 4cf7106cfa841c6c1d0390caf57c36d33782ac2c | |
parent | 31bbaeea1d033106ac2a0d25364f47271d35ead5 (diff) | |
parent | 2c7c7ecd2c5e2f69fc7a686472251f269880128f (diff) |
Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master
-rw-r--r-- | input/device.te | 1 | ||||
-rw-r--r-- | input/dumpstate.te | 2 | ||||
-rw-r--r-- | input/file_contexts | 4 | ||||
-rw-r--r-- | input/hal_dumpstate_default.te | 2 | ||||
-rw-r--r-- | input/platform_app.te | 2 | ||||
-rw-r--r-- | input/service.te | 1 | ||||
-rw-r--r-- | input/service_contexts | 1 | ||||
-rw-r--r-- | input/touchflow_debug/file_contexts | 3 | ||||
-rw-r--r-- | input/twoshay.te | 16 | ||||
-rw-r--r-- | vibrator/common/property_contexts (renamed from vibrator/cs40l25/property_contexts) | 0 | ||||
-rw-r--r-- | vibrator/cs40l26/property_contexts | 1 | ||||
-rw-r--r-- | vibrator/drv2624/property_contexts | 1 |
12 files changed, 32 insertions, 2 deletions
diff --git a/input/device.te b/input/device.te new file mode 100644 index 0000000..d3ce622 --- /dev/null +++ b/input/device.te @@ -0,0 +1 @@ +type touch_offload_device, dev_type; diff --git a/input/dumpstate.te b/input/dumpstate.te new file mode 100644 index 0000000..b2c0c81 --- /dev/null +++ b/input/dumpstate.te @@ -0,0 +1,2 @@ +# b/187795940 +dontaudit dumpstate twoshay:binder call; diff --git a/input/file_contexts b/input/file_contexts new file mode 100644 index 0000000..2157b00 --- /dev/null +++ b/input/file_contexts @@ -0,0 +1,4 @@ +/dev/touch_offload u:object_r:touch_offload_device:s0 +/dev/touch_offload_fts u:object_r:touch_offload_device:s0 +/dev/touch_offload_fts_ext u:object_r:touch_offload_device:s0 +/vendor/bin/twoshay u:object_r:twoshay_exec:s0 diff --git a/input/hal_dumpstate_default.te b/input/hal_dumpstate_default.te new file mode 100644 index 0000000..81edc36 --- /dev/null +++ b/input/hal_dumpstate_default.te @@ -0,0 +1,2 @@ +allow hal_dumpstate_default touch_context_service:service_manager find; +binder_call(hal_dumpstate_default, twoshay) diff --git a/input/platform_app.te b/input/platform_app.te new file mode 100644 index 0000000..17cc511 --- /dev/null +++ b/input/platform_app.te @@ -0,0 +1,2 @@ +allow platform_app touch_context_service:service_manager find; +binder_call(platform_app, twoshay) diff --git a/input/service.te b/input/service.te new file mode 100644 index 0000000..63681d2 --- /dev/null +++ b/input/service.te @@ -0,0 +1 @@ +type touch_context_service, service_manager_type, vendor_service; diff --git a/input/service_contexts b/input/service_contexts new file mode 100644 index 0000000..95e70f8 --- /dev/null +++ b/input/service_contexts @@ -0,0 +1 @@ +com.google.input.ITouchContextService/default u:object_r:touch_context_service:s0 diff --git a/input/touchflow_debug/file_contexts b/input/touchflow_debug/file_contexts new file mode 100644 index 0000000..abde29a --- /dev/null +++ b/input/touchflow_debug/file_contexts @@ -0,0 +1,3 @@ +/vendor/bin/hw/android\.hardware\.input\.classifier@1\.0-reflector u:object_r:hal_input_classifier_default_exec:s0 +/vendor/bin/twoshay_touchflow u:object_r:twoshay_exec:s0 + diff --git a/input/twoshay.te b/input/twoshay.te new file mode 100644 index 0000000..eba1cce --- /dev/null +++ b/input/twoshay.te @@ -0,0 +1,16 @@ +type twoshay, domain; +type twoshay_exec, exec_type, vendor_file_type, file_type; + +init_daemon_domain(twoshay) + +allow twoshay touch_offload_device:chr_file rw_file_perms; +allow twoshay twoshay:capability sys_nice; + +binder_use(twoshay) +add_service(twoshay, touch_context_service) + +allow twoshay fwk_stats_service:service_manager find; +binder_call(twoshay, stats_service_server) + +# b/198755236 +dontaudit twoshay twoshay:capability dac_override; diff --git a/vibrator/cs40l25/property_contexts b/vibrator/common/property_contexts index 64a2600..64a2600 100644 --- a/vibrator/cs40l25/property_contexts +++ b/vibrator/common/property_contexts diff --git a/vibrator/cs40l26/property_contexts b/vibrator/cs40l26/property_contexts deleted file mode 100644 index 64a2600..0000000 --- a/vibrator/cs40l26/property_contexts +++ /dev/null @@ -1 +0,0 @@ -ro.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0 diff --git a/vibrator/drv2624/property_contexts b/vibrator/drv2624/property_contexts deleted file mode 100644 index 64a2600..0000000 --- a/vibrator/drv2624/property_contexts +++ /dev/null @@ -1 +0,0 @@ -ro.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0 |