Alexei Nicoara
c939b0181d
Passing default version to zipApex as well
...
Test: presubmit
Bug: 231691643
Change-Id: Ic751d7ea2d23180855897702a03bf1b589d7ef80
2022-07-06 13:56:50 +01:00
Alexei Nicoara
919fc29377
Merge "Removing comment lines from apex_manifest.json" am: f6152a161b
am: 663d7560da
am: 5bb9d3e85d
am: 8a9f099c34
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2142072
Change-Id: Iadfc5433db3a40e8397f3ee566b2a21f707c94cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-07-01 15:20:43 +00:00
Alexei Nicoara
663d7560da
Merge "Removing comment lines from apex_manifest.json" am: f6152a161b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2142072
Change-Id: I1009e2d99e417e25e48b24345810f32f5dcaf818
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-07-01 14:30:12 +00:00
Alexei Nicoara
ee4b633627
Removing comment lines from apex_manifest.json
...
Allowing comments in apex_manifest.json by stripping all the lines which
start with //
Test: presubmit
Bug: 237532860
Change-Id: Iec8c9987edf19b763b2b87df7d125c006ffb217a
2022-06-30 16:34:28 +01:00
William Escande
49bc23b601
Clear apex.go entries for bluetooth libs am: 89bca3f301
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/19111518
Change-Id: Ib43164dedb4fcd90addcecd570f195e08dc6428b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-30 00:55:59 +00:00
Xin Li
42307c80c7
Merge "Merge tm-dev-plus-aosp-without-vendor@8763363" into stage-aosp-master
2022-06-29 21:16:54 +00:00
Treehugger Robot
4f7d0eb241
Merge "Refactor apexBundle code." am: 114ad30d76
am: 7028b50308
am: a416730bf1
am: 05941e95e1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2138053
Change-Id: I41db417767906075c49c274bab766773e5cebab2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-29 09:17:56 +00:00
Treehugger Robot
a416730bf1
Merge "Refactor apexBundle code." am: 114ad30d76
am: 7028b50308
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2138053
Change-Id: I20c91b9425adffb44115dfc59e4b40cfa562b669
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-29 08:32:59 +00:00
Sasha Smundak
6f9e91d5e9
Refactor apexBundle code.
...
Move dependency walker out of GenerateAndroidBuildActions, reduce IDE
warnings.
Test: treehugger
Change-Id: I520c59772b1da7102d2a2364b2c56789455ea7fb
2022-06-28 22:47:43 -07:00
William Escande
89bca3f301
Clear apex.go entries for bluetooth libs
...
The module availability to Bluetooth is currently hard-coded in apex.go.
We are in the process of cleaning the apex.go by adding the availability
in each required module
Test: Build + TH + boot phone & use bluetooth
Bug: 216433795
Change-Id: I883a12f89a6d7eb43778e04ac50d6af38dd97116
2022-06-29 01:04:15 +00:00
William Escande
0ac940fab3
Merge "Clear apex.go entries for bluetooth libs" into tm-qpr-dev am: aec111952d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/18743691
Change-Id: Ied2610e2599dea44e338b3d3f51bd5e873bf3400
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-28 23:25:51 +00:00
William Escande
aec111952d
Merge "Clear apex.go entries for bluetooth libs" into tm-qpr-dev
2022-06-28 23:09:56 +00:00
Oriol Prieto Gascó
cda10e187b
Merge "Hard-code apex_available handling for the btservices apex" into tm-dev am: 3bb9d7a8d9
am: bb63423da1
am: 7b8cb64821
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/18972588
Change-Id: I7742de88e124be497b0f60a73fd81852c464848d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-22 18:38:07 +00:00
Oriol Prieto Gascó
7d7bc5bef1
Merge "Hard-code apex_available handling for the btservices apex" into tm-dev am: 3bb9d7a8d9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/18972588
Change-Id: I5c6cc4bc32174ba0739d7ed6b42ae0b1685c4ef6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-22 17:43:25 +00:00
Oriol Prieto Gasco
8132fbf8c1
Hard-code apex_available handling for the btservices apex
...
Bug: 236192423
Test: TH
Change-Id: Ie095ae22704a80e0ec171b1bb3fdc995f95a1c64
2022-06-19 23:13:25 +00:00
Treehugger Robot
9f7fa50427
Merge "Restrict IsSanitizerEnabled() to android.Config()." am: 1c6502eba2
am: 7125d5d606
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2127446
Change-Id: Ie6b578793fa05304b869795af4e0ca4455b75d5b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-17 23:05:53 +00:00
Lukacs T. Berki
01a648afa0
Restrict IsSanitizerEnabled() to android.Config().
...
Turns out, the whole context is not needed and then let's not
plumb it any further than necessary.
Test: Presubmits.
Change-Id: I1a25738e5a6ca20dea0d973c2ce435b5e152399b
2022-06-17 08:59:37 +02:00
Paul Duffin
5556c5f17a
Treat <x> and <x>_compressed prebuilt APEXes as being equivalent
...
(cherry picked from commit 1aa50564c7
)
When extracting dex files from prebuilt APEXes the build fails if it
finds two or more prebuilt APEXes that could provide the dex files.
This change treats <x> and <x>_compressed APEXes as being the same
and always selects the uncompressed APEX.
Bug: 235284603
Test: m nothing
# Added TestDuplicateButEquivalentDeapexersFromPrebuiltApexes
# Failed without this change, works with it.
Merged-In: I805cb9dfa9f590c91585d75c4f4586b212b73d41
Change-Id: I805cb9dfa9f590c91585d75c4f4586b212b73d41
2022-06-13 13:16:53 +00:00
Paul Duffin
5c24484a50
Merge "Treat <x> and <x>_compressed prebuilt APEXes as being equivalent" into tm-dev am: 60c0b9ec9c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/18801840
Change-Id: Ib7e45cf518950d65e7b87da42a0f5883266b0c5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-11 12:32:16 +00:00
Paul Duffin
60c0b9ec9c
Merge "Treat <x> and <x>_compressed prebuilt APEXes as being equivalent" into tm-dev
2022-06-11 12:13:45 +00:00
Jingwen Chen
bd5b1a3672
Merge "bp2build: convert apex.logging_parent." am: c90a3cd6f6
am: d0645003cd
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2122357
Change-Id: Ic3bd9285dba93cc5c9455c3e4d91d6d460f776f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-11 03:15:54 +00:00
Jingwen Chen
c90a3cd6f6
Merge "bp2build: convert apex.logging_parent."
2022-06-11 02:38:08 +00:00
Treehugger Robot
302846a63b
Merge "Fix strip_prefix flags to strip install paths." am: 20b623da89
am: 28b9607224
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2120624
Change-Id: I5c9edaeb2df8a61eb18fe9368dd2f8e9d1321343
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-10 20:32:30 +00:00
Treehugger Robot
20b623da89
Merge "Fix strip_prefix flags to strip install paths."
2022-06-10 18:07:41 +00:00
Paul Duffin
1aa50564c7
Treat <x> and <x>_compressed prebuilt APEXes as being equivalent
...
When extracting dex files from prebuilt APEXes the build fails if it
finds two or more prebuilt APEXes that could provide the dex files.
This change treats <x> and <x>_compressed APEXes as being the same
and always selects the uncompressed APEX.
Bug: 235284603
Test: m nothing
# Added TestDuplicateButEquivalentDeapexersFromPrebuiltApexes
# Failed without this change, works with it.
Change-Id: I805cb9dfa9f590c91585d75c4f4586b212b73d41
2022-06-10 11:05:53 +00:00
Jingwen Chen
b732d7c765
bp2build: convert apex.logging_parent.
...
Test: CI
Fixes: 235559958
Change-Id: I7b578c67eedb0379603bcf2fc029d03facfbbb0f
2022-06-10 08:38:03 +00:00
Bob Badour
3d16d5ddf8
Fix strip_prefix flags to strip install paths.
...
Bug: 235331488
Test: m droid dist
Change-Id: I3cd2af5d90e46a4c983728bc9b2d941d6ffda229
Merged-in: I3cd2af5d90e46a4c983728bc9b2d941d6ffda229
2022-06-09 15:00:08 -07:00
Bob Badour
c6ec9fb849
Fix strip_prefix flags to strip install paths.
...
Bug: 235331488
Test: m droid dist
Change-Id: I3cd2af5d90e46a4c983728bc9b2d941d6ffda229
2022-06-09 14:24:41 -07:00
Alexei Nicoara
7a7990f5cd
Merge "Passing the default apex version to the apexer" am: 5b96d35851
am: ffe4e6394e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2104336
Change-Id: I0cc613283a063044fafe238c49526d50d8c95055
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-09 11:09:31 +00:00
Alexei Nicoara
5b96d35851
Merge "Passing the default apex version to the apexer"
2022-06-09 08:58:27 +00:00
Jingwen Chen
fe05ba0f01
Merge changes Ib9a08167,I925e98d5 am: 1f0b70e7c0
am: 08ee8f7360
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2119933
Change-Id: I817cdb98dbf3d390532ac14c6b0727d2ed894e15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-09 08:10:29 +00:00
Alexei Nicoara
3f8cbcb82c
Passing the default apex version to the apexer
...
Test: presubmit
Bug: 231691643
Change-Id: I900a6acde9f212bf785b0be35f422416c8b62792
2022-06-08 17:49:50 +01:00
Jingwen Chen
df165c9e85
Only override prebuilts property if the override_apex.prebuilts is
...
explicitly specified (not nil).
This allows the base apex's prebuilts to be surfaced to the override
apex target.
Discovered when com.google.android.adbd's prebuilts didn't contain its
init.rc module.
Bug: 222588072
Test: CI
Change-Id: I925e98d53f7d9208652c629799ab568521ba7dfe
2022-06-08 16:03:03 +00:00
Treehugger Robot
2ab17c0491
Merge "bootclasspath_fragment: Require at least one hidden_api package property" am: 4a737a2d8b
am: 811d444ce1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2062450
Change-Id: I0e4673a5d702427d752e3e413bae96454b601207
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-06 18:33:18 +00:00
Treehugger Robot
4a737a2d8b
Merge "bootclasspath_fragment: Require at least one hidden_api package property"
2022-06-06 16:05:12 +00:00
Treehugger Robot
45f09a5eed
Merge "Convert override_apex.package_name with bp2build." am: 335071dad2
am: 463a1e580f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2114879
Change-Id: I57e30e1053115a05e8c56122f175c50b9f3944fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-06 15:46:52 +00:00
Treehugger Robot
335071dad2
Merge "Convert override_apex.package_name with bp2build."
2022-06-06 14:59:07 +00:00
Jingwen Chen
9b7ebca187
Convert override_apex.package_name with bp2build.
...
Bug: 216414792
Test: CI and new bazel/bp2build tests
Change-Id: I3974970cdd555b3912798e79e61d61786a4ff677
2022-06-06 10:08:53 +00:00
William Escande
cfbdc3bb69
Clear apex.go entries for bluetooth libs
...
The module availability to Bluetooth is currently hard-coded in apex.go.
We are in the process of cleaning the apex.go by adding the availability
in each required module
Test: Build + TH + boot phone & use bluetooth
Bug: 216433795
Change-Id: I545ad6039e501c70e3ff5d9fc74fabfd37067145
2022-06-04 02:13:54 +00:00
Treehugger Robot
4815e771f9
Merge "Make sure dist files have license metadata." am: f57b54cda7
am: c688531cba
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2063295
Change-Id: I09562d127844d389cb6af0c13833c6a463c826ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-06-02 18:19:54 +00:00
Bob Badour
5180438478
Make sure dist files have license metadata.
...
Bug: 151177513
Bug: 210912771
Test: m droid dist reportmissinglicenses
Change-Id: I0c85f6c49a3e9d9bb3219ed6ddfb939d90f80656
2022-06-01 21:07:25 -07:00
Paul Duffin
9fd564711e
bootclasspath_fragment: Require at least one hidden_api package property
...
Previously, the split_packages, single_packages and package_prefixes
properties were all optional and the split_packages defaulted to ["*"].
As that value conflicted with the other package properties that meant
that split_packages always had to be specified even if it was to just
set it to an empty array.
This change requires at least one of them to be specified and defaults
split_packages to an empty list which means it is not required,
although it can be helpful to make that explicit.
Bug: 194063708
Test: m nothing
Change-Id: I5a4c2d68e72e39f5c4a2441326dfce8685fc8ff2
2022-05-27 16:27:50 +01:00
Wei Li
607978227e
Convert the property "manifest" properly for override_apex. am: 40f9873612
am: e577ddd482
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2100361
Change-Id: I6baaa602a3d591974b68ac3d9362f8adc0529470
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-05-24 05:34:22 +00:00
Wei Li
40f9873612
Convert the property "manifest" properly for override_apex.
...
1) When it is not set in base apex, default file name should be set explicitly in bp2build converter of apex
2) The manifest file path should be used as-is when base apex and override_apex is in the same Android.bp
3) The manifest file path should be prepended with package of base apex when base apex and override_apex is in different Android.bp
Bug: 216442475
Test: m nothing
Change-Id: Icd3523ebc31d885f67bea02aec05dbfc77671e87
2022-05-23 17:22:35 -07:00
Oriol Prieto Gascó
c17b70053d
Merge "Revert "Append APEX version instead of build ID for APK-in-APEX ..."" into tm-dev
2022-05-23 19:49:32 +00:00
Bob Badour
efdf8ab4cc
Fix bug: allow multiple gen_notice modules. am: a5ea2479d3
am: d9771dedbb
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2098696
Change-Id: I921b541c513779e4a73a70876a9ffff23e4361f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-05-21 03:22:39 +00:00
Bob Badour
a5ea2479d3
Fix bug: allow multiple gen_notice modules.
...
Test: m cts dist reportmissinglicenses
Change-Id: I07963c83eaddfe363a04871e813b56fe7f1465ad
2022-05-20 16:54:00 -07:00
Oriol Prieto Gascó
a70425fb2f
Revert "Append APEX version instead of build ID for APK-in-APEX ..."
...
Revert "Make apexer replace instances of version placeholder str..."
Revert submission 17944887-apk-in-apex
Reason for revert: Caused a regression (b/230873680)
Reverted Changes:
Ic37eeba8b:Make apexer replace instances of version placehold...
I9cef1418c:Append APEX version instead of build ID for APK-in...
Change-Id: I3da8bcb782baf71cddce9e4e92fe3894fc187b5c
2022-05-20 13:05:34 +00:00
Liz Kammer
dbd8eb11f4
Remove unused uses_sdks property for apexes
...
(cherry picked from commit 7eed538208
)
Bug: 232546567
Test: m nothing & compare build.ninja before/after
Merged-In: I3f1199af338e1d2e48ec29cf9f59b6b36236c4cc
Change-Id: I3f1199af338e1d2e48ec29cf9f59b6b36236c4cc
2022-05-20 07:45:48 +00:00
Bob Badour
00d6beecc9
Merge "Add gen_notice module." am: 335a4333fe
am: 15aba3f5e0
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2095028
Change-Id: I56c39b0693a8a18b6e43f0536c724e5b26338504
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-05-19 19:09:45 +00:00