gps: Allow vendor_init set gps property

W /system/bin/init: type=1107 audit(0.0:4): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=persist.vendor.gps.hal.service.name pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_gps_prop:s0 tclass=property_service permissive=0'

Test: gps property is present on user build
Test: atest VtsHalGnssTargetTest on user build
Bug: 305162098
Change-Id: Ic56413182d0d721a1543b3b510e17f39813c7ad3
This commit is contained in:
Shinru Han 2023-10-17 06:11:39 +00:00
parent 1ee114f4d7
commit aeb740e7c4

View file

@ -1,7 +1,5 @@
# Camera vendor property # Camera vendor property
set_prop(vendor_init, vendor_camera_debug_prop) set_prop(vendor_init, vendor_camera_debug_prop)
userdebug_or_eng(` # gps vendor property
# gps vendor property set_prop(vendor_init, vendor_gps_prop)
set_prop(vendor_init, vendor_gps_prop)
')