Commit graph

21355 commits

Author SHA1 Message Date
Jooyung Han
cab7283b6b apex: Don't run apex mutators if disabled am: 49f6701e9a am: c080abef85
Change-Id: I897cba2391532ba33b2be9552f1f5eea1198bc3a
2020-04-17 13:47:47 +00:00
Jooyung Han
c080abef85 apex: Don't run apex mutators if disabled am: 49f6701e9a
Change-Id: I0ac72dca55e806016b37f3928c562700afee133c
2020-04-17 13:35:53 +00:00
Jooyung Han
49f6701e9a apex: Don't run apex mutators if disabled
apex_deps/apex/apex_flattened mutators don't have to run if module is
disabled.

For some branches which have no valid targets, apex modules are disabled
by the os mutator. e.g. aosp-build-tools

Some enforcement checks which run during those mutators may fail because
build-environment doesn't provide full context information.

For example, "Platform_version_all_codenames" config variable is not
set while apex.min_sdk_version uses one of those codenames.

Bug: 152655956
Test: m
Change-Id: I47e27d2d025ba4c36534708b113ce77c4cb2397b
2020-04-17 15:49:32 +09:00
Yo Chiang
69e6ded091 Merge "cc_prebuilt_library respect module name and stem" am: ff6bd149dd am: ebc40b9cb0
Change-Id: I846e10f07eb35eb18a54fc7267847e5dff3964ec
2020-04-17 01:41:39 +00:00
Yo Chiang
ebc40b9cb0 Merge "cc_prebuilt_library respect module name and stem" am: ff6bd149dd
Change-Id: I55453d7cb115fb21845498c2057ac46087f9cfb3
2020-04-17 01:21:17 +00:00
Yo Chiang
ff6bd149dd Merge "cc_prebuilt_library respect module name and stem" 2020-04-17 01:07:03 +00:00
Treehugger Robot
6d0a1c813f Merge "Add a new protobuf message named Upload to upload build metrics." am: 045d75f11a am: 2ffbe1b4d8
Change-Id: I629297d90bfa6107723babfbc70ffc6bf11a9a09
2020-04-16 23:42:35 +00:00
Treehugger Robot
2ffbe1b4d8 Merge "Add a new protobuf message named Upload to upload build metrics." am: 045d75f11a
Change-Id: I3f5e53931fb5346bd2fe1bac790a942944fb851d
2020-04-16 23:28:21 +00:00
Treehugger Robot
045d75f11a Merge "Add a new protobuf message named Upload to upload build metrics." 2020-04-16 23:13:00 +00:00
Patrice Arruda
adfc1120b9 Add a new protobuf message named Upload to upload build metrics.
A new protobuf message named Upload is defined to send build metrics
to the Android Build Server API after a build is completed. These
metrics are collected from googlers only, as described in
go/local-developers-metrics-wfh.

Bug: b/140638454
Test: m nothing
Change-Id: I5e49b5ace053913be2b75673cb1375f4cef37825
2020-04-16 14:02:56 -07:00
TreeHugger Robot
ae1fafd4e2 [automerger skipped] Merge "Don't check elf properties of python prebuilts" into rvc-dev am: 5d42863476 -s ours
am skip reason: Change-Id I8470bbfbf36a51739e8a7e699ad090a66c9db8b2 with SHA-1 bc32a50ff4 is in history

Change-Id: Id6cd129a0e729d3143fbce044728b2c55375d82c
2020-04-16 17:25:23 +00:00
TreeHugger Robot
5d42863476 Merge "Don't check elf properties of python prebuilts" into rvc-dev 2020-04-16 17:13:33 +00:00
Artur Satayev
a819c85082 [automerger skipped] Merge "Allow defining neverallow in packages other than android." into rvc-dev am: 735be9a37a -s ours
am skip reason: Change-Id Ied07cd33afa537f9d7aa3c33e59f4ac985901a0f with SHA-1 c5570ac9b1 is in history

