DO NOT MERGE: Enable Prebuilt SDK
Test: presubmit
Bug: 215375351
Merged-In: Id6b0a580bb3f5eee17ec395ee63877681e897ce6
Change-Id: Ib7cc05161e146c33813f0a60ed994168e7bbb856
(cherry picked from commit b12f69cd8ed2e6655ab69e4c2be44cb20ce96b6a)
Merged-In:Ib7cc05161e146c33813f0a60ed994168e7bbb856
diff --git a/current/Android.bp b/current/Android.bp
index f7282a9..7371c7c 100644
--- a/current/Android.bp
+++ b/current/Android.bp
@@ -1,11 +1,6 @@
// This is auto-generated. DO NOT EDIT.
-package {
- // A default list here prevents the license LSC from adding its own list which would
- // be unnecessary as every module in the sdk already has its own licenses property.
- default_applicable_licenses: ["Android-Apache-2.0"],
-}
-
+// Soong config variable stanza added by vendor/google/build/mainline_modules_sdks.py.
soong_config_module_type_import {
from: "packages/modules/common/Android.bp",
module_types: [
@@ -14,6 +9,12 @@
],
}
+package {
+ // A default list here prevents the license LSC from adding its own list which would
+ // be unnecessary as every module in the sdk already has its own licenses property.
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
prebuilt_bootclasspath_fragment {
name: "tethering-module-sdk_com.android.tethering-bootclasspath-fragment@current",
sdk_member_name: "com.android.tethering-bootclasspath-fragment",
@@ -37,6 +38,7 @@
module_prebuilt_bootclasspath_fragment {
name: "com.android.tethering-bootclasspath-fragment",
+ // Do not prefer prebuilt if SOONG_CONFIG_ANDROID_module_build_from_source is true.
prefer: true,
soong_config_variables: {
module_build_from_source: {
@@ -94,6 +96,7 @@
module_java_sdk_library_import {
name: "framework-connectivity",
+ // Do not prefer prebuilt if SOONG_CONFIG_ANDROID_module_build_from_source is true.
prefer: true,
soong_config_variables: {
module_build_from_source: {
@@ -161,7 +164,8 @@
module_java_sdk_library_import {
name: "framework-tethering",
- prefer: false,
+ // Do not prefer prebuilt if SOONG_CONFIG_ANDROID_module_build_from_source is true.
+ prefer: true,
soong_config_variables: {
module_build_from_source: {
prefer: false,