From 896237b7b945e38e2580e5d62e260e53301ef514 Mon Sep 17 00:00:00 2001 From: Andrei Onea Date: Fri, 29 Mar 2019 13:45:58 +0000 Subject: [PATCH] Automatically greylist code in 3P packages Bug: 129387816 Test: m appcompat Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py Change-Id: Id55abed766a6de6a2c032ee12d5153ab73a8d65c --- java/hiddenapi_singleton.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go index 86531ebc7..139114b37 100644 --- a/java/hiddenapi_singleton.go +++ b/java/hiddenapi_singleton.go @@ -236,6 +236,8 @@ func flagsRule(ctx android.SingletonContext) android.Path { android.PathForSource(ctx, "frameworks/base/config/hiddenapi-greylist-max-o.txt")). FlagWithInput("--blacklist ", android.PathForSource(ctx, "frameworks/base/config/hiddenapi-force-blacklist.txt")). + FlagWithInput("--greylist-packages ", + android.PathForSource(ctx, "frameworks/base/config/hiddenapi-greylist-packages.txt")). FlagWithOutput("--output ", tempPath) commitChangeForRestat(rule, tempPath, outputPath)