summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex/main.jpp
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2019-03-19 13:57:43 +0000
committerDavid Brazdil <dbrazdil@google.com>2019-03-22 13:48:56 +0000
commit8982186538943d31b9db0b94e9bf10b5c4a75ae7 (patch)
treedf8f79208eed6bd8801f9e4ec11a1d08e85078a5 /test/ProfileTestMultiDex/main.jpp
parent4bb2af5e6163cf68ec65c5497983303302a15a09 (diff)
Support FDs for class loader context dex files
When compiling secondary dex files, dex2oat/dexoptanalyzer must open all dex files in the given class loader context. However, these tools do not have the SELinux permission to open app data files and instead rely on installd to open them and pass file descriptors via command line arguments. This patch extends ClassLoaderContext::OpenDexFiles to support opening dex files from a provided list of FDs, assuming the order corresponds to the flattened class loader context. FDs can be passed to dex2oat/ dexoptanalyzer using a new '--class-loader-context-fds=' command line argument. The format is a colon-separated list of integers. dexoptanalyzer is also extended with a separate mode in which dexopt-needed analysis is not performed, only the class loader context is flattened and list of its dex files is printed to standard output as a colon-separated list of paths. This mode is enabled with '--flatten-class-loader-context' and is used by installd to obtain a list of files it should open for dex2oat/dexoptanalyzer. Bug: 126674985 Test: atest installd_dexopt_test Change-Id: I46a671c90d14ad8615508c106a88ac1ee8a4ef28
Diffstat (limited to 'test/ProfileTestMultiDex/main.jpp')
0 files changed, 0 insertions, 0 deletions