diff options
author | Narayan Kamath <narayan@google.com> | 2015-03-30 11:31:04 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-03-31 08:51:53 +0000 |
commit | b12dcfb1b12c13e01743567145f01e7d389afdbb (patch) | |
tree | 9f01546f58e1d22adf669940640e56ba670fe36b | |
parent | 0b037e93fce761f923330432f51aba40f9a316c8 (diff) | |
download | frameworks_base-b12dcfb1b12c13e01743567145f01e7d389afdbb.zip frameworks_base-b12dcfb1b12c13e01743567145f01e7d389afdbb.tar.gz frameworks_base-b12dcfb1b12c13e01743567145f01e7d389afdbb.tar.bz2 |
Remove org.apache.http.legacy for declared shared lib lists.
We currently unconditionally include this shared library in the
boot classpath, so attempts to compile it will fail resulting in
unnecessary logspam.
Change-Id: Iafe9b2e725e10d939cd39dd4a816a146a6031baf
-rw-r--r-- | core/java/android/content/pm/PackageParser.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/core/java/android/content/pm/PackageParser.java b/core/java/android/content/pm/PackageParser.java index e20057d..4b81fd4 100644 --- a/core/java/android/content/pm/PackageParser.java +++ b/core/java/android/content/pm/PackageParser.java @@ -2750,15 +2750,21 @@ public class PackageParser { } } - addSharedLibrariesForBackwardCompatibility(owner); + modifySharedLibrariesForBackwardCompatibility(owner); return true; } - private static void addSharedLibrariesForBackwardCompatibility(Package owner) { - if (owner.applicationInfo.targetSdkVersion <= Build.VERSION_CODES.LOLLIPOP_MR1) { - owner.usesLibraries = ArrayUtils.add(owner.usesLibraries, "org.apache.http.legacy"); - } + private static void modifySharedLibrariesForBackwardCompatibility(Package owner) { + // "org.apache.http.legacy" is now a part of the boot classpath so it doesn't need + // to be an explicit dependency. + // + // A future change will remove this library from the boot classpath, at which point + // all apps that target SDK 21 and earlier will have it automatically added to their + // dependency lists. + owner.usesLibraries = ArrayUtils.remove(owner.usesLibraries, "org.apache.http.legacy"); + owner.usesOptionalLibraries = ArrayUtils.remove(owner.usesOptionalLibraries, + "org.apache.http.legacy"); } /** |