Commit Graph

11456 Commits

Author SHA1 Message Date
Colin Cross
d2c3fb93b6 Merge "Reverse merge order of resources and implementation"
am: b5ad835dfe

Change-Id: I61bfcc5bf2f8325aa393893ec44378db8c88a831
2019-05-01 20:42:51 -07:00
Treehugger Robot
b5ad835dfe Merge "Reverse merge order of resources and implementation" 2019-05-02 03:04:24 +00:00
Mathieu Chartier
8a8f4d5199 Merge "Enable app image startup cache for preopted apps"
am: 60a839dd42

Change-Id: I4082b861d48d028532625bf9280e9730ab6cb793
2019-05-01 13:49:33 -07:00
Mathieu Chartier
60a839dd42 Merge "Enable app image startup cache for preopted apps" 2019-05-01 20:29:20 +00:00
Paul Duffin
1e0ae9f523 Remove unnecessary core library neverallow rules
am: ff5a177879

Change-Id: Iad4785586714383726fa89d659f4e2f8df0d9830
2019-05-01 12:46:01 -07:00
Paul Duffin
ff5a177879 Remove unnecessary core library neverallow rules
The rules that restricted access to core library targets are no longer
required as they have been replaced with visibility rules. The
visibility rules are safer because they check all dependencies whereas
the neverallow rules that have been removed only checked dependencies
in the libs property and so missed dependencies in static_libs and
java_libs properties.

(cherry picked from 8e8c01c382)

Bug: 112158820
Test: m core-tests
Change-Id: I3b50b705b7cd6fcdc55d26cd71b9149b3abd2b88
Merged-In: Ibfef74db0769992266ebadf445836d2a183df3f7
2019-05-01 09:39:32 +01:00
Mathieu Chartier
3f7ddbba98 Enable app image startup cache for preopted apps
To get performance benefits here for apps that aren't installed
through the play store.

Bug: 130217075
Bug: 131310042
Test: make

(cherry picked from commit 8910722e71)

Merged-In: I46dc3e4a588be52f359577ca1f0fd2dcd440c4bf
Change-Id: Ia98c4e5447b63f6362a4bd5c617a518784f0ef53
2019-04-30 17:01:13 -07:00
Elliott Hughes
475806f08b Merge "Revert "bzip2/xz: use the prebuilts.""
am: 77b3fec7c1

Change-Id: I9b618ea68fc17c56b8424947665c2048c609c4b0
2019-04-30 15:55:25 -07:00
Elliott Hughes
77b3fec7c1 Merge "Revert "bzip2/xz: use the prebuilts."" 2019-04-30 22:39:52 +00:00
Colin Cross
828a488720 Merge "Remove services.art from known_nondeterminism.whitelist"
am: 42603c4ab5

Change-Id: I0a9f690cdd3a9bb14a4efceec156cbdca8802bde
2019-04-30 15:19:18 -07:00
Colin Cross
42603c4ab5 Merge "Remove services.art from known_nondeterminism.whitelist" 2019-04-30 21:56:15 +00:00
Elliott Hughes
3d87302a6d Revert "bzip2/xz: use the prebuilts."
This reverts commit e114b3f0a9.

Build broke as follows:

out/soong/host/linux-x86/bin/sbox --sandbox-path out/soong/.temp --output-root out/soong/.intermediates/system/update_engine/ue_unittest_disk_imgs/gen -c 'tar -jxf system/update_engine/sample_images/sample_images.tar.bz2 -C __SBOX_OUT_DIR__/gen disk_ext2_1k.img disk_ext2_4k.img disk_ext2_4k_empty.img disk_ext2_unittest.img' __SBOX_OUT_DIR__/gen/disk_ext2_1k.img __SBOX_OUT_DIR__/gen/disk_ext2_4k.img __SBOX_OUT_DIR__/gen/disk_ext2_4k_empty.img __SBOX_OUT_DIR__/gen/disk_ext2_unittest.img 
"bzip2" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information. 
tar: Child returned status 1 
tar: Error is not recoverable: exiting now 
sbox command (tar -jxf system/update_engine/sample_images/sample_images.tar.bz2 -C out/soong/.temp/sbox849645882/gen disk_ext2_1k.img disk_ext2_4k.img disk_ext2_4k_empty.img disk_ext2_unittest.img) failed with err "exit status 2" 

Change-Id: I3fe7100886ea3b748f5a6b5fc6d2811391bb72a8
2019-04-30 21:55:23 +00:00
Nicolas Geoffray
f731037778 Merge "Add ART folks to owner of dexpreopt related file."
am: 327a7e7420

Change-Id: I3a7eda67410752f3d10e8a08b59f0fdfb9fbd2e7
2019-04-30 13:57:46 -07:00
Nicolas Geoffray
327a7e7420 Merge "Add ART folks to owner of dexpreopt related file." 2019-04-30 20:36:16 +00:00
Elliott Hughes
1061cb4b53 Merge "bzip2/xz: use the prebuilts."
am: dc2699cfde

