Snap for 11504324 from 525803fc3e4b95021d06ab877b9fd2bed0204934 to 24Q2-release

Change-Id: I40e3f15f4940c86b7d7535dbc804dd9efcf6d5d8
This commit is contained in:
Android Build Coastguard Worker 2024-02-28 00:02:33 +00:00
commit 93cdb1ec29
13 changed files with 66 additions and 0 deletions

View File

@ -25,3 +25,6 @@ get_prop(gnssd, bootanim_system_prop)
allow gnssd sysfs_soc:file r_file_perms;
allow gnssd sysfs_gps:file rw_file_perms;
# Allow gnssd to set GPS property
set_prop(gnssd, vendor_gps_prop)

View File

@ -1,3 +1,16 @@
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gpu/sepolicy
PRODUCT_PACKAGES += gpu_probe
USE_MAPPER5 := false
PRODUCT_PACKAGES += pixel_gralloc_allocator
PRODUCT_PACKAGES += pixel_gralloc_mapper
ifeq ($(USE_MAPPER5), true)
$(call soong_config_set,arm_gralloc,mapper_version,mapper5)
$(call soong_config_set,aion_buffer,mapper_version,mapper5)
else
$(call soong_config_set,arm_gralloc,mapper_version,mapper4)
$(call soong_config_set,aion_buffer,mapper_version,mapper4)
endif

1
thermal/OWNERS Normal file
View File

@ -0,0 +1 @@
include platform/hardware/google/pixel:/thermal/OWNERS

View File

@ -0,0 +1 @@
type touch_offload_device, dev_type;

View File

@ -0,0 +1,2 @@
allow dumpstate touch_context_service:service_manager find;
binder_call(dumpstate, twoshay)

View File

@ -0,0 +1,2 @@
/dev/touch_offload u:object_r:touch_offload_device:s0
/vendor/bin/twoshay u:object_r:twoshay_exec:s0

View File

@ -0,0 +1,2 @@
allow hal_dumpstate_default touch_context_service:service_manager find;
binder_call(hal_dumpstate_default, twoshay)

View 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)

View 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;

View 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

View 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

View 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
View 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