Change-Id: I4ac51c1c2b255e38f0d4e1bfd63c2e9f9ed94d36
2020-04-16 13:44:49 +00:00
Artur Satayev
ad82c53d59 [automerger skipped] Merge "Check updatable APKs compile against managed SDKs." into rvc-dev am: 0f43edcfc7 -s ours
am skip reason: Change-Id I6ea2f3c1d26992259e4e9e6a6d8cecf091d39c43 with SHA-1 2db1c3f1c4 is in history

Change-Id: I302ca9da703e018eb5c0c15a165fae481402c3f6
2020-04-16 13:44:40 +00:00
Artur Satayev
735be9a37a Merge "Allow defining neverallow in packages other than android." into rvc-dev 2020-04-16 13:34:40 +00:00
Artur Satayev
0f43edcfc7 Merge "Check updatable APKs compile against managed SDKs." into rvc-dev 2020-04-16 13:34:39 +00:00
Artur Satayev
b39ea9b61c Allow defining neverallow in packages other than android.
This exposes test func on ValueMatcher and helpers relevant for testing neverallows.

Bug: 153333044
Test: m
Change-Id: Ied07cd33afa537f9d7aa3c33e59f4ac985901a0f
Merged-In: Ied07cd33afa537f9d7aa3c33e59f4ac985901a0f
Exempt-From-Owner-Approval: clean cherry-pick
(cherry picked from commit c5570ac9b1)
2020-04-16 13:34:31 +00:00
Artur Satayev
e5ac15a1b7 Check updatable APKs compile against managed SDKs.
As a follow up, this property will be set to APKs participating in mainline program.

Bug: 153333044
Test: m
Change-Id: I6ea2f3c1d26992259e4e9e6a6d8cecf091d39c43
Merged-In: I6ea2f3c1d26992259e4e9e6a6d8cecf091d39c43
(cherry picked from commit 2db1c3f1c4)
Exempt-From-Owner-Approval: clean cherry-pick
2020-04-16 13:34:13 +00:00
Treehugger Robot
86890b83c3 Merge "Dereference paths to be mounted into soong sandbox" am: 895d5bf924 am: 801151e560
Change-Id: I51ceacaf4eb4f0c6b15e402ad1c9813159e99420
2020-04-16 07:47:00 +00:00
Treehugger Robot
801151e560 Merge "Dereference paths to be mounted into soong sandbox" am: 895d5bf924
Change-Id: I608d02eca0c82c685ba225d9dbdcad92f66dcbf3
2020-04-16 07:18:25 +00:00
Dan Willemsen
cac82fe511 Don't check elf properties of python prebuilts
We're not doing a great job of copying over all the library dependencies (especially when using sanitizer libraries). Just omit these from the checks, which shouldn't really matter.

Bug: 151093572
Test: treehugger
Change-Id: I8470bbfbf36a51739e8a7e699ad090a66c9db8b2
Merged-In: I8470bbfbf36a51739e8a7e699ad090a66c9db8b2
(cherry picked from commit bc32a50ff4)
2020-04-16 00:03:35 -07:00
Treehugger Robot
895d5bf924 Merge "Dereference paths to be mounted into soong sandbox" 2020-04-16 07:00:28 +00:00
Jooyung Han
57f4fee594 [automerger skipped] Merge "apex: remove compat symlinks to vndk apex" am: 58a7d9c371 am: a898da2fcc -s ours
am skip reason: Change-Id I852fad7edebed3e4edc03c374b3643da6b053fed with SHA-1 84026389e7 is in history

Change-Id: Ie469ffde76e202104e57205fa660027ba6c395e3
2020-04-16 04:28:05 +00:00
Jooyung Han
a898da2fcc Merge "apex: remove compat symlinks to vndk apex" am: 58a7d9c371
Change-Id: Ic065460ace517d09caef395dd6d4bbb78510bf6d
2020-04-16 04:15:21 +00:00
Jooyung Han
58a7d9c371 Merge "apex: remove compat symlinks to vndk apex" 2020-04-16 04:02:02 +00:00
Jooyung Han
055418a56a apex: remove compat symlinks to vndk apex
For R+, symlinks from /system/lib to VNDK APEX are not necessary. (Note
that, symlinks to older VNDK are still necessary because older vendor
may access old locations.)

