Commit Graph

31955 Commits

Author SHA1 Message Date
Jiakai Zhang
500671f61c Add a doc about dex_preopt_check.
The doc lists some possible causes of a `dex_preopt_check` error, which
can be useful for developers to understand how to debug the error.

Bug: 232542678
Test: m nothing
Change-Id: I2e9868a6a470e41e8c3743c045e0cf4cf7367efa
2022-05-20 16:21:46 +01:00
Dario Freni
de9f0b12f1 Enable mainline prebuilts on tm-dev branch.
Except for santizer and framework Java coverage tests as they require
specialized prebuilts built from a matching configuration and we do not
provide them.

Bug: 230478310
Bug: 223592962
Test: presubmit
Merged-In: I3ed091156c4b39dad6eaf578144ac3d070025988
Merged-In: I9731400acfade95b3eab8f2d99fddb4cf856aa91
Change-Id: Ibc3ea584b95f8186c63e29f71b5164451dc433cd
2022-05-20 11:40:39 +00:00
Yi Kong
b30e92b381 Merge "Rename modulesAddedWall to modulesWarningsAllowed" am: 05b2217940 am: 57e3ba803a
Original change: https://android-review.googlesource.com/c/platform/build/+/2100875

Change-Id: Ib5fb1502c8503c902492b971938b50970361a31c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 00:49:00 +00:00
Yi Kong
05b2217940 Merge "Rename modulesAddedWall to modulesWarningsAllowed" 2022-05-20 00:26:18 +00:00
Android Build Coastguard Worker
b5db590fa3 Make change and version bump to TP1A.220520.001
Change-Id: I89a877e08f503e38ab2268c6921b11fcc6385618
2022-05-19 23:22:02 +00:00
Yi Kong
ee99ddf900 Rename modulesAddedWall to modulesWarningsAllowed
MODULES_ADDED_WALL is deceiving and it actually meant which modules are
allowed to have warnings (do not automatically append -Werror flag).

Test: presubmit
Bug: 233183337
Change-Id: Ia2eb972d3d76ba245840f9872cbcc66d2894dab3
2022-05-19 20:16:00 +08:00
Dmitrii Merkurev
03e324006b Merge "Introduce EROFS compress hints to the Android build system" am: 494358dec8 am: a13fbaa01f
Original change: https://android-review.googlesource.com/c/platform/build/+/2098052

Change-Id: I3ed091156c4b39dad6eaf578144ac3d070025988
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 11:41:19 +00:00
Android Build Coastguard Worker
e710be2d83 Version bump to TP1A.220519.003 [core/build_id.mk]
Change-Id: I7a0d04fd56ef67422f94dee1894294a8d0b5c843
2022-05-19 06:53:24 +00:00
Android Build Coastguard Worker
ec7b36fabd Version bump to TP1A.220519.002 [core/build_id.mk]
Change-Id: I9e7a8675ab24a91ec3cba1a41f4123dd8a7801f6
2022-05-19 00:15:49 +00:00
Android Build Coastguard Worker
5d7d479c1d Make change and version bump to TP1A.220519.001
Change-Id: I7245b395f71cf80d4c224099691b49f6df263101
2022-05-18 23:21:59 +00:00
Treehugger Robot
507b4e863f Merge "Create $(zip_root)/PVMFW & archive prebuilt used" am: d528b3c553 am: 7520b7526f
Original change: https://android-review.googlesource.com/c/platform/build/+/2096401

Change-Id: I751deaa8d3c030f8b26de1346a079c1514445348
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 11:01:22 +00:00
Android Build Coastguard Worker
38ef68931a Version bump to TP1A.220518.002 [core/build_id.mk]
Change-Id: Iae4607b9427911ad04e98f91af830c2f4c1041ed
2022-05-18 01:43:10 +00:00
Android Build Coastguard Worker
83c3b190ed Make change and version bump to TP1A.220518.001
Change-Id: I60f0300db82c334cfbd5379953dce0331833df2e
2022-05-17 23:20:19 +00:00
Dmitrii Merkurev
8ab6603a43 Introduce EROFS compress hints to the Android build system
Make it possible to provide a prebuilt hints file to specify different compression strategies on a file basis for all partitions using:

