diff options
author | 2016-06-27 14:25:30 -0700 | |
---|---|---|
committer | 2016-09-06 11:24:23 -0700 | |
commit | d089ca1703769854356a263ca640d3e07ab8548d (patch) | |
tree | ab5336e776368a4b8a8c63295801dde191c4f492 /cmds/installd/installd.cpp | |
parent | a5cc10a8e8d47fd01c117cc51ac1f6765a1735ce (diff) |
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
(cherry picked from commit 0354bd0eaf24de533e86885b811f816f1e4d15c8)
Diffstat (limited to 'cmds/installd/installd.cpp')
-rw-r--r-- | cmds/installd/installd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/installd/installd.cpp b/cmds/installd/installd.cpp index 68439b24db..2bc3dfa183 100644 --- a/cmds/installd/installd.cpp +++ b/cmds/installd/installd.cpp @@ -557,7 +557,7 @@ done: return 0; } -bool initialize_globals() { +static bool initialize_globals() { const char* data_path = getenv("ANDROID_DATA"); if (data_path == nullptr) { ALOGE("Could not find ANDROID_DATA"); |