Commit Graph

49235 Commits

Author SHA1 Message Date
Logan Chien 84722816db Merge "Add prebuilt ELF binaries checker"
am: f42823aa7c

Change-Id: If4a3e22dca94f127387542659bf608e8b53a15ce
2019-01-22 23:26:07 -08:00
Logan Chien 9779c57cd0 Merge "Add $(SOONG_OUT_DIR)/ndk/% to artifact whitelist" 2019-01-23 07:22:43 +00:00
Logan Chien f42823aa7c Merge "Add prebuilt ELF binaries checker" 2019-01-23 07:21:17 +00:00
Nicolas Geoffray 3333005881 Merge "Use the jars, not the classes.dex for passing to hiddenapi." am: ac8d67573e
am: 991f94d27f

Change-Id: I2b6c9e446444d9fae9c20a01d63256b5ee0c4a62
2019-01-22 22:54:57 -08:00
Nicolas Geoffray 991f94d27f Merge "Use the jars, not the classes.dex for passing to hiddenapi."
am: ac8d67573e

Change-Id: I5c1149cfec5658776de999df9d2e46041bf9e690
2019-01-22 22:50:33 -08:00
Nicolas Geoffray ac8d67573e Merge "Use the jars, not the classes.dex for passing to hiddenapi." 2019-01-23 06:37:06 +00:00
Dan Willemsen 9569ddd478 Deprecate LOCAL_MODULE_TAGS := eng/debug
Uses a new BUILD_BROKEN_ENG_DEBUG_TAGS variable that defaults to true
until we mark all of the broken targets, then we'll switch it to false.

These are fairly trivial to fix, so I don't expect to keep this flag
around for long.

Test: build_test on aosp and internal master; check logs
Change-Id: I6176fec265e78aecff965b7cf1636f831f68a140
2019-01-22 20:08:12 -08:00
Suren Baghdasaryan 90fa2fafb6 Merge "Add libprocessgroup into VNDK" am: 6f62f79db9
am: a35b1d4b06

Change-Id: I7bfc12ed99128a3fce6ce1dfd738049bd873ac26
2019-01-22 13:43:34 -08:00
Suren Baghdasaryan a35b1d4b06 Merge "Add libprocessgroup into VNDK"
am: 6f62f79db9

Change-Id: If511aba115010d45ce7418209ed3c0ac1571afeb
2019-01-22 13:05:30 -08:00
Suren Baghdasaryan 6f62f79db9 Merge "Add libprocessgroup into VNDK" 2019-01-22 20:58:16 +00:00
Suren Baghdasaryan 1877db4591 Add libprocessgroup into VNDK
Include libprocessgroup into vndk because libprocessgroup now implements
sched_policy control functions.

Bug: 111307099
Test: builds, boots
Merged-In: If18227e8a824a1e606df78dfe01d9d2437c62792
Change-Id: If18227e8a824a1e606df78dfe01d9d2437c62792
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-01-22 18:16:56 +00:00
Anton Hansson f2d90e9143 Move ModuleMetadata to base_product
The app is moving from /system to /product.

Bug: 122353713
Test: make
Change-Id: I0987b46013527503eedf75350bc30b303722552b
2019-01-22 18:07:03 +00:00
Nicolas Geoffray e5b368bfe6 Use the jars, not the classes.dex for passing to hiddenapi.
The instructions to look up for classes.dex don't work when looking
at different jar versions (aligned, unaligned, etc).

Test: m
Change-Id: I5f178ca0d00497edbab892722a5ee84f0c47d0a0
2019-01-22 14:28:12 +00:00
Paul Duffin fd24c9fe1f Remove REMOVE_OAHL_FROM_BCP flag
The REMOVE_OAHL_FROM_BCP flag is always set to true and is no longer
necessary so this change removes any uses of the flag.

