Make veridex not output whitelisted uses by default.
Make the user choose whether to dump SDK or non-SDK uses instead
of dumping both.
Bug: 112978171
Test: appcompat.sh (with and without --only-report-sdk-uses)
Change-Id: Ic712be188d661080d60c7269d3852aee52c62efc
diff --git a/tools/veridex/veridex.cc b/tools/veridex/veridex.cc
index cf1167f..87e3af0 100644
--- a/tools/veridex/veridex.cc
+++ b/tools/veridex/veridex.cc
@@ -229,6 +229,9 @@
options.blacklist = nullptr;
options.dark_greylist = nullptr;
options.light_greylist = nullptr;
+ } else {
+ // Otherwise, omit SDK uses.
+ options.whitelist = nullptr;
}
// Find and log uses of hidden APIs.
@@ -335,4 +338,3 @@
int main(int argc, char** argv) {
return art::Veridex::Run(argc, argv);
}
-