Add setupwizard_feature_prop as one of properties allowed to be read
06-05 20:45:54.890420 root 351 351 W libc : Unable to set property "setupwizard.feature.provisioning_profile_mode" to "true": error code: 0x18 06-05 20:45:54.894967 root 350 350 E init : Unable to set property 'setupwizard.feature.provisioning_profile_mode' from uid:0 gid:0 pid:351: SELinux permission check failed Test: manual Bug: 336903409 Change-Id: I7282cfdbd621dd0e77f08c8ff7287f9693fa060a Merged-In: I7282cfdbd621dd0e77f08c8ff7287f9693fa060a
This commit is contained in:
parent
48326b2e0b
commit
070be283a7
5 changed files with 13 additions and 0 deletions
2
system_ext/private/gmscore_app.te
Normal file
2
system_ext/private/gmscore_app.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Allow to read setupwizard_feature_prop
|
||||
get_prop(gmscore_app, setupwizard_feature_prop)
|
2
system_ext/private/priv_app.te
Normal file
2
system_ext/private/priv_app.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Allow to read setupwizard_feature_prop
|
||||
get_prop(priv_app, setupwizard_feature_prop)
|
|
@ -3,3 +3,6 @@ telephony.TnNtn.image_switch u:object_r:telephony_modem_prop:s0 exact enum nt
|
|||
telephony.ril.modem_bin_status u:object_r:telephony_modemtype_prop:s0 exact uint
|
||||
telephony.ril.silent_reset u:object_r:telephony_ril_prop:s0 exact bool
|
||||
telephony.ril.ntn_demo_mode u:object_r:telephony_ntn_demo_mode_prop:s0 exact bool
|
||||
|
||||
# setupwizard
|
||||
setupwizard.feature.provisioning_profile_mode u:object_r:setupwizard_feature_prop:s0
|
||||
|
|
|
@ -7,3 +7,6 @@ system_restricted_prop(telephony_ntn_demo_mode_prop)
|
|||
userdebug_or_eng(`
|
||||
set_prop(shell, telephony_ril_prop)
|
||||
')
|
||||
|
||||
# setupwizard
|
||||
system_public_prop(setupwizard_feature_prop)
|
||||
|
|
3
vendor/vendor_init.te
vendored
3
vendor/vendor_init.te
vendored
|
@ -6,3 +6,6 @@ allow vendor_init tee_data_file:lnk_file read;
|
|||
# MM
|
||||
allow vendor_init proc_compaction_proactiveness:file w_file_perms;
|
||||
allow vendor_init proc_percpu_pagelist_high_fraction:file w_file_perms;
|
||||
|
||||
# setupwizard
|
||||
set_prop(vendor_init, setupwizard_feature_prop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue