90ba9eb2f155a4123ec4c8b08863572360d55776 |
|
17-Aug-2016 |
Andreas Gampe <agampe@google.com> |
Otapreopt: Allow A/B dexopt only when bootcomplete Under certain circumstances cmd may not return because it is waiting for a service manager. Avoid this situation by restricting the otapreopt script to only do work when the system has completed boot (which means that a service manager must exist). Bug: 30797145 Change-Id: Ic1445e20f1ca06fb38e7707771bde818836c3adc
/frameworks/native/cmds/installd/otapreopt_script.sh
|
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_script.sh
|
6c05a734ce443cb5effd01120c5a83b93343b6b6 |
|
11-Jun-2016 |
Andreas Gampe <agampe@google.com> |
Otapreopt: Send progress updates to update_engine Use the new OtaDexoptService progress API to send updates back to update_engine. Bug: 25612095 Bug: 29223204 Change-Id: Ie8162946d18f6fa78649a40ad5d3949d31a181cd
/frameworks/native/cmds/installd/otapreopt_script.sh
|
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_script.sh
|