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)
committerCalin Juravle <calin@google.com>
Thu, 7 Sep 2017 06:31:53 +0000 (23:31 -0700)
commitda09815e2cd3d3968c66a8d52e620ee07d8204dd
tree987090c8cc0a862044aac1aa553d565471b2e56a
parent9174e8772277a749dc06de1e7133d9a16ede2d7d
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.

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

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