summaryrefslogtreecommitdiff
path: root/scripts/construct_context_test.py
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-04-28 17:45:11 +0100
committer Paul Duffin <paulduffin@google.com> 2022-04-29 14:08:30 +0000
commita80cc174a2b56b53c8fed1cf6c868f760404b3c1 (patch)
tree9ae8c0670d705e1be4a53f44f980b8726e6e1d15 /scripts/construct_context_test.py
parenta083ec4acf53bd65676df31a5d99db2574a6b0aa (diff)
hiddenapi: Prevent libraries for Q/R from include S+ flags.
The Q and R runtimes can handle Q/R flags but not S flags. So, this change verifies that any library that can run on Q/R (min_sdk_version <= R) by adding --max-hiddenapi-level=max-target-r to the "hiddenapi encode" command. That will cause a failure if any S+ flags are found in the flags to encode. Bug: 172453495 Test: m droid && launch_cvd Cherry pick changes in https://r.android.com/q/topic:max-target-s Add @UnsupportedAppUsage maxTargetSdk=S in classes in framework-permission (for r/q) and framework-permission-s (nominally for S+). I had to incresed the min_sdk_version in the latter to 31 (S) as it was still set at 30 (R). Merged-In: Ie0f68482603adc7b4e3d7a5c81bf203d81a84a9e Change-Id: Ie0f68482603adc7b4e3d7a5c81bf203d81a84a9e (cherry picked from commit 09817d66dea3639528b35a5b61ddce78766d198c)
Diffstat (limited to 'scripts/construct_context_test.py')
0 files changed, 0 insertions, 0 deletions