From 44036a76899fbc44cc367dd763c1496e1e60899c Mon Sep 17 00:00:00 2001 From: Artur Satayev Date: Thu, 31 Oct 2019 12:12:00 +0000 Subject: Blacklist @TestApis by default. If the signature has @UnsupportedAppUsage or @SystemApi annotation as well, those take precedence and the API would either be whitelisted or greylisted accordingly. All other, "pure" @TestApi signatures would be blacklisted and only allowed access in instrumented processes. Test: manual Bug: 133832325 Change-Id: I4684929caed8be7c42c91fed33ddd2a3b67ae19b --- tools/hiddenapi/generate_hiddenapi_lists.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'tools/hiddenapi/generate_hiddenapi_lists.py') diff --git a/tools/hiddenapi/generate_hiddenapi_lists.py b/tools/hiddenapi/generate_hiddenapi_lists.py index e883c6bed755..46105f4d66b0 100755 --- a/tools/hiddenapi/generate_hiddenapi_lists.py +++ b/tools/hiddenapi/generate_hiddenapi_lists.py @@ -241,8 +241,6 @@ class FlagsDict: flags = csv[1:] if (FLAG_PUBLIC_API in flags) or (FLAG_SYSTEM_API in flags): flags.append(FLAG_WHITELIST) - elif FLAG_TEST_API in flags: - flags.append(FLAG_GREYLIST) self._dict[csv[0]].update(flags) def assign_flag(self, flag, apis, source=""): -- cgit v1.2.3