Commit Graph

1161 Commits

Author SHA1 Message Date
paulhu
63ab31bff7 Remove framework-module-defaults visibility to ConnectivityT
The framework-connectivity-t is using framework-module-defaults
to build sdk library. But framework-connectivity-t is located on
packages/modules/Connectivity not f/b/packages/ConnectivityT
which has the visibility already. So remove the unused directory
from framework-module-defaults visibility.

Bug: 208914639
Test: m
Change-Id: I8187cdfd6c92080a5555e70d9ddea3ebf206fbdc
2022-03-04 10:17:38 +08:00
Alexander Dorokhine
1929ec30b6 Merge "Update allowed_deps for new minsdk of libutf." am: 11a5116d8c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2002810

Change-Id: I9884feb8711099e36cf391e44d2d1ee31836d40e
2022-03-04 00:15:23 +00:00
Alexander Dorokhine
11a5116d8c Merge "Update allowed_deps for new minsdk of libutf." 2022-03-03 23:47:56 +00:00
Alexander Dorokhine
bcf5d7a226 Update allowed_deps for new minsdk of libutf.
libutf is already an allowed dependency, but without a min_sdk_version,
new presubmits are failing to allow it to be depended on by new apexes
like AppSearch.

The code was submitted in 2014 and only one CL has been submitted since
then, in 2018, so the project does not have a high rate of change.

Aosp-First: aosp
Test-Info: Upstream has Travis CI. In Android this is tested via the tests for libtextclassifier, NeuralNetworks and ExtServices.
Previous-Platform-Support: Was already used by mainline modules since the earliest mainline releases, before version tracking. In use by libtextclassifier, NeuralNetworks, ExtServices, AppSearch.
Apex-Size-Increase: 120KiB
Bug: 218419277
Test: Builds; passes presubmit
Change-Id: I8953be6aa256505066437380dd7da60c97b8ec74
2022-03-03 23:44:39 +00:00
Anton Hansson
69353afb48 Remove StubLibraries.bp
The new targets defined here ended up not being used for the purpose
I had in mind -- delete them and move the android.jar defaults back
to frameworks/base, where the only user now is.

Test: m
Merged-In: I9612c5c13ea38705ea949cf0836a790eafaf447f
Change-Id: I9612c5c13ea38705ea949cf0836a790eafaf447f
2022-03-03 15:14:59 +00:00
Gurpreet Singh
d4cdd43cf3 Merge "Adding apex_defaults to provide common parameters for Q, R, S and T." am: 0a4fe9ad55
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2005890

Change-Id: I9bd49fb9deb4e986952b5ec306053909f7adb1bc
2022-03-03 15:11:37 +00:00
Gurpreet Singh
0a4fe9ad55 Merge "Adding apex_defaults to provide common parameters for Q, R, S and T." 2022-03-03 14:47:55 +00:00
Gurpreet Singh
b6bc4b74a5 Adding apex_defaults to provide common parameters for Q, R, S and T.
This CL is adding the apex_defaults modules to provide common
parameters for the releases corresponding to Q, R, S and T.

These defaults servers as a common place to add properties which should
affect all mainline modules.

Bug: 172589606
Test: USE_RBE=true m
Since there are no runtime changes, successful code build is enough for
testing.

Change-Id: Ib7aeff510712b047df44bc1d16570c5a48d24e11
2022-03-03 13:12:39 +00:00
Cole Faust
9aa1202341 Merge "Don't explicitly mention SOONG_CONFIG_ variables" am: 9f8ee5f71f
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2002776

Change-Id: Iada4702136c1a1430b8afe6c3f7cd6637f000836
2022-03-02 19:19:18 +00:00
Cole Faust
9f8ee5f71f Merge "Don't explicitly mention SOONG_CONFIG_ variables" 2022-03-02 18:50:48 +00:00
Colin Cross
f74514d036 Use single module for clang runtime libraries
The clang prebuilts now provide a single module with per-architecture
variants instead of a module per architecture.

Bug: 220019988
No-Allowed-Deps-Check: renaming modules already included in apexes
Ignore-AOSP-First: topic contains vendor projects
Test: m checkbuild
Change-Id: I9f424c1a966e47049fdc67c58cab64a1c59b237f
Merged-In: I9f424c1a966e47049fdc67c58cab64a1c59b237f
2022-03-01 11:37:06 -08:00
markchien
2c323184eb Add networkstack-aidl-interface-V15 to allowed_deps
Apex-Size-Increase: negligible
Just replace networkstack_aidl_interface-V14 with V15 which has one
more field in DhcpServingParamsParcel.
Previous-Platform-Support: Y
Aosp-First: Y
Test-Info: NetworkStackTest

