Add comment to the Vendor HAL Android.bp file to

explain why the linter is disabled.

If the linter were enabled, we would run into a
build failure because fixed-size arrays are not
supported on SDK Level < 33. The interface indicates
min_sdk_version 30 due to mainline requirements,
but the interface will only be accessed by devices
running Android U.

Bug: 267819850
Test: m
Change-Id: Ifed2223d1c5f4bf46329ed72fa622b730e99cde1
This commit is contained in:
Gabriel Biren 2023-03-16 17:18:57 +00:00
parent 22b4a394bf
commit 0d841ae812

View file

@ -37,6 +37,8 @@ aidl_interface {
],
min_sdk_version: "30",
lint: {
// Disable linter to avoid error about fixed size arrays.
// Interface will only be accessed on devices >= U.
enabled: false,
},
},