OSDN Git Service

Handle configuration splits when creating the class loader context
authorCalin Juravle <calin@google.com>
Sat, 2 Sep 2017 00:30:01 +0000 (17:30 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 2 Nov 2017 16:27:59 +0000 (09:27 -0700)
commit9aab3b513d7a224270a578c128f334ad7c0334ff
treea9f136e8f4a8e05d44ff5efb66b2c4cd1bb75fe7
parent563a5cad666555b8bed26fb4eb01c9bd20c2421a
Handle configuration splits when creating the class loader context

Configuration splits have no dependencies which can lead to exceptions
when computing their class loader context.

In general, we do not need to compute the class loader context for apks
without code.

This CL addresses the issue by ignoring "code" paths with no actual code.

(cherry picked from commit da09815e2cd3d3968c66a8d52e620ee07d8204dd)

Bug: 65159159
Test: adb install-multiple config_splits
      runtest -x
services/tests/servicestests/src/com/android/server/pm/dex/DexoptUtilsTest.java

Merged-In: Ida1eb901eecba4a4266de73022f6ee4659367873
Change-Id: Ida1eb901eecba4a4266de73022f6ee4659367873
core/java/android/content/pm/ApplicationInfo.java
services/core/java/com/android/server/pm/PackageDexOptimizer.java
services/core/java/com/android/server/pm/dex/DexoptUtils.java
services/tests/servicestests/src/com/android/server/pm/dex/DexoptUtilsTest.java