Deprecate legacy_android10_support
min_sdk_version: 29 implies that the module should support Android10.
Bug: 150431944
Test: m
Merged-In: I5295f466512d45b918b6d86ecf6bca4fd29f476d
Change-Id: I5295f466512d45b918b6d86ecf6bca4fd29f476d
(cherry picked from commit 97d7b65dcc2e91e94f76640762f65ca522740e97)
Exempt-From-Owner-Approval: cp from aosp
diff --git a/apex/Android.bp b/apex/Android.bp
index 259558c..c1ef3d8 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -44,8 +44,15 @@
// Use a custom AndroidManifest.xml used for API targeting.
androidManifest: ":com.android.media-androidManifest",
+
+ // IMPORTANT: For the APEX to be installed on Android 10 (API 29),
+ // min_sdk_version should be 29. This enables the build system to make
+ // sure the package compatible to Android 10 in two ways:
+ // - build the APEX package compatible to Android 10
+ // so that the package can be installed.
+ // - build artifacts (lib/javalib/bin) against Android 10 SDK
+ // so that the artifacts can run.
min_sdk_version: "29",
- legacy_android10_support: true,
}
apex {
@@ -84,8 +91,15 @@
// Use a custom AndroidManifest.xml used for API targeting.
androidManifest: ":com.android.media.swcodec-androidManifest",
+
+ // IMPORTANT: For the APEX to be installed on Android 10 (API 29),
+ // min_sdk_version should be 29. This enables the build system to make
+ // sure the package compatible to Android 10 in two ways:
+ // - build the APEX package compatible to Android 10
+ // so that the package can be installed.
+ // - build artifacts (lib/javalib/bin) against Android 10 SDK
+ // so that the artifacts can run.
min_sdk_version: "29",
- legacy_android10_support: true,
}
prebuilt_etc {