Snap for 11533280 from d996312839
to 24Q3-release
Change-Id: Iebffbf0e81742620909a33ef9fc94783f5de74db
This commit is contained in:
commit
5e9ee8f596
14 changed files with 49 additions and 23 deletions
|
@ -1,5 +0,0 @@
|
||||||
PRODUCT_PACKAGES += BetterBugStub
|
|
||||||
PRODUCT_PACKAGES_DEBUG += BetterBug
|
|
||||||
|
|
||||||
PRODUCT_PUBLIC_SEPOLICY_DIRS += device/google/gs-common/betterbug/sepolicy/product/public
|
|
||||||
PRODUCT_PRIVATE_SEPOLICY_DIRS += device/google/gs-common/betterbug/sepolicy/product/private
|
|
|
@ -1,15 +0,0 @@
|
||||||
typeattribute better_bug_app coredomain;
|
|
||||||
|
|
||||||
app_domain(better_bug_app)
|
|
||||||
net_domain(better_bug_app)
|
|
||||||
|
|
||||||
allow better_bug_app shell_data_file:file read;
|
|
||||||
allow better_bug_app privapp_data_file:file execute;
|
|
||||||
|
|
||||||
allow better_bug_app app_api_service:service_manager find;
|
|
||||||
allow better_bug_app system_api_service:service_manager find;
|
|
||||||
allow better_bug_app mediaserver_service:service_manager find;
|
|
||||||
|
|
||||||
set_prop(better_bug_app, ctl_start_prop)
|
|
||||||
|
|
||||||
get_prop(better_bug_app, system_boot_reason_prop)
|
|
|
@ -1,2 +0,0 @@
|
||||||
# BetterBug
|
|
||||||
user=_app isPrivApp=true name=com.google.android.apps.internal.betterbug domain=better_bug_app type=app_data_file levelFrom=all
|
|
|
@ -1 +0,0 @@
|
||||||
type better_bug_app, domain;
|
|
1
touch/twoshay/sepolicy/device.te
Normal file
1
touch/twoshay/sepolicy/device.te
Normal file
|
@ -0,0 +1 @@
|
||||||
|
type touch_offload_device, dev_type;
|
2
touch/twoshay/sepolicy/dumpstate.te
Normal file
2
touch/twoshay/sepolicy/dumpstate.te
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
allow dumpstate touch_context_service:service_manager find;
|
||||||
|
binder_call(dumpstate, twoshay)
|
2
touch/twoshay/sepolicy/file_contexts
Normal file
2
touch/twoshay/sepolicy/file_contexts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/dev/touch_offload u:object_r:touch_offload_device:s0
|
||||||
|
/vendor/bin/twoshay u:object_r:twoshay_exec:s0
|
2
touch/twoshay/sepolicy/hal_dumpstate_default.te
Normal file
2
touch/twoshay/sepolicy/hal_dumpstate_default.te
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
allow hal_dumpstate_default touch_context_service:service_manager find;
|
||||||
|
binder_call(hal_dumpstate_default, twoshay)
|
4
touch/twoshay/sepolicy/platform_app.te
Normal file
4
touch/twoshay/sepolicy/platform_app.te
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
allow platform_app gril_antenna_tuning_service:service_manager find;
|
||||||
|
allow platform_app screen_protector_detector_service:service_manager find;
|
||||||
|
allow platform_app touch_context_service:service_manager find;
|
||||||
|
binder_call(platform_app, twoshay)
|
3
touch/twoshay/sepolicy/service.te
Normal file
3
touch/twoshay/sepolicy/service.te
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
type gril_antenna_tuning_service, service_manager_type, hal_service_type;
|
||||||
|
type screen_protector_detector_service, service_manager_type, hal_service_type;
|
||||||
|
type touch_context_service, service_manager_type, hal_service_type;
|
3
touch/twoshay/sepolicy/service_contexts
Normal file
3
touch/twoshay/sepolicy/service_contexts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
com.google.input.ITouchContextService/default u:object_r:touch_context_service:s0
|
||||||
|
com.google.input.algos.gril.IGrilAntennaTuningService/default u:object_r:gril_antenna_tuning_service:s0
|
||||||
|
com.google.input.algos.spd.IScreenProtectorDetectorService/default u:object_r:screen_protector_detector_service:s0
|
2
touch/twoshay/sepolicy/touchflow_debug/file_contexts
Normal file
2
touch/twoshay/sepolicy/touchflow_debug/file_contexts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/vendor/bin/hw/android\.hardware\.input\.processor-reflector u:object_r:hal_input_processor_default_exec:s0
|
||||||
|
/vendor/bin/twoshay_touchflow u:object_r:twoshay_exec:s0
|
27
touch/twoshay/sepolicy/twoshay.te
Normal file
27
touch/twoshay/sepolicy/twoshay.te
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
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, gril_antenna_tuning_service)
|
||||||
|
add_service(twoshay, screen_protector_detector_service)
|
||||||
|
add_service(twoshay, touch_context_service)
|
||||||
|
|
||||||
|
binder_call(twoshay, platform_app)
|
||||||
|
|
||||||
|
allow twoshay fwk_stats_service:service_manager find;
|
||||||
|
binder_call(twoshay, stats_service_server)
|
||||||
|
|
||||||
|
# Allow dumpsys output in bugreports.
|
||||||
|
allow twoshay dumpstate:fd use;
|
||||||
|
allow twoshay dumpstate:fifo_file write;
|
||||||
|
|
||||||
|
# b/198755236
|
||||||
|
dontaudit twoshay twoshay:capability dac_override;
|
||||||
|
|
||||||
|
# b/226830650
|
||||||
|
dontaudit twoshay boot_status_prop:file read;
|
3
touch/twoshay/twoshay.mk
Normal file
3
touch/twoshay/twoshay.mk
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/twoshay/sepolicy
|
||||||
|
PRODUCT_PACKAGES += twoshay
|
||||||
|
PRODUCT_SOONG_NAMESPACES += vendor/google/input/twoshay
|
Loading…
Add table
Add a link
Reference in a new issue