BOARD_EROFS_COMPRESS_HINTS := <path>/erofs-hints.txt

or separately for every partition using:

BOARD_SYSTEMIMAGE_EROFS_COMPRESS_HINTS := <path>/system-partition-erofs-hints.txt
BOARD_VENDORIMAGE_EROFS_COMPRESS_HINTS := <path>/vendor-partition-erofs-hints.txt

Hints format: Each line is defined by tokens separated by spaces in the following form:

<pcluster-in-bytes> <match-pattern>

pcluster-in-bytes can be specified as 0 which mean file will not be compressed

Bug: 231934752
Test: used dump.erofs -S system.img to verify the system image isn't compressed after specifying BOARD_SYSTEMIMAGE_EROFS_COMPRESS_HINTS := no-compress.txt, where no-compress.txt contains 0 .*
Test: used dump.erofs --nid=<inode-for-all-apk-files> vendor.img to verify apk files are not compressed (the rest of the partition content is compressed)
Test: used dump.erofs -S <all-images> to verify all images are not compressed after specifying BOARD_EROFS_COMPRESS_HINTS := <path>/no-compress.txt
Change-Id: I64054e26af5ea5781c45d2183b7796a9ad2b7927
2022-05-17 23:10:37 +00:00
Android Build Coastguard Worker
453b3a97c8 Version bump to SQ3A.220705.002 [core/build_id.mk]
Change-Id: I58d7db826390e958fc7e0ebd145ea6ba5f46502b
2022-05-17 18:42:22 +00:00
Treehugger Robot
d528b3c553 Merge "Create $(zip_root)/PVMFW & archive prebuilt used" 2022-05-17 16:34:22 +00:00
Android Build Coastguard Worker
50370ff77e Version bump to TP1A.220517.002 [core/build_id.mk]
Change-Id: I2e11c7a605075c41bf21d57815d4fc146f2dd659
2022-05-17 05:49:07 +00:00
Android Build Coastguard Worker
05eafbf5a5 Make change and version bump to TP1A.220517.001
Change-Id: Icf54f1b2a4cf469c0cfe43b05eb104bd8c244432
2022-05-16 23:21:38 +00:00
Treehugger Robot
54c1f7cea3 Merge "Add keep rules for @KeepForWeakReference annotation" am: 3eb3ca0c9b am: 41437def9a
Original change: https://android-review.googlesource.com/c/platform/build/+/2094724

Change-Id: I1d84cfafbe51f2a0a2e090aef1f10beff55a52f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 22:05:55 +00:00
Treehugger Robot
3eb3ca0c9b Merge "Add keep rules for @KeepForWeakReference annotation" 2022-05-16 21:19:03 +00:00
Android Build Coastguard Worker
3ab635a463 Make change and version bump to SQ3A.220705.001
Change-Id: I6f97b3953f0edf81f2643a7a46d333a8c52f2fbe
2022-05-16 21:13:40 +00:00
Steve Berbary
0ba2eacbcc Update Security String to 2022-07-05
Bug: 231380374
Change-Id: I745bd646af530a8c202994e48a0821a5cb7ec3dd
(cherry picked from commit e359b90082)
Merged-In: I745bd646af530a8c202994e48a0821a5cb7ec3dd
2022-05-16 21:10:55 +00:00
Steve Berbary
5fa9538fa3 Update Security String to 2022-07-05 am: e359b90082 am: 4dba876f41
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/18356643

Change-Id: Id4983957783d3d21d04ff853ed833ce645124373
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 20:17:08 +00:00
Steve Berbary
4dba876f41 Update Security String to 2022-07-05 am: e359b90082
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/18356643

