Add min_sdk_version(30) when generating cc modules
Those listed hidl_interface modules are used by mainline
modules(APEX/APK) and they should declare min_sdk_version accordingly.
Setting this prop doesn't change any build outputs, but will let the
module authors know that they contribute the mainlines modules which
target and should run on declared sdk version.
Bug: 152655956
Test: m
Change-Id: Ic82cf147240b953f1d807dd3138c45708fd1fc1c
diff --git a/build/hidl_interface.go b/build/hidl_interface.go
index ebc2dc5..c4a84a6 100644
--- a/build/hidl_interface.go
+++ b/build/hidl_interface.go
@@ -938,10 +938,16 @@
}
var minSdkVersion = map[string]string{
+ "android.hardware.audio.common@5.0": "30",
+ "android.hardware.bluetooth.a2dp@1.0": "30",
+ "android.hardware.bluetooth.audio@2.0": "30",
+ "android.hardware.bluetooth@1.0": "30",
+ "android.hardware.bluetooth@1.1": "30",
"android.hardware.cas.native@1.0": "29",
"android.hardware.cas@1.0": "29",
"android.hardware.graphics.allocator@2.0": "29",
"android.hardware.graphics.allocator@3.0": "29",
+ "android.hardware.graphics.allocator@4.0": "29",
"android.hardware.graphics.bufferqueue@1.0": "29",
"android.hardware.graphics.bufferqueue@2.0": "29",
"android.hardware.graphics.common@1.0": "29",
@@ -950,10 +956,16 @@
"android.hardware.graphics.mapper@2.0": "29",
"android.hardware.graphics.mapper@2.1": "29",
"android.hardware.graphics.mapper@3.0": "29",
+ "android.hardware.graphics.mapper@4.0": "29",
"android.hardware.media.bufferpool@2.0": "29",
"android.hardware.media.c2@1.0": "29",
+ "android.hardware.media.c2@1.1": "29",
"android.hardware.media.omx@1.0": "29",
"android.hardware.media@1.0": "29",
+ "android.hardware.neuralnetworks@1.0": "30",
+ "android.hardware.neuralnetworks@1.1": "30",
+ "android.hardware.neuralnetworks@1.2": "30",
+ "android.hardware.neuralnetworks@1.3": "30",
"android.hidl.allocator@1.0": "29",
"android.hidl.memory.token@1.0": "29",
"android.hidl.memory@1.0": "29",