Bug: 170056953
Test: atest NetworkStackTests
Change-Id: I37cedc49954bf7c057567e60d672517779127586
2022-03-02 00:18:18 +08:00
Cole Faust
2f9bf4a102 Don't explicitly mention SOONG_CONFIG_ variables
The soong config variables should be controlled via
$(call soong_config_set/get) instead of using the
underlaying variable. Update the comments in the
auto generated makefiles to reflect that.

Bug: 220940864
Test: m mainline_modules_sdks_test && /ssd/aosp-master/out/host/linux-x86/nativetest64/mainline_modules_sdks_test/mainline_modules_sdks_test
Change-Id: I8907d89ceb12e0a1e9ce53220a784e4a69502687
2022-02-28 16:51:32 -08:00
Dave Mankoff
8a8d016df6 Include leanback-grid and kotlin-stdlib-jdk8. am: ad786e72e5
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1998973

Change-Id: I717406a3532558217f60d3d110b02ef1b2913705
2022-02-25 18:00:30 +00:00
Dave Mankoff
ad786e72e5 Include leanback-grid and kotlin-stdlib-jdk8.
This library was split from leanback in
https://r.android.com/1849297

Kotlin stdlib JDK 8 extensions is required for Jetpack.

Apex-Size-Increase: leanback-grid-1.0.0-alpha02-sources.jar is 77k
    leanback-1.2.0-alpha03-sources.jar is smaller by almost the same
    amount. See http://ag/16623781. kotlin-stdlib-jdk8 is 15k.
Previous-Platform-Support: Yes, split from already supported lib.
Aosp-First: AOSP-first
Test-Info: unknown
Test: manually built
Bug: 214255490
Change-Id: I2522a4910b1696a48f30476c5cc23ab2392a4f82
2022-02-25 10:29:00 -05:00
Paul Duffin
949d682f7f Add Tiramisu build release am: 654d81ef49
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1990896

Change-Id: I5f5f05b50d9faf1927af78994cf93be633c4a6bc
2022-02-18 16:19:40 +00:00
Paul Duffin
654d81ef49 Add Tiramisu build release
Bug: 204763318
Test: atest mainline_modules_sdks_test
      packages/modules/common/build/mainline_modules_sdks.sh
      tree out/dist/mainline-sdks out/dist/stubs
      - check that it adds the for-Tiramisu-build directory but is
        otherwise identical to what was produced before this change.
      - check that the for-Tiramisu-build directory contains zip
        files that include the new in T annotations property.
Change-Id: I4bd8c1350101d84644a7a63f2632634b8c9a488b
2022-02-18 14:28:36 +00:00
Tyler Wear
4afd11b179 Update deps for ConnectivityNative
Update  the deps for the new ConnectivityNative.

Bug: 179733303
Change-Id: Id3b1ffee1bd7d7f5add650cd21a0cc67a984765b
2022-02-16 13:55:36 -08:00
Colin Cross
be67b461e4 Add ubsan_minimal as apex dependency am: 0274253f14
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1980453

Change-Id: Ibf87308f5d6e013a177bb47b6a004868b578b22a
2022-02-16 19:33:25 +00:00
Colin Cross
fbde575277 Add libmedia_helper to allowed deps
libmedia_helper_headers is already available, but libmpegextractor
transitively uses libmedia_helper through libstagefright_mpegextractor.
For mainline builds libmpegextractor uses CFI, which implicitly enables
LTO and causes the usage of libmedia_helper to be stripped.  Builds
without CFI fail on missing references to libmedia_helper symbols.

No-Allowed-Deps-Check: libmedia_helper_headers already listed, no change to contents of apex
Bug: 190084016
Test: m USE_HOST_MUSL=true host-native
Change-Id: Iee95b7d3ce504e30ad7e81a191916f9b2cd8332c
2022-02-15 21:23:05 +00:00
Colin Cross
0274253f14 Add ubsan_minimal as apex dependency
These libraries were already included, but they were added as
linker flags, not as dependencies.

No-Allowed-Deps-Check: files were already included in apexes
Test: m checkbuild
Change-Id: I01f454d17ccf08cf6542829a4eed1cb7941973f5
2022-02-15 13:21:30 -08:00
Xin Li
3fe04f3469 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I19cf1009659b7b504bb37616ef7e9f19b439e2d7
Change-Id: I78ff27ec96352e7422bb44641bc2cec799aeb9c4
2022-02-11 06:57:50 +00:00
Paul Duffin
6cf95bfc87 Merge "Support building build target specific snapshots" am: 27aef8152b
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1958805

Change-Id: I250bab585aebef89e2f9419fab7c8e0e0773426f
2022-02-10 14:40:38 +00:00
Paul Duffin
27aef8152b Merge "Support building build target specific snapshots" 2022-02-10 14:22:25 +00:00
Jean Chalard
5053fb292b Merge "Allow APEXes to depend on networkstack-aidl-interfaces-V14" am: bb4bf33b34
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1973960

Change-Id: I5f34ec71edec64a0e837f681db6899d160554f33
2022-02-09 17:11:53 +00:00
Jean Chalard
bb4bf33b34 Merge "Allow APEXes to depend on networkstack-aidl-interfaces-V14" 2022-02-09 16:55:44 +00:00
satayev
6ce7873151 Add Sepolicy module to presubmit. am: faaf927797
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1975106

Change-Id: I0b117da393873c11db7777b74f2072433bed2bc2
2022-02-09 13:45:03 +00:00
paulhu
c56fd378b9 Update sdk version for mdns aidl libs
The minSdkVersion of mdns_aidl_interface libs should align the
tethering apex minSdkVersion. Thus, update minSdkVersion to 30.

Bug: 209894875
Test: m
Change-Id: I4c22b74614f22eb10302f909ec2300376da5ba76
2022-02-09 10:30:08 +08:00
Chalard Jean
6333a6df73 Allow APEXes to depend on networkstack-aidl-interfaces-V14
Test: new tests included in the topic
Apex-Size-Increase: trivial, one new method
Previous-Platform-Support: supported all the way to 29,
                           though no code will call it until 33
Aosp-First: AOSP first
Test-Info: already has extensive testing
Change-Id: I21e398a986fdd74c2601756c31dd3afcfeb57974
2022-02-08 23:06:53 +09:00
satayev
faaf927797 Add Sepolicy module to presubmit.
Bug: 199914227
Test: presubmit
Change-Id: I7f75c8b76a1f99af03d83fe7ccfd9032f7fe2249
2022-02-07 18:11:46 +00:00
Paul Duffin
01ea57c593 Support building build target specific snapshots
This changes adds support for building target build release specific
snapshots.

It adds a BuildRelease class that defines the characteristics of the
build release, e.g. name, how to create it, etc. It also adds a
first_release field to MainlineModule which specifies the first
BuildRelease for which a snapshot of the module is required and
initializes that field for each module.

After these changes this script will generate:
1. A legacy set of snapshots that match the file structure that was
   generated without this change. This is intended to allow existing
   consumers of the generated artifacts to continue to work while they
   are modified to make use of target build release specific snapshots.

2. The set of snapshots for the latest build release, i.e. the build
   release containing the source from which the snapshots are produced.
   This includes snapshots for all the modules.

3. For each build release from S onwards a set of snapshots for the
   modules it supports.

It does not currently generate snapshots for Q and R releases as Soong
cannot generate a compatible snapshot for them. If it is necessary to
generate snapshots for those target build releases (similar to what the
packages/modules/common/generate_ml_bundle.sh would produce) then a
follow up change will add that capability to this script.

Bug: 204763318
Test: atest mainline_modules_sdks_test
      packages/modules/common/build/mainline_modules_sdks.sh
      tree out/dist/mainline-sdks out/dist/stubs
      - check that it adds the for-latest-build directory but is
        otherwise identical to what was produced before this change.
Change-Id: I48eb0b69cbe8664106b826ee0898557c98e039c2
2022-02-07 14:12:17 +00:00
Anton Hansson
cdd146cb8a Merge "Update visibility to impl jars" am: 6ea0eb45c5
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1972592

Change-Id: I29f6b8d0ec3b056feb610e55c89e39cee0bba1a8
2022-02-07 12:06:29 +00:00
Anton Hansson
6ea0eb45c5 Merge "Update visibility to impl jars" 2022-02-07 11:51:11 +00:00
Anton Hansson
26621734ae Update visibility to impl jars
The "merged" impl jar definition is moving to a new directory.

Bug: 169103987
Test: m nothing
Merged-In: I8eee60259f00fed281f0c579b12e9e99a4f6612e
Change-Id: I8eee60259f00fed281f0c579b12e9e99a4f6612e
(cherry picked from commit 711e0ef744b8c67fbab4815e040ea3726cb284ad)
2022-02-07 08:57:28 +00:00
Treehugger Robot
43abdf0291 Merge "Change cur_sdkinfo_src to a genrule" am: 169c4978de
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1966335

Change-Id: I04fc79367bd6f837d401f2d06d9d00b2a7dada35
2022-02-04 15:56:27 +00:00
Treehugger Robot
169c4978de Merge "Change cur_sdkinfo_src to a genrule" 2022-02-04 15:46:26 +00:00
Liz Kammer
681fcc852a Change cur_sdkinfo_src to a genrule
Bazel is more strict about only accepting srcs, not directories
as inputs, so the ability to specify a directory will become
limited in Soong.

Test: m cur_sdkinfo_src && diff before/after
Change-Id: I95e6300fb2ef793ee0231589be7fc35eb5a8d882
2022-02-02 14:07:45 +00:00
Treehugger Robot
d323ad2091 Merge changes from topic "uwb-vendor" am: 1abdf7a0fb
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1960672

Change-Id: I738afa5e2515e8a6aae6f7dbca38affac69ffc1c
2022-01-27 21:06:47 +00:00
Matthew Maurer
491652f539 Make rust binder APEX available am: f37ed0c99c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1960671

Change-Id: If31353c977bc428eed98b663909949060fe64075
2022-01-27 21:06:42 +00:00
Treehugger Robot
1abdf7a0fb Merge changes from topic "uwb-vendor"
* changes:
  Make async AIDL available to UWB
  Make rust binder APEX available
2022-01-27 20:49:01 +00:00
Paul Hu
2d6288be40 Merge "Add mdns_aidl_interface libs to allowed_deps." am: 672da8a84c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1948982

Change-Id: I9d0c165b01f6fc30d23885d0810d799adfc44f89
2022-01-26 02:27:39 +00:00
Paul Hu
672da8a84c Merge "Add mdns_aidl_interface libs to allowed_deps." 2022-01-26 02:14:45 +00:00
Matthew Maurer
1c315bd843 Make async AIDL available to UWB
Apex-Size-Increase: 2684 bytes (or less when statically linked)
Previous-Platform-Support: None
Aosp-First: Yes
Test-Info: rustBinderTest
Bug: 216357072
Change-Id: I952656c3f6fe1b4d85708c4c569d1d795270bae7
2022-01-26 00:25:07 +00:00
Matthew Maurer
f37ed0c99c Make rust binder APEX available
Apex-Size-Increase: N/A - already included
Previous-Platform-Support: None
Aosp-First: Yes
Test-Info: rustBinderTest

See I6ded38519fea7c193da8017f521e6ed30b8d4756 - these libraries are AOSP
first, but were made available in a change with internal-first modules.

Merged-In: I6ded38519fea7c193da8017f521e6ed30b8d4756
Change-Id: I7d29babba556bd2cf673f88c2a8b4f5ff4963b91
2022-01-26 00:24:18 +00:00
Paul Duffin
a86daf4541 Move MAINLINE_MODULE_BY_APEX into the test file am: 300ec921e5
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1957400

Change-Id: I625f0e2bb3a32b6b4278abf2aca4b45408b12e71
2022-01-24 14:06:38 +00:00
Paul Duffin
8abce1f688 Split populate_stubs out of populate_dist am: 661845d4ec
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1957399

Change-Id: I020493a4ec2c048424a5235a4ccdb210d9bf8d66
2022-01-24 14:06:37 +00:00
Paul Duffin
48c2a6b3a4 Extract logic for building the snapshots to improve testability am: f5245ce53d
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1954695

Change-Id: Ib217c4866a76a1e7ba80db3e2f73af4473f59ac1
2022-01-24 14:06:36 +00:00
Paul Duffin
354ea9cb2b Extract subprocess run calls into SubprocessRunner am: b349358ae2
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1954694

Change-Id: Ieb40e2045248a8ab43e75cf11a96ae137eebdf51
2022-01-24 14:06:36 +00:00
Paul Duffin
4fad11387d Use unbuffered stdio to make it easy to use print for debugging am: 832cac237c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/1954693

Change-Id: Ifb3f79684cddb378e9002d3001adbb1261169bb6
2022-01-24 14:06:35 +00:00
paulhu
d8f202e610 Add mdns_aidl_interface libs to allowed_deps.
This is a target that splits the current interface to netd
(netd_aidl_interface) in a new target to cover only mdns, which
is implemented in native code in netd.

Apex-Size-Increase: 53248B
Before
-rw-r--r-- 1 paulhu primarygroup 3018752 Jan 24 10:29 out/target/product/bramble/system/apex/com.android.tethering.apex

After
-rw-r--r-- 1 paulhu primarygroup 3072000 Jan 24 10:15 out/target/product/bramble/system/apex/com.android.tethering.apex

Previous-Platform-Support: Yes, support previous platform releases

Aosp-First: Yes

Test-Info: all unit tests related to Connectivity/netd

Bug: 209894875
Test: atest FrameworksNetTests CtsNetTestCases
Test: cd system/netd ; atest
Change-Id: Ifc4bdbd412d49de4de1d269fa3ab559dd59c859e
2022-01-24 13:33:18 +00:00