Put maxTargetSdk=P APIs onto light greylist.

Since the per-SDK level enforcement support is not ready in ART yet, we
can't implement the correct enforcement for maxTargetSdk=P. Putting these
APIs on the dark greylist causes problems for existing apps, so put them
on the light greylist instead.

Test: m
Bug: 117899984
Change-Id: Ib3dad2f50eb6a769ba9f21cec4bac01275888ef6
This commit is contained in:
Mathew Inwood
2018-10-22 13:26:43 +01:00
parent f1dafa30e4
commit bcde1c52a6

View File

@@ -2689,8 +2689,8 @@ $(3): .KATI_IMPLICIT_OUTPUTS := $(2) $(4)
$(3): $(1) $(CLASS2GREYLIST) $(INTERNAL_PLATFORM_HIDDENAPI_PUBLIC_LIST)
$(CLASS2GREYLIST) --public-api-list $(INTERNAL_PLATFORM_HIDDENAPI_PUBLIC_LIST) $(1) \
--write-whitelist $(2) \
--write-greylist $(3) \
--write-greylist 26,28:$(4)
--write-greylist none,28:$(3) \
--write-greylist 26:$(4)
$(5): $(1) $(CLASS2GREYLIST) $(INTERNAL_PLATFORM_HIDDENAPI_PUBLIC_LIST)
$(CLASS2GREYLIST) --public-api-list $(INTERNAL_PLATFORM_HIDDENAPI_PUBLIC_LIST) $(1) \