Allow citadeld to set a property on firmware changes
This will allow services which need to be aware of Dauntless firmware changes to be notified by an init script trigger on that property. Bug: 286433589 Test: manual Build an image with this change, confirm that `getprop vendor.nos.citadel.version` returns the current Dauntless firmware version string. Update the Dauntless firmware, confirm that the property value changes to match. Change-Id: I45ce87070ce2b6c9fff2c8119db50445b0e576b3 Signed-off-by: Bill Richardson <wfrichar@google.com>
This commit is contained in:
parent
31fb9fb8c0
commit
f1fcb6a099
3 changed files with 4 additions and 0 deletions
|
@ -11,3 +11,5 @@ binder_call(citadeld, system_server)
|
|||
allow citadeld citadel_device:chr_file rw_file_perms;
|
||||
allow citadeld fwk_stats_service:service_manager find;
|
||||
allow citadeld hal_power_stats_vendor_service:service_manager find;
|
||||
|
||||
set_prop(citadeld, vendor_nos_citadel_version);
|
||||
|
|
1
dauntless/sepolicy/property.te
Normal file
1
dauntless/sepolicy/property.te
Normal file
|
@ -0,0 +1 @@
|
|||
vendor_internal_prop(vendor_nos_citadel_version)
|
1
dauntless/sepolicy/property_contexts
Normal file
1
dauntless/sepolicy/property_contexts
Normal file
|
@ -0,0 +1 @@
|
|||
vendor.nos.citadel.version u:object_r:vendor_nos_citadel_version:s0
|
Loading…
Add table
Add a link
Reference in a new issue