Change-Id: I9b5f36fc9efb7e7493ad6c0c28bc4602a16e93e3
2019-04-30 13:07:25 -07:00
Elliott Hughes
dc2699cfde Merge "bzip2/xz: use the prebuilts." 2019-04-30 19:48:27 +00:00
Nicolas Geoffray
5b6061d6aa Add ART folks to owner of dexpreopt related file.
Test: N/A
Change-Id: If8c7b1801e4a08e38ab75b459d9d8eff22804f06
2019-04-30 15:33:49 +01:00
Nicolas Geoffray
fed3ab3053 Pass other boot classpath locations to the apex image.
am: feef2ef4d7

Change-Id: I669b4e6ba2aef3cafd6392f4904dd940f54ee4a6
2019-04-30 06:46:19 -07:00
Nicolas Geoffray
feef2ef4d7 Pass other boot classpath locations to the apex image.
In order to evaluate the impact of framework classes being in an image.

Test: m
Bug: 119800099
Exempt-From-Owner-Approval: this is only for an experimental config, which we would like to see
the performance before build snap.
Change-Id: Ib0d3acf8d2718ee443b3bffe8122a54f92257691
2019-04-30 13:33:10 +00:00
Jiyong Park
deba159e56 Merge "Prebuilt APEXes are recoreded in apexkeys.txt"
am: 1341942d86

Change-Id: If24dc20f3238bc1d7a84f2b2485871173b9e5e66
2019-04-29 20:27:41 -07:00
Treehugger Robot
1341942d86 Merge "Prebuilt APEXes are recoreded in apexkeys.txt" 2019-04-30 03:14:01 +00:00
Elliott Hughes
e114b3f0a9 bzip2/xz: use the prebuilts.
We added the prebuilts a while ago, but forgot to clean this up.

Test: treehugger
Change-Id: I8920f0c9d77951332a663750102ceeabcb565970
2019-04-29 16:23:08 -07:00
Logan Chien
5b70a03268 Merge "Support opt-in ABI checks"
am: 23803f9365

Change-Id: I2ff8f34a79d8cd7ed6975ccf2cd5ee7a709c44ef
2019-04-29 10:59:30 -07:00
Logan Chien
23803f9365 Merge "Support opt-in ABI checks" 2019-04-29 17:40:06 +00:00
Colin Cross
497d4c24b1 Remove services.art from known_nondeterminism.whitelist
Bug: 120039850
Test: none
Change-Id: I70d5243f427a4da5c8126be6b8ebc90221133ad3
2019-04-29 17:36:19 +00:00
Colin Cross
08a409df2d Reverse merge order of resources and implementation
Merge the resources first in case one of the static libraries
merge into the implementation jars contains a duplicate resource.
Also put the manifest into the resource jar so that the default
manifest doens't override the custom manifest.

Test: m checkbuild
Change-Id: I96d117c306bc9f1346720251d3993031992cef66
2019-04-29 10:29:24 -07:00
Paul Duffin
f028b496b6 Merge "Add visibility support"
am: 77b47fdf51

Change-Id: I7615e1e112408ced5f20600f0a485240767939b8
2019-04-29 03:25:32 -07:00
Paul Duffin
77b47fdf51 Merge "Add visibility support" 2019-04-29 10:10:21 +00:00
Jiyong Park
4d27704da0 Prebuilt APEXes are recoreded in apexkeys.txt
apexkeys.txt now correctly lists prebuilt APEXes with keys specified as
PRESIGNED.

This change also fixes a bug that non-installable APEXes are listed in
the file.

Bug: 131130235
Test: m out/soong/apexkeys.txt and check that
com.android.apex.cts.shim.apex is listed there with PRESIGNED keys.

Merged-In: Ib6d391a82864714743a1cc59cd655bea917b5073
Change-Id: Ib6d391a82864714743a1cc59cd655bea917b5073
(cherry picked from commit a41f12a6fa)
2019-04-29 09:21:23 +09:00
Patrice Arruda
58f381b714 Merge "Soong: Add synopsis to kernel_headers module under cc package."
am: f3c5e4816c

Change-Id: I8512002dde76af8f29d2d355079f375545a58d18
2019-04-26 22:29:30 -07:00
Treehugger Robot
f3c5e4816c Merge "Soong: Add synopsis to kernel_headers module under cc package." 2019-04-27 05:10:15 +00:00
Patrice Arruda
cb5142c2d1 Soong: Add synopsis to kernel_headers module under cc package.
Added kernel_headers synopsis.

Bug: b/128337482
Test: Generated the documentation and verified that the synopsis
      was added to the kernel_headers module.

Change-Id: I3d23fa2408c387883e62dea0742e72a96868ecb4
2019-04-26 15:19:21 -07:00
Colin Cross
7999578281 Merge "Tag dex_preopt.profile as a path"
am: 3d974ec295

