summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2018-01-23 13:39:00 +0000
committerPaul Duffin <paulduffin@google.com>2018-01-23 17:09:32 +0000
commitbeee5dcdfadf4d4b34d3d6ac733be3c420746c84 (patch)
treea942b5c97c49d91d977bd44776a53b1c0e422b68 /tools/aapt2/java/JavaClassGenerator.cpp
parenta8c7794856c5794fa5b31cf5398b8f773650d6c7 (diff)
Support conditional removal of oahl from bootclasspath
This makes the runtime handling of the org.apache.http.legacy library conditional based on a build flag REMOVE_OAHL_FROM_BCP. When REMOVE_OAHL_FROM_BCP=true: * The framework-oahl-backward-compatibility is added to the bootclasspath instead of org.apache.http.legacy. * Any APK that targets pre-P has org.apache.http.legacy added to their library list. Otherwise: * The org.apache.http.legacy library is added to the bootclasspath. * Any APK that explicitly specifies that it depends on the org.apache.http.legacy library has the library removed as the classes are available at runtime. Tested both cases by building with or without the build flag, flashing, setting up, adding an account, adding a trusted place. Adding an account failed when REMOVE_OAHL_FROM_BCP=true. adb install -r -g out/target/product/marlin/testcases/FrameworksCoreTests/FrameworksCoreTests.apk adb shell am instrument -w -e class android.content.pm.PackageBackwardCompatibilityTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Bug: 18027885 Bug: 72375096 Test: as above Change-Id: Ie88fb79da76d3cbbd27eaf820c872191ecba2b17
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions