Skip to content

Commit

Permalink
Add ota-coordinator into mixins group
Browse files Browse the repository at this point in the history
Tracked-On: OAM-127157
Signed-off-by: Jade Guo <[email protected]>
  • Loading branch information
jiaxuan-guo committed Nov 13, 2024
1 parent 1af9fe6 commit cc4bc3b
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions groups/ota-coordinator/default
21 changes: 21 additions & 0 deletions groups/ota-coordinator/doc.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
=== Overview

ota-coordinator is designed to coordinate SOS, Android APP, and Android native layer. It
implements a comprehensive upgrade as well as factory reset for both SOS and VMs.

==== Options

--- true
this option is used to enable ota-coordinator support

--- parameters
--- code dir

--- false
this option is used to disable ota-coordinator support

--- parameters
--- code dir

--- default
when not explicitly selected in mixin spec file, the default option(disable) will be used.
Empty file.
1 change: 1 addition & 0 deletions groups/ota-coordinator/true/BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BOARD_SEPOLICY_DIRS += $(INTEL_PATH_SEPOLICY)/ota_coordinator
1 change: 1 addition & 0 deletions groups/ota-coordinator/true/fstab.recovery
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
myfs /ota virtiofs defaults defaults
12 changes: 12 additions & 0 deletions groups/ota-coordinator/true/init.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
service ota_coordinator /vendor/bin/ota_coordinator
user root
class core
socket ota_socket stream 666 system system
oneshot
seclabel u:r:ota_coordinator:s0
disabled

on boot
mkdir /data/vendor/ota 660 system system
mount virtiofs myfs /data/vendor/ota
start ota_coordinator
11 changes: 11 additions & 0 deletions groups/ota-coordinator/true/init.recovery.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
service ota_coordinator_recovery /system/bin/ota_coordinator_recovery
user root
class core
oneshot
seclabel u:r:ota_coordinator:s0

on boot
mkdir /ota
mount virtiofs myfs /ota
start ota_coordinator_recovery

9 changes: 9 additions & 0 deletions groups/ota-coordinator/true/product.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PRODUCT_PACKAGES += \
ota_coordinator \
ota_coordinator_recovery


PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.ota_coordinator.last_slot_suffix=_a \
vendor.ota_coordinator.factory_reset=false \

0 comments on commit cc4bc3b

Please sign in to comment.