Hence, do not make symlinks for R+ VNDK APEX.

Bug: 142911355
Test: m # check /system/lib[64]/ for symlinks
        # cf should contain 28/29 symlinks but no symlinks for R
Exempt-From-Owner-Approval: cp from internal
Merged-In: I852fad7edebed3e4edc03c374b3643da6b053fed
Change-Id: I852fad7edebed3e4edc03c374b3643da6b053fed
(cherry picked from commit 84026389e7)
2020-04-16 04:01:48 +00:00
Diego Wilson
10e564a98e Dereference paths to be mounted into soong sandbox
Bind mounts require source paths without symbolic links.

Fixes: 153378837
Test: lunch aosp_cf_x86_phone-userdebug && make dist
Change-Id: I5c128f94233d81c52ec5692241b711b3e9d15a85
2020-04-15 20:29:06 +00:00
satayev
371337f4e1 Merge "Allow defining neverallow in packages other than android." am: 4cb47c6ffc am: 60bb96d3a6
Change-Id: If3c949cb7ed39632e6c83da5684232811b33028d
2020-04-15 17:30:45 +00:00
satayev
715a32b6de Merge "Check updatable APKs compile against managed SDKs." am: 0b3e45abd0 am: 2e40b33564
Change-Id: Ie906cb44cc73f867e0fdcef34a97966ad63ad45d
2020-04-15 17:27:59 +00:00
satayev
60bb96d3a6 Merge "Allow defining neverallow in packages other than android." am: 4cb47c6ffc
Change-Id: Idf556fd1d73a3acf6a734bc48f5302611986c7db
2020-04-15 17:04:53 +00:00
Anton Hansson
82dc4c8cff Merge "Create a framework.aidl for non-updatable platform" into rvc-dev am: c6fff020f5
Change-Id: Ia19b9cf99ca3c2a9fcefe4f0d864e57e486fb04f
2020-04-15 16:56:36 +00:00
satayev
2e40b33564 Merge "Check updatable APKs compile against managed SDKs." am: 0b3e45abd0
Change-Id: I72d212d5729de6cf9d68ef542b4b967dd83eb637
2020-04-15 16:56:30 +00:00
satayev
4cb47c6ffc Merge "Allow defining neverallow in packages other than android." 2020-04-15 13:45:42 +00:00
satayev
0b3e45abd0 Merge "Check updatable APKs compile against managed SDKs." 2020-04-15 13:45:29 +00:00
Anton Hansson
c6fff020f5 Merge "Create a framework.aidl for non-updatable platform" into rvc-dev 2020-04-15 11:13:36 +00:00
Artur Satayev
c5570ac9b1 Allow defining neverallow in packages other than android.
This exposes test func on ValueMatcher and helpers relevant for testing neverallows.

Bug: 153333044
Test: m
Change-Id: Ied07cd33afa537f9d7aa3c33e59f4ac985901a0f
2020-04-15 12:06:13 +01:00
Artur Satayev
2db1c3f1c4 Check updatable APKs compile against managed SDKs.
As a follow up, this property will be set to APKs participating in mainline program.

Bug: 153333044
Test: m
Change-Id: I6ea2f3c1d26992259e4e9e6a6d8cecf091d39c43
2020-04-15 12:06:13 +01:00
Treehugger Robot
08931de17f Merge "Clean up unused flags for LLD." am: 7f64ed9dcf am: f0f0f071a4
Change-Id: Ia1f63c05f14ebeae2e09ba02e9d5b47e3c493758
2020-04-14 22:45:44 +00:00
Treehugger Robot
f0f0f071a4 Merge "Clean up unused flags for LLD." am: 7f64ed9dcf
Change-Id: Ifd83f983bae3d05c5977f1b3d955725f028d68cb
2020-04-14 22:34:25 +00:00
Treehugger Robot
7f64ed9dcf Merge "Clean up unused flags for LLD." 2020-04-14 22:17:16 +00:00
Martin Stjernholm
c534d1a825 [automerger skipped] Fix missing NOTICE targets for static libs that aren't available to am: 2a6e9d0b01 -s ours
am skip reason: Change-Id If36e85dd16ade56d4ec1d6744811df5a15b6242c with SHA-1 bf37d165f0 is in history