Change-Id: I79b195940e52d9ec1b6c8fa77b63b880a7b1a894
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 19:58:43 +00:00
Android Build Coastguard Worker
596724b8ce Version bump to TP1A.220516.002 [core/build_id.mk]
Change-Id: Ie6a11d9f4b3574d0a4051cf39ac356d244b0f63f
2022-05-15 21:49:14 +00:00
Android Build Coastguard Worker
d6d39ec16c Make change and version bump to TP1A.220516.001
Change-Id: I431e1d58c61c906d50b36b0647a31c230aada0e4
2022-05-15 21:20:31 +00:00
Android Build Coastguard Worker
3fea105e48 Make change and version bump to TP1A.220515.001
Change-Id: Ib469f25a9f5164ce6d220340d7395047557757a0
2022-05-14 21:20:50 +00:00
Android Build Coastguard Worker
bdb1134d0d Make change and version bump to TP1A.220514.001
Change-Id: Ib44fbcf493b563663ae235dfc6dc578a0a869083
2022-05-14 01:20:31 +00:00
Treehugger Robot
b9355f6f6a Merge "Revert "Do not compress zip file for unit tests."" am: 266225ccb2 am: 2fc9d4c28b
Original change: https://android-review.googlesource.com/c/platform/build/+/2096861

Change-Id: Iccee362de0bf09b78db7fccee527fd1f146e1962
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-14 00:31:52 +00:00
Treehugger Robot
266225ccb2 Merge "Revert "Do not compress zip file for unit tests."" 2022-05-13 23:44:57 +00:00
Sam Saccone
7d7ae94bef Revert "Do not compress zip file for unit tests."
This reverts commit a24c755f66.

Reason for revert: not worth the additional storage cost.

Change-Id: I8ed24ddef4ac3f640bf35e79cddf433e0df0854d
2022-05-13 19:55:25 +00:00
Android Build Coastguard Worker
bd3ea9e7f2 Version bump to TP1A.220513.002 [core/build_id.mk]
Change-Id: I075714e9abc5cc43fdf57944a53c06e7b1bd7e5c
2022-05-13 18:39:20 +00:00
Anton Hansson
d8dd1090a5 Merge "Remove unused dependencies from sdk goals" am: 59f95bcd1c am: 3a3e601827
Original change: https://android-review.googlesource.com/c/platform/build/+/2096393

Change-Id: I844e032594ff9896da935c56f455ab656d5bae7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 10:39:49 +00:00
Anton Hansson
59f95bcd1c Merge "Remove unused dependencies from sdk goals" 2022-05-13 08:55:55 +00:00
Android Build Coastguard Worker
281465ea2b Make change and version bump to TP1A.220513.001
Change-Id: I39069a3fdeabdef552ab3a6e1d25dd225070ea37
2022-05-12 23:20:19 +00:00
Android Build Coastguard Worker
72178e60bf Version bump to TP1A.220512.004 [core/build_id.mk]
Change-Id: I64a248dbd7af84703998e4a0108469bd898ad45e
2022-05-12 21:41:13 +00:00
Steve Berbary
e359b90082 Update Security String to 2022-07-05
Bug: 231380374
Change-Id: I745bd646af530a8c202994e48a0821a5cb7ec3dd
2022-05-12 18:49:14 +00:00
Android Build Coastguard Worker
661ff4fbd2 Version bump to TP1A.220512.003 [core/build_id.mk]
Change-Id: I0177379c9906d453ccc9ae68affc839a0c12eb7a
2022-05-12 18:05:11 +00:00
Colin Cross
67e5e7f150 Merge "Remove HOST_DALVIK_*" am: 544aedda27 am: 265c1cc9a3
Original change: https://android-review.googlesource.com/c/platform/build/+/2059991

Change-Id: I2ab5dfd7d579f9b141c4e6022f40034a1c6ccfaf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 16:54:18 +00:00
Colin Cross
544aedda27 Merge "Remove HOST_DALVIK_*" 2022-05-12 15:44:20 +00:00
Pierre-Clément Tosi
c7b837872d Create $(zip_root)/PVMFW & archive prebuilt used
It might be useful to have access to the prebuilt that the Android build
used to create the pvmfw partition so add a new directory (similarly to
other partitions) containing the prebuilt (which is also the only
content of the partition). This is particularly useful in ATC, when
detecting if the prebuilt was updated by the build.