Bug: 18027885
Test: cts/tests/signature/runSignatureTest.sh
Change-Id: Ied8c3315b29094ad6acee539520af3e4c9e79839
2019-01-22 14:16:12 +00:00
Hsin-Yi Chen 41319b3abc Add security patch level to hashtree footer of system
Test: avbtool info_image --image system.img
Bug: 122705329
Change-Id: I7b325a9a9aba2d98cb94c5fb8488b92f54e45dab
2019-01-22 17:11:15 +08:00
Colin Cross 509ab35a1a Merge "Don't depend on classes-header.jar when turbine is disabled" am: e8f1a420bc
am: 88f4dac397

Change-Id: I33fa2b41b55e23bc8ac1ccef684dc88a850cfa10
2019-01-21 14:11:21 -08:00
Colin Cross 88f4dac397 Merge "Don't depend on classes-header.jar when turbine is disabled"
am: e8f1a420bc

Change-Id: Ie90ccc32537299a4f61ca6dbf1e1c55e4a14e210
2019-01-21 14:07:13 -08:00
Treehugger Robot e8f1a420bc Merge "Don't depend on classes-header.jar when turbine is disabled" 2019-01-21 21:55:14 +00:00
David Brazdil caf42f97af Merge changes from topics "coreapi-flag", "coreapi-stubs-csv" am: 4ac7810755
am: 3b46950ae9

Change-Id: I05dbd7391ef3781c141388691fdab49386e66b9e
2019-01-21 11:46:04 -08:00
David Brazdil 0e4ce6c0e1 Replace hiddenapi-{public,private}-list.txt with a CSV file am: fc274bab4d
am: a1a433b368

Change-Id: Ic93ca865d6a34b8d9672eeb6d078b9ac48433429
2019-01-21 11:45:15 -08:00
Colin Cross b405fe3765 Don't depend on classes-header.jar when turbine is disabled
TARGET_BUILD_APPS sets TURBINE_ENABLED := false, which triggers
an issue where a dependency is added on classes-header.jar but
there is no rule to create it.  Skip creating the dependency
when TURBINE_ENABLED is false for now.

Bug: 123183568
Test: m TARGET_PRODUCT=mainline_modules_arm UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true TARGET_BUILD_APPS=com.android.media
Change-Id: I8ec3e244b8f9618c58f4ac57329a5a07f01dc797
2019-01-21 10:59:42 -08:00
David Brazdil 3b46950ae9 Merge changes from topics "coreapi-flag", "coreapi-stubs-csv"
am: 4ac7810755

Change-Id: I0a1d45a33cdb055d09129324c369bfe70f1aa0a2
2019-01-21 10:52:44 -08:00
David Brazdil a1a433b368 Replace hiddenapi-{public,private}-list.txt with a CSV file
am: fc274bab4d

Change-Id: I5ecd7a583418c39b4fef6cc569603e86b86d44ad
2019-01-21 10:51:52 -08:00
Logan Chien 86eeedbcc7 Add $(SOONG_OUT_DIR)/ndk/% to artifact whitelist
This commit adds `$(SOONG_OUT_DIR)/ndk/%` to artifact whitelist so that
when NDK stub libraries won't be blocked by artifact path requirements.

This commit does not break the integrity of artifact path requirements
because they are not installed to devices.

Bug: 123053270
Bug: 119084334
Test: lunch aosp_crosshatch-userdebug
Change-Id: Ieea76a8126269f53b0a58bd069b449a9f9b1263a
2019-01-21 14:34:19 +00:00
David Brazdil 4ac7810755 Merge changes from topics "coreapi-flag", "coreapi-stubs-csv"
* changes:
  hiddenapi: Process core.platform.api.stubs
  Replace hiddenapi-{public,private}-list.txt with a CSV file
2019-01-21 14:31:05 +00:00
Logan Chien 0e53d887d6 Add prebuilt ELF binaries checker
This commit introduces a prebuilt ELF binaries checker.  The checker
will check:

