Allow hiddenapi list to be more lax when run on a fragment
When run on a fragment of the bootclasspath the hiddenapi list is not
given a complete set of classes so it needs to ignore missing classes.
This change adds the --fragment option to do that. It also adds a
--verbose option which can be added to log the warnings anyway to make
it easier to debug issues that arise with it.
This does not risk changing the flags as the stub-flags.csv files
created with the --fragment option are compared with the monolithic
out/soong/hiddenapi/hiddenapi-stub-flags.txt file which is not run
with this option to ensure that they match.
Bug: 179354495
Test: m out/soong/hiddenapi-stub-flags.csv
- make sure that this does not change the file.
Merged-In: I7dac41b5afe8a6d1b2faaff4f4a33c7a5dfe012d
Change-Id: I7dac41b5afe8a6d1b2faaff4f4a33c7a5dfe012d
(cherry picked from commit 0c7a5fc09f54b25adc8ba225db2b6aeacbce0f7d)
1 file changed