Support for maxTargetSdk on @UnsupportedAppUsage.

class2greylist now supports writing to multiple output greylist files
specified on the command line like so:

class2greylist --write-greylist lightgrey.txt \
               --write-greylist 26:p-blacklist.txt \
	       --write-greylist 28:q-blacklist.txt

If no --write-greylist parameter is specified, then all annotated
interfaces will simply be written to standard out as before. This
maintains the previous behaviour, and de-couples this change from the
corresponding build changes.

Any maxTargetSdk parameters will be validated against the set of valid
values given in the --write-greylist parameters. If no such parameters
are given, the valid values are: 26 (O), 28 (P) or none.

Test: atest class2greylisttest
Bug: 110868826
Change-Id: Id001d5427b1d399f3af98444b501e8405531a66d
8 files changed