Change-Id: Ia38a213edd334e6d5f80aaeaea75d38dde695d08
2019-04-26 14:13:05 -07:00
Treehugger Robot
3d974ec295 Merge "Tag dex_preopt.profile as a path" 2019-04-26 20:50:28 +00:00
Logan Chien
41eabe63e8 Support opt-in ABI checks
This commit allows a module to opt in for ABI checks even when it is
not an LLNDK/VNDK module.

Bug: 131421213
Test: Add `header_abi_checker { enabled: true, }` to some module
Change-Id: Ie09d262e651cbb44d7d0eba652f55dc1e1e52962
2019-04-27 01:55:50 +08:00
Colin Cross
de4e4e6a6d Tag dex_preopt.profile as a path
Tag dex_preopt.profile with `android:"path"` so that it can be used
with a filegroup.

Test: m checkbuild
Change-Id: I5d6bbfcfcf0a1a22c9478ad57d0c55fb9b9efadd
2019-04-26 10:52:32 -07:00
Paul Duffin
2e61fa6e14 Add visibility support
Implementation uploaded for review. Includes unit tests but does not
yet handle prebuilts, that will come in a future change once some
more general issues with prebuilts and namespaces is resolved.

See README.md#Visibility for details of what this does and how to use
it.

Bug: 112158820
Test: add visibility rules for core library modules, make core-tests
Change-Id: I8ec980554398ad6f2d42043ce518f811a35da679
2019-04-26 12:37:37 +01:00
Colin Cross
52313d976c Merge changes Id93bcaea,Ia8f9f910
am: 02cbe8f1c6

Change-Id: I2e238cd5f79d18b8ca44700483215db26f1b564f
2019-04-25 07:58:47 -07:00
Treehugger Robot
02cbe8f1c6 Merge changes Id93bcaea,Ia8f9f910
* changes:
  Pass --remove-tools-declarations to manifest merger
  Don't use merged manifest for android_library modules
2019-04-25 14:47:37 +00:00
Inseob Kim
a5d61d865a Merge "Build contexts files with Soong"
am: 18805e483f

Change-Id: I1f364ac9261d72ee2d97ef388aad3fb02c5e7d9e
2019-04-25 00:52:14 -07:00
Treehugger Robot
18805e483f Merge "Build contexts files with Soong" 2019-04-25 07:46:19 +00:00
Colin Cross
02a9b1af2c Merge "Support target.hostdex.required"
am: 226586ca3c

Change-Id: I044fa3272c81ffd894be6a59ed7b1d60d6743973
2019-04-24 17:20:24 -07:00
Colin Cross
226586ca3c Merge "Support target.hostdex.required" 2019-04-25 00:06:00 +00:00
Colin Cross
3109e125b3 Make java_test_helper_library installable
am: 9a4abed701

Change-Id: I082ee7deec7677e9a00b5511ee650dba512c5485
2019-04-24 15:47:48 -07:00
Colin Cross
5452d26838 Export proguard_dictionary for java_library modules
am: e8a7dc987c

Change-Id: I62eb5f457aa2aa8f90f7d46e872f2136e8a39150
2019-04-24 15:45:47 -07:00
Colin Cross
aa1c6f1f5a Pass --remove-tools-declarations to manifest merger
Manifest merger needs --remove-tools-declarations to match
Gradle behavior.

Bug: 112607039
Test: m checkbuild
Change-Id: Id93bcaeaf03770a4acd2e1fdf44e418f55540dd3
2019-04-24 14:41:04 -07:00
Colin Cross
90c25c6893 Don't use merged manifest for android_library modules
Don't use the merged manifest for android_library modules.  We
still have to run manifest merger for android_library modules
because Make can't handle transitive dependencies, so it will
continue to merge the manifests at each library, and then merge
the manifests of direct dependencies into the final application.

Bug: 113294940
Test: m checkbuild
Change-Id: Ia8f9f910bd0a134730ddf2d542460eeddbc0a075
2019-04-24 14:40:14 -07:00
Colin Cross
7f87f4fdeb Support target.hostdex.required
Hostdex modules sometimes need extra required modules, add
target.hostdex.required.

Bug: 131167818
Test: manual
Change-Id: I599f3499f0b738556baeb27185371a42b4c2701b
2019-04-24 20:43:14 +00:00
Colin Cross
9a4abed701 Make java_test_helper_library installable
java_test_helper_library should product an installabler, dexed
library, the same as java_test just without the auto-generated
test config.

Test: m checkbuild
Change-Id: Ie573c1d24969ba9c4feb8a2e85f8969d5d713064
2019-04-24 13:19:28 -07:00
Colin Cross
e8a7dc987c Export proguard_dictionary for java_library modules
Move exporting LOCAL_SOONG_PROGUARD_DICT from AndroidLibrary
to Library so that it is exported for java_library modules.

Test: m checkbuild
Change-Id: I27ea08ad8ba9072d0648c141cdbaf447c5268f91
2019-04-24 12:52:42 -07:00