diff --git a/input/gia/gia.mk b/input/gia/gia.mk index d46fa96..febac5b 100644 --- a/input/gia/gia.mk +++ b/input/gia/gia.mk @@ -1,8 +1,8 @@ -# GIA is not designed for AOSP +# When not AOSP target ifeq (,$(filter aosp_%, $(TARGET_PRODUCT))) BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/input/gia/sepolicy - # If Pixel System Service exists, allow it to access GIA + # When not factory target ifeq (,$(filter factory_%, $(TARGET_PRODUCT))) BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/input/gia/sepolicy-pixelsystemservice endif diff --git a/input/gia/sepolicy/gia.te b/input/gia/sepolicy/gia.te index 2c84e7c..4a310ea 100644 --- a/input/gia/sepolicy/gia.te +++ b/input/gia/sepolicy/gia.te @@ -16,3 +16,7 @@ hal_server_domain(gia, hal_gia) # allow gia for accessing touch related system file-nodes allow gia sysfs_touch_gti:dir r_dir_perms; allow gia sysfs_touch_gti:file rw_file_perms; + +# allow gia for collecting device stats +allow gia fwk_stats_service:service_manager find; +binder_call(gia, stats_service_server);