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:
Bill Richardson 2023-06-08 17:15:04 -05:00
parent 31fb9fb8c0
commit f1fcb6a099
3 changed files with 4 additions and 0 deletions

View file

@ -11,3 +11,5 @@ binder_call(citadeld, system_server)
allow citadeld citadel_device:chr_file rw_file_perms; allow citadeld citadel_device:chr_file rw_file_perms;
allow citadeld fwk_stats_service:service_manager find; allow citadeld fwk_stats_service:service_manager find;
allow citadeld hal_power_stats_vendor_service:service_manager find; allow citadeld hal_power_stats_vendor_service:service_manager find;
set_prop(citadeld, vendor_nos_citadel_version);

View file

@ -0,0 +1 @@
vendor_internal_prop(vendor_nos_citadel_version)

View file

@ -0,0 +1 @@
vendor.nos.citadel.version u:object_r:vendor_nos_citadel_version:s0