gps: Enable Pixel GNSS HAL

avc:  denied  { call } for  scontext=u:r:hal_gnss_pixel:s0 tcontext=u:r:hal_gnss_default:s0 tclass=binder permissive=0
avc:  denied  { call } for  scontext=u:r:hal_gnss_default:s0 tcontext=u:r:hal_gnss_pixel:s0 tclass=binder permissive=0
avc:  denied  { read } for  name="modem_state" dev="sysfs" ino=66325 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
avc:  denied  { open } for  path="/sys/devices/platform/cpif/modem_state" dev="sysfs" ino=66325 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
avc:  denied  { getattr } for  path="/sys/devices/platform/cpif/modem_state" dev="sysfs" ino=66325 scontext=u:r:hal_gnss_pixel:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Test: CTS/VTS pass
Bug: 320567656
Change-Id: I22ed09fe37a7e9811f78bf66c21420d2809da9c6
This commit is contained in:
Shinru Han 2024-02-20 09:32:05 +00:00
parent 2ce657ec4f
commit eadc0d0114
9 changed files with 51 additions and 0 deletions

View file

@ -14,3 +14,6 @@ PRODUCT_PACKAGES += \
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_VENDOR_PROPERTIES += vendor.gps.aol.enabled=true
endif
# Enable Pixel GNSS HAL
include device/google/gs-common/gps/pixel/pixel_gnss_hal.mk

View file

@ -8,3 +8,6 @@ binder_call(hal_gnss_default, gnssd);
#Read GPS property
get_prop(hal_gnss_default, vendor_gps_prop)
#IPC between pixel and vendor HAL
binder_call(hal_gnss_default, hal_gnss_pixel)