Commit Graph

20237 Commits

Author SHA1 Message Date
Ulya Trafimovich
86d9e3a7b7 Add a test for boot.zip (zip archive with boot image files).
Test: m nothing
Bug: 152593075
Change-Id: Ibd07bdbd7d66312d32c9f461a082ffbba7112030
2020-05-19 11:19:20 +01:00
Jiyong Park
2478e4e98f Revert "Revert "Allow libz to have stub even though it's not an ..."
Revert submission 1313718-revert-1312595-zlib_as_stub-BVNRLZPNBJ

Reason for revert: relanding

Reverted Changes:
I0cf486d9b:Revert "libz provides stubs to Mainline modules."
I412132f8a:Revert "libz is a stub"
I617eb90a3:Revert "Allow libz to have stub even though it's n...

Exempt-From-Owner-Approval: this is a clean relanding.

Test: m

Change-Id: Ib09a615bd11cf2647dcad42108adfcfc5040940f
2020-05-19 10:04:55 +00:00
Paul Duffin
2b90c4a463 Merge "Syntax check generated Android.bp snapshot" am: 6b3ca917b0
Change-Id: I2ccb927facdfec9263ff948a3b7e522c0bb8fac3
2020-05-19 08:13:00 +00:00
Paul Duffin
6b3ca917b0 Merge "Syntax check generated Android.bp snapshot" 2020-05-19 07:53:27 +00:00
Treehugger Robot
b0643c54d2 Merge "Update ninja proto, always enable ninja -d stats" am: 7b7aa8c3ef
Change-Id: Iaf59611a602c52028170ab0591634034fea52ee0
2020-05-19 03:46:20 +00:00
Treehugger Robot
7b7aa8c3ef Merge "Update ninja proto, always enable ninja -d stats" 2020-05-19 03:20:34 +00:00
Jiyong Park
78a448812c Merge "Reland "Prevent statically linking to a lib providing stable C APIs"" am: 5a33a3cac6
Change-Id: Iacde5996f76a924e60c8153b85ca8cfe36bc3db0
2020-05-19 02:45:55 +00:00
Jiyong Park
5a33a3cac6 Merge "Reland "Prevent statically linking to a lib providing stable C APIs"" 2020-05-19 02:21:54 +00:00
Dan Willemsen
082182275f Update ninja proto, always enable ninja -d stats
The stats output will now use the new "DEBUG" message type, which we can
always redirect to verbose.log.gz.

Test: m aprotoc  (look in verbose.log.gz)
Change-Id: Ie1b58f12c008ff7d29f11ff7a9807488dba8a504
2020-05-18 17:52:28 -07:00
Liz Kammer
1674f9b4e9 Use aapt2 flag --rename-resources-package in soong
This change uses aapt2 flag to change the package name encoded in the
resources table for override apps.

Test: app_test.go
Bug: 147434671
Change-Id: I70a43c2163709afc90262d74f975ce14a556cf55
2020-05-18 15:10:21 -07:00
Colin Cross
2ef0c31464 Merge "Use system modules for prebuilt SDKs >=30" am: 49e94c0a92
Change-Id: Iba6117794ba0b88a65dcd247d64b5a9143aed5b0
2020-05-18 19:18:49 +00:00
Colin Cross
49e94c0a92 Merge "Use system modules for prebuilt SDKs >=30" 2020-05-18 19:02:43 +00:00
Treehugger Robot
d9b1282918 Merge "Append whole_static_libs deps from .a files instead of the list of objects." am: 5b79950e99
Change-Id: I41244296f1a790aac195cf614e5687b767519d5d
2020-05-18 09:50:59 +00:00
Treehugger Robot
5b79950e99 Merge "Append whole_static_libs deps from .a files instead of the list of objects." 2020-05-18 09:41:41 +00:00
Jiyong Park
0149ab8ae5 Merge "Revert "Allow libz to have stub even though it's not an LLNDK li..."" am: 03c694d070
Change-Id: I00128ac646466a4f9231fda87ed3bb8b1f784949
2020-05-18 09:29:23 +00:00
Jiyong Park
03c694d070 Merge "Revert "Allow libz to have stub even though it's not an LLNDK li..."" 2020-05-18 09:27:35 +00:00
Jiyong Park
f133c18a00 Revert "Allow libz to have stub even though it's not an LLNDK li..."
Revert submission 1312595-zlib_as_stub

Exempt-From-Owner-Approval: reverting a bad change

Reason for revert: broke rvc-dev-plus-aosp
Reverted Changes:
I7c0a7f954:libz is a stub
If51a7e80f:libz provides stubs to Mainline modules.
I26417bb78:Allow libz to have stub even though it's not an LL...

