diff --git a/framework/Android.bp b/framework/Android.bp index 0334e11c82..4353213460 100644 --- a/framework/Android.bp +++ b/framework/Android.bp @@ -156,6 +156,7 @@ java_library { java_defaults { name: "CronetJavaDefaults", srcs: [":httpclient_api_sources"], + static_libs: ["com.android.net.http.flags-aconfig-java"], libs: [ "androidx.annotation_annotation", ], @@ -212,6 +213,7 @@ java_sdk_library { }, aconfig_declarations: [ "com.android.net.flags-aconfig", + "com.android.net.http.flags-aconfig", "com.android.networksecurity.flags-aconfig", ], } diff --git a/framework/api/module-lib-current.txt b/framework/api/module-lib-current.txt index cd7307f725..0129e5c73d 100644 --- a/framework/api/module-lib-current.txt +++ b/framework/api/module-lib-current.txt @@ -247,3 +247,11 @@ package android.net { } +package android.net.http { + + public abstract class HttpEngine { + method @FlaggedApi("android.net.http.preload_httpengine_in_zygote") public static void preload(); + } + +} +