diff --git a/Android.bp b/Android.bp
index c84dc1eb453..5470e708143 100644
--- a/Android.bp
+++ b/Android.bp
@@ -82,6 +82,7 @@ android_app {
"settings-platform-compat-config",
],
static_libs: ["Settings-core"],
+ uses_libs: ["org.apache.http.legacy"],
resource_dirs: [],
optimize: {
proguard_flags_files: ["proguard.flags"],
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 2e7453d6321..c77680dd6f5 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -118,6 +118,7 @@
android:directBootAware="true"
android:appComponentFactory="androidx.core.app.CoreComponentFactory">
+