From bcde1c52a6eda2643ab682506f70c3d6f3fee8dd Mon Sep 17 00:00:00 2001 From: Mathew Inwood Date: Mon, 22 Oct 2018 13:26:43 +0100 Subject: [PATCH] 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 --- core/definitions.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/definitions.mk b/core/definitions.mk index 43a218942e..3a7e17f456 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -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) \