c75bbcecdb
Previously, the rules to perform hidden API encoding were generated
separately to the rules to perform hidden API flag generation. This
change combines them within the (renamed) produceHiddenAPIOutput()
method and makes the paths to the encoded dex files an output of the
generateHiddenAPIBuildActions method alongside the paths to the
generated flag files.
As encoded dex jars are now an output of the produceHiddenAPIOutput()
method which is implemented for both prebuilts and source
bootclasspath_fragment modules that necessitated the prebuilt also
providing paths to encoded dex files. That in turn required updates to
some of the tests to provide dex files from prebuilt_apex modules.
Similarly, as the produceHiddenAPIOutput() method may not be called
for some bootclasspath_fragment modules as they do not yet provide all
the information needed to perform hidden API encoding then it is
necessary to extract the encoded dex files produced by the modules
themselves. That also required a few changes to tests that did not
previously provide dex files.
Bug: 177892522
Test: m com.android.art
- check that this change does not change the contents of the apex
file, i.e. is byte-for-byte identical.
Merged-In: I60996a34d06ed1c87ed244ab3509621999ad86ec
Change-Id: I60996a34d06ed1c87ed244ab3509621999ad86ec
(cherry picked from commit
|
||
---|---|---|
.. | ||
config | ||
aapt2.go | ||
aar.go | ||
Android.bp | ||
android_manifest.go | ||
android_resources.go | ||
androidmk.go | ||
androidmk_test.go | ||
app.go | ||
app_builder.go | ||
app_import.go | ||
app_import_test.go | ||
app_set.go | ||
app_set_test.go | ||
app_test.go | ||
base.go | ||
boot_jars.go | ||
bootclasspath.go | ||
bootclasspath_fragment.go | ||
bootclasspath_fragment_test.go | ||
builder.go | ||
classpath_fragment.go | ||
device_host_converter.go | ||
device_host_converter_test.go | ||
dex.go | ||
dexpreopt.go | ||
dexpreopt_bootjars.go | ||
dexpreopt_bootjars_test.go | ||
dexpreopt_config.go | ||
dexpreopt_test.go | ||
droiddoc.go | ||
droiddoc_test.go | ||
droidstubs.go | ||
droidstubs_test.go | ||
gen.go | ||
genrule.go | ||
hiddenapi.go | ||
hiddenapi_modular.go | ||
hiddenapi_monolithic.go | ||
hiddenapi_singleton.go | ||
hiddenapi_singleton_test.go | ||
jacoco.go | ||
jacoco_test.go | ||
java.go | ||
java_resources.go | ||
java_test.go | ||
jdeps.go | ||
jdeps_test.go | ||
kotlin.go | ||
kotlin_test.go | ||
legacy_core_platform_api_usage.go | ||
lint.go | ||
lint_defaults.txt | ||
lint_test.go | ||
OWNERS | ||
platform_bootclasspath.go | ||
platform_bootclasspath_test.go | ||
platform_compat_config.go | ||
platform_compat_config_test.go | ||
plugin.go | ||
plugin_test.go | ||
prebuilt_apis.go | ||
proto.go | ||
robolectric.go | ||
rro.go | ||
rro_test.go | ||
sdk.go | ||
sdk_library.go | ||
sdk_library_external.go | ||
sdk_library_test.go | ||
sdk_test.go | ||
support_libraries.go | ||
system_modules.go | ||
system_modules_test.go | ||
systemserver_classpath_fragment.go | ||
systemserver_classpath_fragment_test.go | ||
testing.go | ||
tradefed.go |