Change-Id: I617eb90a33eacc7f264551c969ff5a16fa0d4087
2020-05-18 09:26:30 +00:00
Treehugger Robot
86a5ba673e Merge "Allow libz to have stub even though it's not an LLNDK library" am: b4ce1e972c
Change-Id: I4404200702da8ee11d01f4658703920e9002e22c
2020-05-18 08:42:43 +00:00
Treehugger Robot
b4ce1e972c Merge "Allow libz to have stub even though it's not an LLNDK library" 2020-05-18 08:32:27 +00:00
Lukacs T. Berki
a5e0f710c2 Call Delve using exec() instead of "dlv attach".
"dlv attach":

- Spams the terminal
- Requires sysctl -w kernel.yama.ptrace_scope=0
- Apparently, does not allow the debugger to inspect variables

Test: Manual.
Change-Id: I625369effaf5abda2b5d884c8ce5bde7247774eb
2020-05-18 09:50:18 +02:00
Treehugger Robot
30a6edb924 Merge "Add test_mainline_modules to the auto-gen test config(AndroidJUnitTest only)." am: 1d9e2364ed
Change-Id: I19c34ba0959d9287aa16a42c6e819718e1ffa00e
2020-05-18 02:07:20 +00:00
Treehugger Robot
1d9e2364ed Merge "Add test_mainline_modules to the auto-gen test config(AndroidJUnitTest only)." 2020-05-18 01:50:49 +00:00
Paul Duffin
8bf22015c0 Extract common behavior between Module and Import am: 0d3c2e136b
Change-Id: I3314d2ed871b627c943a74802ff269b0c5d02924
2020-05-17 15:43:41 +00:00
Paul Duffin
0d3c2e136b Extract common behavior between Module and Import
Although the duplication being eliminated here is minimal follow up
changes will add more functionality that is common to Module and
Import.

Test: m nothing
Bug: 156723295
Change-Id: I1733405526764272beba63470a9bc8a958d41024
2020-05-17 13:32:13 +01:00
Jiyong Park
7d95a510cc Reland "Prevent statically linking to a lib providing stable C APIs"
This reverts commit 5b75774004.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 151051671
Test: m
Merged-In: I05f0465976098941d47ecc06c978cfa116364d78
(cherry picked from commit af7ed39b06)
Change-Id: I05f0465976098941d47ecc06c978cfa116364d78
2020-05-17 20:47:27 +09:00
Paul Duffin
1647e82aa0 java_sdk_library: Remove unnecessary qualification of fields am: a18abc2a61
Change-Id: Ib6b62802ba8c36a523731eff451873cc1f650e61
2020-05-17 10:54:39 +00:00
Paul Duffin
a18abc2a61 java_sdk_library: Remove unnecessary qualification of fields
Fields in embedded structures can be accessed without qualifying them
by the type of the embedded structure.

This reduces the size of follow up changes that switch java_sdk_library
from embedding Library.

Bug: 156618935
Test: m nothing
Change-Id: I84f294c6f02d5089055130c63f5fb0538a1f21b9
2020-05-16 19:29:59 +01:00
Treehugger Robot
4f15be74c8 Merge "Remove unnecessary copying of common properties" am: 781baf01eb
Change-Id: Iddeeab9ee1be3c706beb25e2f8c0113223409c9d
2020-05-16 14:36:50 +00:00
Treehugger Robot
781baf01eb Merge "Remove unnecessary copying of common properties" 2020-05-16 14:22:01 +00:00
Paul Duffin
1dbe3ca254 Remove unnecessary copying of common properties
The (Soc/Device/Product/System_ext)_specific are all properties in
ModuleBase.commonProperties. Initially, they were explicitly copied
from the parent to the child. Since then the CreateModule() method
was modified to automatically copy all the commonProperties from the
parent to the child so this code is no longer necessary.

Bug: 156618935
Test: m nothing
      checked that it does not change the generated xml permissions
	  file for a java_sdk_library that sets soc_specific: true and
	  is in the vendor partition.
Change-Id: I8c985b50cb6b6c019b33a4652de482ded689fee4
2020-05-16 13:06:55 +01:00
Colin Cross
17dec171b4 Use system modules for prebuilt SDKs >=30
Prebuilt SDKs >=30 now contain core-for-system-modules.jar,
convert them to system modules and use them when compiling against
the SDK to allow using javac -source 1.9 -target 1.9.

