diff options
author | 2023-11-08 13:38:36 +0900 | |
---|---|---|
committer | 2023-11-08 13:38:36 +0900 | |
commit | eb421ee86efa720811169633c87ec2c2ab0015a3 (patch) | |
tree | 07656dd8f0a4e63ea7e54aa18edc02c4740c162e | |
parent | 2ab031f467d047df7e59b792eab16570cd389d35 (diff) |
Deprecate 'contributions' field from linkerconfig
Linkerconfig's contribution feature was introduced in Android T, but
it's not used actively (probably, never used?). Let's deprecate it. Note
that its runtime behavior is kept to support any potential uses.
Bug: 309716069
Test: linkerconfig_diff_test
Test: Add "contributions" field to an apex, build it.
It should fail with an error message.
Change-Id: Icb91919142de14696219308674f1b3ac3e2d029b
-rw-r--r-- | scripts/conv_linker_config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/conv_linker_config.py b/scripts/conv_linker_config.py index c6e6e306f..ed3fbb79f 100644 --- a/scripts/conv_linker_config.py +++ b/scripts/conv_linker_config.py @@ -149,6 +149,11 @@ def Validate(args): else: sys.exit(f'Unknown type: {args.type}') + # Reject contributions field at build time while keeping the runtime behavior for GRF. + if getattr(pb, 'contributions'): + sys.exit(f"{args.input}: 'contributions' is set. " + "It's deprecated. Instead, make the APEX 'visible' and use android_dlopen_ext().") + def ValidateAndWriteAsPbFile(pb, output_path): ValidateConfiguration(pb) |