ApplicationLoaders: improve classloader cache errs
When zygote preloads a classloader, but at runtime, a different one is used, we get an error and fallback. This error is improved in the following ways: - print the zip name with the shared libraries, so we know which library the error is for - distinguish cached from runtime dependencies in the error message itself Bug: 163886868 Test: N/A Change-Id: I3f4c4078e9eb05b83058982afc7b7ea0822d1257
This commit is contained in:
@@ -232,8 +232,8 @@ public class ApplicationLoaders {
|
||||
|
||||
// cached must be built and loaded in the same environment
|
||||
if (!sharedLibrariesEquals(sharedLibraries, cached.sharedLibraries)) {
|
||||
Log.w(TAG, "Unexpected environment for cached library: (" + sharedLibraries + "|"
|
||||
+ cached.sharedLibraries + ")");
|
||||
Log.w(TAG, "Unexpected environment loading cached library " + zip + " (real|cached): ("
|
||||
+ sharedLibraries + "|" + cached.sharedLibraries + ")");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user