summaryrefslogtreecommitdiff
path: root/media/jni
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2021-03-16 22:29:45 +0900
committerJiyong Park <jiyong@google.com>2021-03-17 14:20:54 +0900
commit147c20f115d124706590057a4e53c002f8898f5b (patch)
tree6b6f9d56f5bf2ef874c40f8f1efd5fdac9698213 /media/jni
parent665844b1e29d0401d7c1b00a4ccd87b27a0bf09b (diff)
Reset min_sdk_version of libmedia_jni
libmedia_jni is the non-updatable part of the platform. However, it has been built with `min_sdk_version: "29"` inherited from libcodec2-internal-defaults and then again from libcodec2-impl-defaults. The setting is for the codec2 cc_* modules that are part of the media APEX. So far, this however, hasn't caused a problem because the build system ignored min_sdk_version for the platform variants. This will change starting from I88f64c5a35f1b5276c3350e177b116932011a940. Then libmedia_jni will actually be built with min_sdk_verison: 29, and it will be enforced that any APIs above the API level 29 should be guarded with __builtin_available. Adding the guards will not only be cumbersome, but also wouldn't give any benefit because libmedia_jni is tied to the platform. The check will always be true. Instead, this change resets the min_sdk_version of libmedia_jni, so that it can keep the existing behavior. Bug: N/A Test: m libmedia_jni Change-Id: Ie963d71f60cbfe849b5400a5ecf2d52119078554
Diffstat (limited to 'media/jni')
-rw-r--r--media/jni/Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/jni/Android.bp b/media/jni/Android.bp
index f65dfddef008..517e192e00af 100644
--- a/media/jni/Android.bp
+++ b/media/jni/Android.bp
@@ -19,6 +19,7 @@ cc_library_shared {
name: "libmedia_jni",
defaults: ["libcodec2-internal-defaults"],
+ min_sdk_version: "",
srcs: [
"android_media_ImageWriter.cpp",