Change-Id: Ibc50fefc2b3604011d0d3f2430c05d3075c17578
2020-04-14 18:36:38 +00:00
Martin Stjernholm
2a6e9d0b01 Fix missing NOTICE targets for static libs that aren't available to
platform.

The NOTICE file generation depends on the NOTICE targets for all static
library dependencies. If such a dependency didn't have
//apex_available:platform it didn't get any AndroidMk entry and hence
no NOTICE target via soong_cc_prebuilt.mk. If it was then depended upon
by a binary or library that is accessible to platform, the NOTICE
dependency failed.

Normally such a dependency is invalid, but there are corner cases where
binaries go neither into platform nor any APEX module, and they can
legitimately have such dependencies (cf. b/152241137).

With this CL requests to skip installation of such a static libraries
are ignored so that they get AndroidMk entries, which will always have
LOCAL_UNINSTALLABLE_MODULE set.

Test: "m simpleperf_ndk" with https://r.android.com/1273016, which
  removes //apex_available:platform from libs that simpleperf_ndk
  depends on statically.
Bug: 152241137
Bug: 149217815
Change-Id: If36e85dd16ade56d4ec1d6744811df5a15b6242c
Merged-In: If36e85dd16ade56d4ec1d6744811df5a15b6242c
2020-04-14 17:09:47 +01:00
Treehugger Robot
3f18c55cc0 Merge "Fix missing NOTICE targets for static libs that aren't available to platform." am: e152ada4e7 am: b7c30e8a0c
Change-Id: If72192000b2eb215dec0f793db63fcec61fc9f49
2020-04-14 14:20:08 +00:00
Treehugger Robot
b7c30e8a0c Merge "Fix missing NOTICE targets for static libs that aren't available to platform." am: e152ada4e7
Change-Id: I2be6190f825840e9d2bddf130c547bd608eeb1db
2020-04-14 13:55:26 +00:00
Treehugger Robot
e152ada4e7 Merge "Fix missing NOTICE targets for static libs that aren't available to platform." 2020-04-14 13:43:46 +00:00
TreeHugger Robot
7e35069f41 [automerger skipped] Merge "Clean com.android.neuralnetworks APEX whitelist" into rvc-dev am: 89030a315a -s ours
am skip reason: Change-Id I1babea6c221dec1cd5364250d09f5ea541494942 with SHA-1 5642308998 is in history

Change-Id: Iead5f71250e4e26c95e9afd8720836c482b46e03
2020-04-14 12:34:37 +00:00
TreeHugger Robot
89030a315a Merge "Clean com.android.neuralnetworks APEX whitelist" into rvc-dev 2020-04-14 12:21:42 +00:00
Jooyung Han
b3650211b9 apex: remove compat symlinks to vndk apex am: 84026389e7
Change-Id: I3cd02a9bce9ade0bcc5c418616bc5009205953a4
2020-04-14 09:19:36 +00:00
Jooyung Han
84026389e7 apex: remove compat symlinks to vndk apex
For R+, symlinks from /system/lib to VNDK APEX are not necessary. (Note
that, symlinks to older VNDK are still necessary because older vendor
may access old locations.)

Hence, do not make symlinks for R+ VNDK APEX.

Bug: 142911355
Test: m # check /system/lib[64]/ for symlinks
        # cf should contain 28/29 symlinks but no symlinks for R
Change-Id: I852fad7edebed3e4edc03c374b3643da6b053fed
2020-04-14 14:22:31 +09:00
Jooyung Han
9f88bfa5f4 [automerger skipped] Merge "Remove PLATFORM_VERSION_FUTURE_CODENAMES" am: e5fce6cdbf am: b9c19ad4a8 -s ours
am skip reason: Change-Id I78ca88758998e440bea72ba2d56d90eea3ec99ae with SHA-1 424175d72a is in history

Change-Id: I9ea79827063dfc61beb90c8f29a2bd8d8843814b
2020-04-14 04:41:20 +00:00