History log of /frameworks/native/cmds/installd/otapreopt_chroot.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0ba073ce81fbe544592e0a3cd526b274e83fdf9f 12-Jul-2016 Andreas Gampe <agampe@google.com> Otapreopt: Try to mount vendor partition for A/B OTA

Vendor apps are usually not preopted, so A/B dexopt should pick
them up. update_engine is not mounting the vendor partition, so
let otapreopt_chroot do the work.

Bug: 25612095
Bug: 29498238
Change-Id: I5a77bdb78a8e478ce10f6c1d0f911a8d6686becb
/frameworks/native/cmds/installd/otapreopt_chroot.cpp
0354bd0eaf24de533e86885b811f816f1e4d15c8 27-Jun-2016 Andreas Gampe <agampe@google.com> Otapreopt: Implement new A/B OTA path

Refactor otapreopt_script, otapreopt_chroot and otapreopt such
that the actual work will be done as a child of the script driven
by update_engine.

The script now uses the new OtaDexoptService command to get the
right parameters for a dexopt call in otapreopt. As we reach
otapreopt_chroot and otapreopt directly, we can add parameters
without tainting the regular installd path. Use this to add the
target slot suffix, and make naming of the A/B artifacts include
the suffix instead of the generic "b."

Otapreopt_chroot startup is slightly complicated because all file
descriptors must be closed. Otherwise, dex2oat needs selinux
permissions to inherit the descriptors from update_engine.

Bug: 25612095
Bug: 28069686
Change-Id: I9d7b86ac8ecfdf91af3800f7e96f41534c0afc0f
/frameworks/native/cmds/installd/otapreopt_chroot.cpp
aef445d1c659698612c0e5a8f3d5f2b9f8a2b778 03-Jun-2016 Andreas Gampe <agampe@google.com> Otapreopt: Fix after shared-library work

Commit b63d91fd2737680351876406277b6c759f4db33c broke the installd
to otapreopt connection. Fix this. Also refactor a bit to make an
inadvertant break harder.

Bug: 25612095
Change-Id: I8e7b944ecbd5457e4ac4d6ffffdb0468618cf65f
/frameworks/native/cmds/installd/otapreopt_chroot.cpp
01ad5984dd202311a7e301c8c771a5d4b7c76136 10-Mar-2016 Andreas Gampe <agampe@google.com> Otapreopt: Adapt for actual A/B

Add postinstall script for update_engine hook.

Add otapreopt_chroot as a gateway between installd and otapreopt.
Installd will fork and run otapreopt_chroot, which has the permission
to set up a chroot in /postinstall and run otapreopt from the B
partition.

Bug: 25612095
Change-Id: I4264598da00053ced87c849c738ddc0bc5437304
/frameworks/native/cmds/installd/otapreopt_chroot.cpp