- Jun 29, 2021
-
-
Filip authored
Test: not required - documentation change Change-Id: Ib487278e7ca183fd968df70fb701a8cdf7266c19
-
Pirama Arumuga Nainar authored
-
Treehugger Robot authored
-
- Jun 28, 2021
-
-
Colin Cross authored
-
Colin Cross authored
This reverts commit e945a4d2. Reason for revert: broke full-eng checkbuild Change-Id: I0036fed96aa727b63c16982151fd661923e77e59
-
Treehugger Robot authored
-
Colin Cross authored
-
Dan Albert authored
Seems this works, but adding the test anyway. Test: pytest Bug: None Change-Id: I32903246a037f942e87b35479d07a8f30853f9e4
-
Yifan Hong authored
Test: pass Bug: 190868302 Change-Id: Ia51d9bb97d2f413b515335534cd5a771da68ce4b
-
Treehugger Robot authored
* changes: Tag android_app_import's apk as `android:"path"` genrule supports OutputFileProducer
-
Ivan Lozano authored
-
Colin Cross authored
* changes: Move default crt objects into Toolchain Add DefaultSharedLibraries to Toolchain Create toolchainBionic for the various bionic-based toolchains to inherit from
-
Jooyung Han authored
Now, android_app_import can use apk from other modules like genrule. Bug: 192200378 Test: m com.android.compos Change-Id: I5823fdb53b6aa20bfd9ec4dd16aafe63e65b6b68
-
Jooyung Han authored
And when genrule generates multiple output files, tag can be used to choose a single output file. Bug: 192200378 Test: soong test Change-Id: I3e44c137ad95468616ab883d3b277593cd82d1e8
-
Ivan Lozano authored
Adds rust_benchmark and rust_fuzz to the list of Rust module types which need to be in the allowed paths, and a comment about rust_bindgen and rust_protobuf. This also adds a downstream allow path list which helps prevent merge conflicts if downstream wants to extend the list of allowed paths. Bug: 191507775 Test: Paths are checked for the newly added module types. Test: Paths in DownstreamRustAllowedPaths allow Rust modules. Change-Id: Ida80c33a815d47ffdfb1f648125d71316a2a9d8a
-
Paul Duffin authored
-
Paul Duffin authored
-
Paul Duffin authored
-
Paul Duffin authored
Previously, the stub dex jars for each HiddenAPIScope was created by merging the stub dex jars provided by each module for that scope. Then the widest stub dex jars were chosen. So, if module A provided public, system and test stub dex jars and module B provided only public then the stub dex jars for each scope would be: * public -> A,B * system -> A * test -> A So, the widest API scope for which there are stub dex jars is "test" and so the widest stub dex jars would just come from module A and not module B. So, when "hiddenapi list" is run for module C which depends on modules A and B it only gets given stub dex jars for module A which means that it cannot resolve all the types that C may use which can lead to incorrect flags being generated. This change does not merge the stub dex jars from each module together and instead keeps them separate by module. The widest stub dex jars list is constructed by asking each module in turn for their widest stub dex jars. e.g. Given the above example we would have: Module A: * public * system * test <- widest Module B: * public <- widest So, the widest stub dex jars will be A's test and B's public stub dex jars. Bug: 179354495 Test: m out/soong/hiddenapi-flags.csv - make sure that this does not change the file. Change-Id: Ib137825ebffe94b2bf220732bae6077f7b7ac6db
-
Anton Hansson authored
-
Paul Duffin authored
-
- Jun 27, 2021
-
-
Paul Duffin authored
The widest stub dex jars should include the widest stub dex jars provided by each module. So, if module A has public, system and test and module B has only public then the widest stub dex jars should include module A's test and module B's public stub dex jars. Instead, they just include module A's test. That behaviour is needed so that when the "hiddenapi list" tool is run against a module C that it is passed stub dex jars from both module A and module B so that any references to the types provided by those APIs can be resolved. A follow up change will fix this issue. Bug: 179354495 Test: m nothing Change-Id: Ibd31964e8d2a33fa92fbd0b800c9fe054ee359c7
-
Paul Duffin authored
When generating the stub-flags.csv for a bootclasspath_fragment the hiddenapi list tool is not given a complete set of all classes and members. This change causes it to ignore them by passing the new --fragment option to 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. Change-Id: I890c7374c445759cade4d685f51e81261b7ccea2
-
Paul Duffin authored
When this file was initially created by extracting the test from the java_test.go file it was not added to Android.bp file so was not being built and tested as it should. That lead to a recent change that left it unable to compile. This change corrects both those issues. Bug: 186723288 Bug: 179354495 Test: m nothing Change-Id: I06f32bb572f57b6df3c772f1d9d21fe323fbf353
-
Treehugger Robot authored
-
- Jun 25, 2021
-
-
Treehugger Robot authored
-
Pirama Arumuga Nainar authored
Bug: http://b/187231324 This script parses soong/cc/config/global.go to return clang prebuilts version. (It may get the version from a json config file in the future.) Currently it's used in development/scripts/symbol.py and is the recommended way to get clang prebuilts version number in the future. Test: get_clang_version_test.py Change-Id: Id92a74fd523a5270999bb4d6454525bf2f2f0c04
-
Paul Duffin authored
-
Paul Duffin authored
-
Paul Duffin authored
-
Jiyong Park authored
* changes: Add platform_apis property to APEX module type Rust module in APEX uses stub libraries across APEX boundaries
-
Liz Kammer authored
Test: go test soong tests Change-Id: I177fcfd787c3aa8185f94dfcc971d9a0c56f9438
-
Yuntao Xu authored
-
Martin Stjernholm authored
Add an apex_name property to prebuilt APEX modules to allow specifying the "runtime" name of the APEX, i.e. the one it gets mounted as in /apex/, which is also the one used for the apex variations. Introduce a callback to retrieve that name consistently for all APEX modules (apex, override_apex, prebuilt_apex, and apex_set), and update some apex mutator code paths to use it. For APEX source modules (apex and override_apex), it's necessary to add a new field in apexBundle, since the name property gets overridden for the override variant that override_apex creates. Test: m nothing Bug: 191269918 Change-Id: If8612639bffdf91cbcab3387b0603bf5dffef1f5
-
Paul Duffin authored
Previously, hidden API processing could only be done by those bootclasspath_fragment modules that either did not depend on any other fragments (e.g. art-bootclasspath-fragment) or only depended on APIs provided by other fragments (e.g. i18n-bootclasspath-fragment). That meant that modules like com.android.os.statsd-bootclasspath-fragment that depended on APIs provided by parts of the platform which are not yet part of another bootclasspath_fragment could not perform hidden API processing. This change adds support for a bootclasspath_fragment to specify the additional stubs needed to perform hidden API processing. It adds a new additional_stubs property that can be used to specify the additional stub libraries. Most bootclasspath_fragments that need to use the property will need access to the APIs provided by the android-non-updatable.* libraries. Rather than have each fragment explicitly specify the correct module for each scope it treats "android-non-updatable" as if it was a java_sdk_library that can provide different jars for each scope. Soong will handle mapping that to the correct android-non-updatable.* module. Bug: 179354495 Test: m out/soong/hiddenapi/hiddenapi-flags.csv \ out/soong/hiddenapi/hiddenapi-index.csv \ out/soong/hiddenapi/hiddenapi-stub-flags.txt \ out/soong/hiddenapi/hiddenapi-unsupported.csv - make sure that this change does not change the contents. m TARGET_BUILD_APPS=Calendar nothing Change-Id: Ia8b79830ed0e6d42100de03d76b0c51b7f6c8ade
-
Paul Duffin authored
Bug: 179354495 Test: m out/soong/hiddenapi/hiddenapi-stub-flags.txt - check that an error is reported if a modular stub-flags.csv file, i.e. one created by a fragment is not a subset of the monolithic file, e.g. because a signature in the modular file has different flags than it does in the monolithic or is not present there. Change-Id: I46ebb495cb093a5e3abe7571c49933c845318549
-
Paul Duffin authored
Previously, the func created a rule and returned it for the caller to create with the appropriate name and description. This change passes the name and description into the func and causes it to create the rule itself. The func is also renamed to make it more consistent with the other similar rules. Bug: 179354495 Test: m nothing Change-Id: I2a4455daa8a6090ed5568994b255848d063e1ab2
-
Paul Duffin authored
-
Paul Duffin authored
-
Paul Duffin authored
-