OSDN Git Service

[framework] Add check that classpath is up to date to getDexOptNeeded
authorCalin Juravle <calin@google.com>
Tue, 12 Sep 2017 07:58:33 +0000 (00:58 -0700)
committerCalin Juravle <calin@google.com>
Fri, 13 Oct 2017 19:13:39 +0000 (12:13 -0700)
commit576e6c0cbb0231d6650dee70319d7443c601fa1b
treee0747b4cd3fe6b9f9d6068bda4467de5ddec636c
parentf32edc9f6593b3701d995e062b8539da26b303b8
[framework] Add check that classpath is up to date to getDexOptNeeded

Bug: 62269291
Test: manual, install new apk/splits and force updates.
I used com.android.cts.classloadersplitapp as the test app.
1) install-multiple split apks with dependency: Base -> A -> B
2) push an update for A
3) adb shell cmd package compile
4) check that A & B got recompiled and that B was because a class loader
context mismatch (e.g. "ClassLoaderContext classpath element checksum
mismatch for position 1.").

Change-Id: I4092562966413dc8976c9d41b26a90bbb9e37e1e
core/java/com/android/internal/os/ZygoteInit.java
services/core/java/com/android/server/pm/PackageDexOptimizer.java