OSDN Git Service

Otapreopt: Add init script for A/B artifact move
authorAndreas Gampe <agampe@google.com>
Sat, 9 Jul 2016 18:44:12 +0000 (11:44 -0700)
committerAndreas Gampe <agampe@google.com>
Wed, 13 Jul 2016 16:58:11 +0000 (09:58 -0700)
commit99e2b263dd0df71b55e86f0aec6657eb38b334e1
treeabbb5d3d6532573e5197e8d677edd374d49a7f9e
parent0354bd0eaf24de533e86885b811f816f1e4d15c8
Otapreopt: Add init script for A/B artifact move

Move the /data/ota -> /data/dalvik-cache move from the zygote into
a minimal shell script. Add an init rc file to execute the script
once /data is mounted. Add Makefile rules to pull these files in
with the rest of the A/B OTA dexopt components.

The move is motivated by the new naming scheme that includes the
slot name. Passing the slot name to the zygote would complicate
the process, while the value is immediately available in the script
through a simple getprop call.

Bug: 25612095
Bug: 28069686
Change-Id: I63e718d488662e1b1de2ce857629cb90aa4f611d
cmds/installd/Android.mk
cmds/installd/otapreopt.rc [new file with mode: 0644]
cmds/installd/otapreopt_slot.sh [new file with mode: 0644]