Bug: 232253742
Test: m
Change-Id: I1116d91ffb073821568bcaeed30bbb43873dcafa
2022-05-12 16:37:46 +01:00
Anton Hansson
55a8f02ea8 Remove unused dependencies from sdk goals
The SDK no longer includes system images, so no longer needs to depend
on targets that are only relevant for the system images.

Remove all the explicit dependencies that end up depending on
"everything" but are not included in the sdk zip.

Two positive side-effects:
- fewer unused things get built (now ~32k targets, down from ~108k)
- apexes no longer get built, eliminating the risk of mismatch between
  module sdk prebuilts and source-built AOSP apexes.

There are some potential risks with this CL:
- because we no longer forcefully rebuild everything, if there are bugs
  in dependencies of exising files in the SDK, incremental builds may
  not rebuild them.
- some files that get built into the SDK may be being built as a
  side-effect of other files included in the SDK, so removing one file
  may cause another to not get built. The solution to that is to add
  the file not getting built to ALL_SDK_FILES.

Bug: 205008975
Test: m sdk sdk_repo dist && diff sdk.zip before/after (identical)
Change-Id: I97284864f66aa88556fbe16864f45b04be97634e
2022-05-12 12:28:49 +00:00
Treehugger Robot
478a4e289b Merge "Remove all_product_makefiles" am: a09c684e27 am: 0221a9a4af
Original change: https://android-review.googlesource.com/c/platform/build/+/2095123

Change-Id: Iac20e50b3b435d5663bcc07bd411e3ba7ef962c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 01:21:59 +00:00
Android Build Coastguard Worker
7a00c23e63 Version bump to TP1A.220512.002 [core/build_id.mk]
Change-Id: I2f4ed9681e52bd4c844520865ca0b2963f8e4830
2022-05-12 01:21:06 +00:00
Android Build Coastguard Worker
49e8e5d7a1 Make change and version bump to TP1A.220512.001
Change-Id: I09f9bc206af3d36e9eef1aa7e7f37856602ad89c
2022-05-11 23:20:33 +00:00
Cole Faust
a307ea51af Merge "Add function for flattening 2d lists" am: 8ccac5198d am: 6d0c689c23
Original change: https://android-review.googlesource.com/c/platform/build/+/2088663

Change-Id: I9b68e862c17241f558ccca8c1a931613aa464c61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-11 20:43:56 +00:00
Jared Duke
7d0c90b51f Add keep rules for @KeepForWeakReference annotation
Ensure annotated fields are kept when treeshaking-related optimizations
are enabled. Note that this still allows field removal if tree shaking
reveals no references, but will avoid removal if there are references
that might impact downstream usage, e.g., weak references.

Bug: 227455445
Test: atest InternalAnnotationsTest
Change-Id: I59c6277c43b14c5de8154fa1eefad01f0702e413
2022-05-11 09:47:12 -07:00
Colin Cross
a9203e6d87 Remove HOST_DALVIK_*
There are no more BUILD_HOST_DALVIK_* modules, remove the host dalvik
support.  The equivalent support in Soong just copies the device dex
file to the host dalvik location.

Test: m checkbuild
Change-Id: I4bcf916518317b28d3217994b2fe9ee95d7f50d6
2022-05-11 08:17:45 -07:00
Android Build Coastguard Worker
acc662e7cb Version bump to TP1A.220511.002 [core/build_id.mk]
Change-Id: Iddabfed15c7ba6ebd567dced44b744d46a53e16f
2022-05-11 01:31:31 +00:00
Android Build Coastguard Worker
132154b6b6 Make change and version bump to TP1A.220511.001
Change-Id: I6736326f2f5458f664e756bedc96852b0c856d04
2022-05-10 23:20:55 +00:00