mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Soundtrigger3 has been built with "-Werror -Weverything" (from Android.bp) and "-Weverything -Wno-missing-permission-annotation" (from the AIDL build system). The former is added only for the ToT version of an AIDL interface. So far, soundtrigger3 wasn't frozen and therefore the implicit version 1 was the ToT version. As a result, absence of @RequiresPermission in its interface didn't break the build due to the automatically added "-Wno-missing-permission-annotation" despite that it had "-Werror". However, this is causing build breakage as soundtrigger3 now has version 1 and 2 (ToT) and the version 1 is built *without* "-Wno-missing-permission-annotation". Fixing this by manually adding the diag flag so that it's applied to all versions. Bug: 225941299 Test: m Change-Id: I3a43fc77997ef900b0f173c88530f570e436bc77
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "hardware_interfaces_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["hardware_interfaces_license"],
|
|
}
|
|
|
|
aidl_interface {
|
|
name: "android.hardware.soundtrigger3",
|
|
vendor_available: true,
|
|
host_supported: true,
|
|
flags: [
|
|
"-Werror",
|
|
"-Weverything",
|
|
"-Wno-missing-permission-annotation",
|
|
],
|
|
srcs: [
|
|
"android/hardware/soundtrigger3/ISoundTriggerHw.aidl",
|
|
"android/hardware/soundtrigger3/ISoundTriggerHwCallback.aidl",
|
|
"android/hardware/soundtrigger3/ISoundTriggerHwGlobalCallback.aidl",
|
|
],
|
|
stability: "vintf",
|
|
imports: [
|
|
"android.media.soundtrigger.types-V1",
|
|
],
|
|
backend: {
|
|
cpp: {
|
|
// prefer NDK backend which can be used anywhere
|
|
enabled: false,
|
|
},
|
|
java: {
|
|
sdk_version: "module_current",
|
|
},
|
|
ndk: {
|
|
vndk: {
|
|
enabled: true,
|
|
},
|
|
},
|
|
},
|
|
versions_with_info: [
|
|
{
|
|
version: "1",
|
|
imports: ["android.media.soundtrigger.types-V1"],
|
|
},
|
|
],
|
|
|
|
}
|