summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex/Main.java
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2017-04-05 17:05:46 -0700
committerJeff Hao <jeffhao@google.com>2017-04-19 10:59:12 -0700
commite681bf7685ecf6a0645affe8a9c78b10a875d835 (patch)
tree2a29b809b0d19665bb399505848576890ae5525e /test/ProfileTestMultiDex/Main.java
parent26013c945c0f34917b7bd93c21e54baeecb73c85 (diff)
Allow dex2oat to handle relative paths.
During installation at compile time, the PackageManager is passing shared libraries to dex2oat with -classpath. For split apps, we want the splits to have the proper dependencies, and are now passing previous parts of the split apk as shared libraries as we compile them all. These apks are staged in a temp dir during compilation, so we pass a relative path for them instead. Since PackageManager can now pass relative paths to dex2oat as shared libraries, dex2oat has an added --classpath-dir switch to specify the directory to use for relative class paths. At runtime when checking shared libraries, we use oat file functionality to resolve relative paths to determine if the paths match. Bug: 34169257 Test: cts-tradefed run singleCommand cts -d --module CtsAppSecurityHostTestCases -t android.appsecurity.cts.SplitTests (cherry-picked from commit f79ac83a8c18b0bd81aafc9c8823f6bed35d8847) Change-Id: Ib1f93b6920474d4ed008492da67d3a63174c5397
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions