Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ota-coordinator into mixins group #2126

Open
wants to merge 1 commit into
base: celadon/u/mr0/master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
10 changes: 10 additions & 0 deletions groups/ota-coordinator/true/init.recovery.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
service ota_coordinator_recovery /system/bin/ota_coordinator_recovery
user root
class core
oneshot
seclabel u:r:ota_coordinator:s0

on boot
mkdir /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 \