Bill Richardson f1fcb6a099 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>
2023-06-08 20:11:39 -05:00

16 lines
463 B
Plaintext

type citadeld, domain;
type citadeld_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(citadeld)
add_service(citadeld, citadeld_service)
binder_use(citadeld)
vndbinder_use(citadeld)
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);