Bug: 117069453
Test: TestClasspath
Change-Id: Iebadad5980b952ed91c3ffd56cff1ce1827d3247
Merged-In: Iebadad5980b952ed91c3ffd56cff1ce1827d3247
2020-05-15 17:21:58 -07:00
Jaewoong Jung
23b4707ddc Merge "Add apex_set module." am: 805f2492e8
Change-Id: I0e66801f3c9ea5ae2f500d1cb11bd7f315a4a197
2020-05-15 23:26:18 +00:00
Jaewoong Jung
805f2492e8 Merge "Add apex_set module." 2020-05-15 23:13:38 +00:00
Treehugger Robot
1995680321 Merge "Add lineage file to deps for signapk." am: e070b8ebb4
Change-Id: Ia8bdef72a9ce176cc3876a9be3febf4246df231e
2020-05-15 21:02:43 +00:00
Treehugger Robot
e070b8ebb4 Merge "Add lineage file to deps for signapk." 2020-05-15 20:48:09 +00:00
Oliver Nguyen
748d03be8b Merge "Ignore pass-failed warnings on coverage builds." am: 349b97d88a
Change-Id: Ib2f8e6e46fb73ab81485493592114e5ac0a4ed78
2020-05-15 20:08:46 +00:00
Oliver Nguyen
349b97d88a Merge "Ignore pass-failed warnings on coverage builds." 2020-05-15 19:47:00 +00:00
Artur Satayev
849f844252 Generate combined deps-info for all updatable modules.
Introduce a singleton apex rule to merge contents of individual
deps-info results into a single output file.

Bug: 149622332
Test: m
Change-Id: I4ab7e1a3527fead97a81a5a2cb0e1e93a429117c
2020-05-15 19:10:19 +01:00
Jaewoong Jung
fa00c06187 Add apex_set module.
apex_set takes an .apks file that contains a set of prebuilt apexes with
different configurations. It uses extract_apks to select and install the
best matching one for the current target.

Bug: 153456259
Test: apex_test.go
Test: com.android.media.apks
Change-Id: I1da8bbcf1611b7c580a0cb225856cbd7029cc0a7
2020-05-15 11:02:01 -07:00
Treehugger Robot
8b4193d5bb Merge "Remove apex_available whitelist for the extservices APEX" am: 8cf3e5471d
Change-Id: If15942487b56c1dd36e7b3173107ed73d807e787
2020-05-15 15:00:00 +00:00
Treehugger Robot
8cf3e5471d Merge "Remove apex_available whitelist for the extservices APEX" 2020-05-15 14:46:43 +00:00
Treehugger Robot
0b951c0822 Merge "Fix special case when appending a visibility rule to //visibility:private." am: e3fa145692
Change-Id: I77ce93f0a7610e3ee466d547c735e9b79dbc759c
2020-05-15 14:20:53 +00:00
Treehugger Robot
e3fa145692 Merge "Fix special case when appending a visibility rule to //visibility:private." 2020-05-15 14:08:24 +00:00
Treehugger Robot
cf2a8b54a6 Merge "Replace javaLibrary with java.Dependency,android.Module" am: 198c946c8a
Change-Id: I4b8293fbdf2e6895d277551ebabe01a25f6467f3
2020-05-15 13:29:42 +00:00
Treehugger Robot
198c946c8a Merge "Replace javaLibrary with java.Dependency,android.Module" 2020-05-15 13:17:32 +00:00
Treehugger Robot
301b01036f Merge "Include runtime-module-sdk in the SDK build." am: 715cd52e4d
Change-Id: I267b0624e4efb0e421d08338c4bc00ffcd372d53
2020-05-15 12:31:40 +00:00
Jaewoong Jung
c067b0280c Merge changes from topic "prebuilt_apk_set" am: a3e8885658
Change-Id: I044fec16c5353a5d0001876f5dc618c513f6f09e
2020-05-15 12:31:29 +00:00
Treehugger Robot
715cd52e4d Merge "Include runtime-module-sdk in the SDK build." 2020-05-15 12:29:36 +00:00
Jaewoong Jung
a3e8885658 Merge changes from topic "prebuilt_apk_set"
* changes:
  Implement android_app_set module
  Implement extract_apks
2020-05-15 12:13:43 +00:00
Jooyung Han
8ce8db9ed6 apex: install hwasan lib if depended on libc
There're two ways to enable hwasan:
- global setting: TARGET_SANITIZE=hwaddress
- individual setting: sanitize: { hwaddress: true }

This change covers both cases by looking up if com.android.runtime is
hwaddress santized or not.

Bug: 156678661
Test: m (soong test added)
Change-Id: I67c382c3e76a06f4b27f221eebd153c698647227
2020-05-15 19:12:38 +09:00