1. Whether all DT_NEEDED shared libraries are specified in
   `shared_libs` (Android.bp) or `LOCAL_SHARED_LIBRARIES` (Android.mk).

2. Whether all undefined symbols in the prebuilt binary can be resolved
   to defined symbols exported by its dependencies.

This ensures that prebuilt binaries won't silently become ABI
incompatible.

To check the prebuilt binaries, all of the dependencies must be
specified in `shared_libs` (Android.bp) or `LOCAL_SHARED_LIBRARIES`
(Android.mk).

If your prebuilt binaries cannot be checked for some reason, you may add
the following property to Android.bp:

    check_elf_files: false,

Or, add the following setting to Android.mk:

    LOCAL_CHECK_ELF_FILES := false

Bug: 119084334
Test: CHECK_ELF_FILES=true make check-elf-files
Change-Id: I523d3083f22fd4053c096d26f61f8375800281c8
2019-01-21 21:35:01 +08:00
David Brazdil fc274bab4d Replace hiddenapi-{public,private}-list.txt with a CSV file
`hiddenapi` is being refactored to work with a single CSV file as
opposued to a multitude of text files (one per flag). This patch
changes the singleton rule for listing public/private APIs from
stubs to expect a CSV as an output.

Bug: 119068555
Test: compiles, hiddenapi-flags.csv unchanged
Change-Id: If56c7ab8a4c3bbd33e447ef0dfd33f2c303a937c
2019-01-19 15:57:35 +00:00
David Brazdil 96e973b304 hiddenapi: Process core.platform.api.stubs
Pass @CorePlatformApi stubs to the `hiddenapi` singleton rule which
generate a CSV of all public or domain API flags.

Bug: 119068555
Test: m appcompat
Test: dexlayout <core-oj jar> | grep CORE-PLATFORM-API
Change-Id: I597ee330835e564d61cfac44497e762b552b901c
2019-01-19 15:57:35 +00:00
Dan Willemsen 3b59a7b9ef Merge "Add previously debug-tagged modules" am: 241d7cdba0
am: 2c4201eaca

Change-Id: Ia7ee053c6da1cc57f789d7661344c5fc777e5e6a
2019-01-19 00:06:14 -08:00
Dan Willemsen 2c4201eaca Merge "Add previously debug-tagged modules"
am: 241d7cdba0

Change-Id: I1df923ac4b678dbfc60c3a24be5d8275ad10c726
2019-01-18 23:49:29 -08:00
Dan Willemsen 241d7cdba0 Merge "Add previously debug-tagged modules" 2019-01-19 07:39:56 +00:00
Dongwon Kang fad608125e Merge "Move UPDATABLE_BOOT_(MODULES|JARS) to base_system.mk for further extension" am: 082fd2c5bc
am: e8b1110846

Change-Id: I49a1ff097c6bc875f3cc7deee7f963d343bd2777
2019-01-18 20:55:29 -08:00
Dongwon Kang e8b1110846 Merge "Move UPDATABLE_BOOT_(MODULES|JARS) to base_system.mk for further extension"
am: 082fd2c5bc

Change-Id: I5c561ebbdb5d40b10a6bc844163e96cfba63ea02
2019-01-18 20:46:17 -08:00
Treehugger Robot 082fd2c5bc Merge "Move UPDATABLE_BOOT_(MODULES|JARS) to base_system.mk for further extension" 2019-01-19 04:37:13 +00:00
Colin Cross 88c43523f3 Merge "Build docs zips with make docs" am: 3087d93cc6
am: e0ad3ac374

Change-Id: I22835c47fd91b4aeec52e0e57d972f171e100c47
2019-01-18 20:19:10 -08:00
Colin Cross e0ad3ac374 Merge "Build docs zips with make docs"
am: 3087d93cc6

Change-Id: I7b38252ec2b9b4d575eba1e05b3a36fc2957ba1f
2019-01-18 20:15:04 -08:00
Colin Cross 3087d93cc6 Merge "Build docs zips with make docs" 2019-01-19 04:09:20 +00:00
Jeongik Cha e8de9ece30 Merge "Define non-system module as variable" am: 6bd6318880
am: 71be05d4e6

Change-Id: I5ef9c1d037c1e6d83aa182246a771a75e1285a80
2019-01-18 18:04:20 -08:00
Jeongik Cha 71be05d4e6 Merge "Define non-system module as variable"
am: 6bd6318880

Change-Id: I6d99558d4c3e9b0c510d7dfa6f8ed6978cbf1e44
2019-01-18 17:59:05 -08:00
Treehugger Robot 6bd6318880 Merge "Define non-system module as variable" 2019-01-19 01:48:39 +00:00
Evgenii Stepanov 26246b3ee1 Merge "Limit 2 uses of SANITIZE_TARGET to ASan." am: ffaf4815fc
am: 3700f97331

Change-Id: Ic0247fdeff0abe60696ed311f5bb8c1e79c2c603
2019-01-18 17:47:15 -08:00
Evgenii Stepanov 3700f97331 Merge "Limit 2 uses of SANITIZE_TARGET to ASan."
am: ffaf4815fc

Change-Id: Ibcd9f7a22dfbc267958d88f3163aa17f215d8109
2019-01-18 17:44:03 -08:00
Evgenii Stepanov ffaf4815fc Merge "Limit 2 uses of SANITIZE_TARGET to ASan." 2019-01-19 01:32:51 +00:00
Dan Willemsen c116988ed1 Merge changes I685ab841,I6ab7e488 am: 215e2c828c
am: b20ba12b80

Change-Id: I93f44c548c1406f0e5e7021cdd533eb7c849964c
2019-01-18 17:11:00 -08:00
Yifan Hong 45433e44dd Really support removing / adding partitions.
- When removing a partition, BlockDifference() object
will have tgt=EmptyImage(). Fix the asserts accordingly.
Also, BlockDifference object now allow tgt=None case.

- When adding a partition, BlockDifference() object
will have src=None. Fix the asserts accordingly.

Also, add unit tests to DynamicPartitionsDifference.

Test: create incremental OTA
Test: test_common.DynamicPartitionsDifferenceTest
Bug: 111801737

Change-Id: I3a35378ecf93111b8f44545cff6ae9696b6b4851
2019-01-18 17:09:33 -08:00
Dongwon Kang 167758a153 Move UPDATABLE_BOOT_(MODULES|JARS) to base_system.mk for further extension
Test: build & boot
Bug: 112766913

Change-Id: I5af02d44c4b4163acdc4e3078dcebd84556ee049
2019-01-18 17:06:18 -08:00
Dan Willemsen b20ba12b80 Merge changes I685ab841,I6ab7e488
am: 215e2c828c

Change-Id: I25f979ee1c09f26d7db698f0f9eca646d2fbeeae
2019-01-18 16:50:44 -08:00
Treehugger Robot 215e2c828c Merge changes I685ab841,I6ab7e488
* changes:
  Add PRODUCT_BUILD_*_IMAGE, BUILDING_*_IMAGE to control building of images
  Always package ext filesystem tools
2019-01-19 00:18:02 +00:00
Colin Cross 103d6e8856 Build docs zips with make docs
The docs zips were being built for make docs dist but not for
make docs.  Add them to ALL_DOCS and to the $(LOCAL_MODULE)
phony rule.

Bug: 123068677
Test: m docs
Test: m ds-docs
Change-Id: I32634c05e392f7a5483c81d59de35ca9bc4d4ad0
2019-01-18 16:08:14 -08:00
Dan Willemsen ec6cc8521d Add previously debug-tagged modules
These all had `LOCAL_MODULE_TAGS := debug`

Test: treehugger
Change-Id: I848d1d9fb7e9921827ef6b5b72376710150ce839
2019-01-18 15:51:41 -08:00