Allow vendor_init to set setupwizard prop

05-16 17:07:33.099472  root   351   351 E init    : Unable to set property 'setupwizard.feature.provisioning_profile_mode' from uid:0 gid:0 pid:352: SELinux permission check failed
05-16 17:07:33.095723  root   352   352 W libc    : Unable to set property "setupwizard.feature.provisioning_profile_mode" to "true": error code: 0x18

Bug: 339918070
Test: manual
Change-Id: Ie1737d7632e11de9750305df4255da55b4a0c426
This commit is contained in:
jimsun 2024-05-17 09:48:34 +08:00
parent f23f1fc4fa
commit 432fb7298d
6 changed files with 15 additions and 0 deletions

View file

@ -1,2 +1,6 @@
# sepolicy exclusively for comet.
BOARD_SEPOLICY_DIRS += device/google/comet-sepolicy/vendor
# system_ext
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += device/google/comet-sepolicy/system_ext/public
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/comet-sepolicy/system_ext/private

View file

@ -0,0 +1,2 @@
# Allow to read setupwizard_feature_prop
get_prop(gmscore_app, setupwizard_feature_prop)

View file

@ -0,0 +1,2 @@
# Allow to read setupwizard_feature_prop
get_prop(priv_app, setupwizard_feature_prop)

View file

@ -0,0 +1,2 @@
# setupwizard
setupwizard.feature.provisioning_profile_mode u:object_r:setupwizard_feature_prop:s0

View file

@ -0,0 +1,2 @@
# setupwizard
system_public_prop(setupwizard_feature_prop)

View file

@ -1,2 +1,5 @@
# Camera vendor property
set_prop(vendor_init, vendor_camera_debug_prop)
# setupwizard
set_prop(vendor_init, setupwizard_feature_prop)