History log of /frameworks/native/cmds/installd/otapreopt_parameters.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ad45a1b89bc3b6ec84ac32c4200be3d3c1d056fa 13-Mar-2018 Mathieu Chartier <mathieuc@google.com> Add flag for controling app image generation

So that package manager service can control this.

Bug: 72696798
Test: manual
Change-Id: I15fa74aff24ef14d22541117408840f80b7d300f
/frameworks/native/cmds/installd/otapreopt_parameters.cpp
a3a18bee9da74037eca0cca7aa63a85ef4ca2901 07-Mar-2018 Mathieu Chartier <mathieuc@google.com> Add otapreopt logic for CompactDex version bump

For old versions, or in the flag.

Bug: 63756964
Bug: 74245837
Test: adb shell /data/nativetest64/installd_otapreopt_test/installd_otapreopt_test

(cherry picked from commit dbc4ce6f9a60b5e4d7e7bcbb4c3fac8a71b7984c)

Merged-In: Ie316f5327ca479f55b34a3ddb7cd6640043116cd
Change-Id: If8442870c85330005ceea52bad07a07c9105091a
/frameworks/native/cmds/installd/otapreopt_parameters.cpp
dcccd832b4a3df77bac551a118b2a35fd6f65d9b 14-Feb-2018 Calin Juravle <calin@google.com> [installd] Pass --compilation-reason to dex2oat

Test: installd_dexopt_test, installd_otapreopt_test
Bug: 73102540

Change-Id: I22854f040c08ea3207860f29b374c66fe2f21750
/frameworks/native/cmds/installd/otapreopt_parameters.cpp
fd0c5b1aef5814b91f656341089d11291762a250 13-Feb-2018 Calin Juravle <calin@google.com> Fix otapreopt parameters reading

The code was missing a break in the switch statement and was always
failing the default CHECK.

Also, move the logging to standard error to make it obvious the test
failed (instead of relying on the exit code which can be easily missed).

Test: installd_otapreopt_test
Bug: 71993124
Change-Id: Iaf29ebc9b930981bf3b75c33e63e940139421e1d
/frameworks/native/cmds/installd/otapreopt_parameters.cpp
cc3b8aeff19f39afb8d4f2c198ee6cd2ec132d22 01-Feb-2018 Calin Juravle <calin@google.com> [installd] Pass .dm files to dexopt

Test: installd_otapreopt_test installd_dexopt_test
Bug: 30934496
Change-Id: I3cb5b3f96205688203a134023492d8ff80524ab6
/frameworks/native/cmds/installd/otapreopt_parameters.cpp
7707aeaa92171bc34718ceaf0554e982d2e92729 01-Feb-2018 Calin Juravle <calin@google.com> Refactor argument parsing in ota preopt

Unify the parsing of all the versions. This will make it much
easier to extend the interface to accept new arguments.

Test: installd_otapreopt_test
Bug: 30934496
Change-Id: Idf945d3f4078b4ef86e2c2532b321768d2868fa7
/frameworks/native/cmds/installd/otapreopt_parameters.cpp
c9e76799ef0dc4358fb5e2a815c42311aac6b81b 01-Feb-2018 Calin Juravle <calin@google.com> Extract the otapreopt parameters in their own class and add tests

This is in preparation to get rid of the annoying
ReadArgumentV1..5 pattern and to be able to write
unit tests.

Test: installd_dexopt_test
Bug: 72666394
Change-Id: I0ad438ee69aa82d9ff2ad2f94d465dcc78ea8c28
/frameworks/native/cmds/installd/otapreopt_parameters.cpp