Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0d32696 authored by David Brazdil's avatar David Brazdil Committed by android-build-team Robot
Browse files

Stabilize hidden API lists

Hidden API lists are auto-generated using a combination of Doclava
/Makefile rules and manually curated lists. As OEMs make their own
changes to the framework, they might arrive at slightly different
lists. This is not desirable as the entire ecosystem should enforce
the same rules. This patch adds the files generated by Doclava to
the code base, which will stabilize the lists for everyone.

The problem is exacerbated by the fact that the Doclava-generated
private-dex.txt contains only classes explored by Doclava. This can
change rather unexpectedly as OEMs make changes and start/stop using
internal classes otherwise only used in unexplored code. If the file
is extended, they might start blacklisting new APIs. If the file
shrinks, they might start whitelisting APIs they should restrict
access to and have trouble passing CTS.

(Avoid merging out of pi trees)

Test: m ; check that produced lists have not changed
Bug: 109824927
Merged-In: I0e9653d9cd7e4b748870bacb6fbcecae535ebb2a
Change-Id: I1463a06d6510e7051a64d5d516f4c589638ca11c
(cherry picked from commit 59998305)
parent 9d40aac1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1002,9 +1002,9 @@ LOCAL_BLACKLIST := $(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST)
LOCAL_SRC_GREYLIST := frameworks/base/config/hiddenapi-light-greylist.txt
LOCAL_SRC_VENDOR_LIST := frameworks/base/config/hiddenapi-vendor-list.txt
LOCAL_SRC_FORCE_BLACKLIST := frameworks/base/config/hiddenapi-force-blacklist.txt
LOCAL_SRC_PUBLIC_API := $(INTERNAL_PLATFORM_DEX_API_FILE)
LOCAL_SRC_PRIVATE_API := $(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE)
LOCAL_SRC_REMOVED_API := $(INTERNAL_PLATFORM_REMOVED_DEX_API_FILE)
LOCAL_SRC_PUBLIC_API := frameworks/base/config/hiddenapi-public-dex.txt
LOCAL_SRC_PRIVATE_API := frameworks/base/config/hiddenapi-private-dex.txt
LOCAL_SRC_REMOVED_API := frameworks/base/config/hiddenapi-removed-dex.txt

LOCAL_SRC_ALL := \
	$(LOCAL_SRC_GREYLIST) \
+141736 −0

File added.

Preview size limit exceeded, changes collapsed.

+74841 −0

File added.

Preview size limit exceeded, changes collapsed.

+348 −0

File added.

Preview size limit exceeded, changes collapsed.