Commit Graph

48814 Commits

Author SHA1 Message Date
Colin Cross a81dad1bc4 Revert "Never strip and store dex files uncompressed when they are preopted on system."
This reverts commit 9cdc3beb3d.

Reason for revert: b/123436620

Change-Id: I45fa9236e37c3b7e2d44ede62a2701db2bc8a20d
2019-02-11 19:30:39 +00:00
Mathieu Chartier a221a6e592 Merge "Enable layout compilation by default"
am: 0c44ba4eda

Change-Id: I64b5cc14ce4797c8f6c50d9b89f826161cd0b47e
2019-02-11 10:08:39 -08:00
Mathieu Chartier 0c44ba4eda Merge "Enable layout compilation by default" 2019-02-11 17:58:50 +00:00
Jiyong Park c35a33e59c TARGET_FLATTEN_APEX for GSI
Regular (non-flattened) APEX may require changes to the kernel, which is
against the Treble promise. For maximum compatibility, APEXes are
flattened for GSI so that APEXes can be activated by legacy kernels.

Bug: 124159875
Test: N/A
Change-Id: Iea5701d3b917ebf8657d3ce38131c1838b51677e
2019-02-11 21:50:02 +09:00
Anton Hansson faf0bbf2b8 Merge "Enable suspend for mainline charger"
am: c75e5ba356

Change-Id: Iad3f8ca78c7515322ce2122bcac905f51e3cbe9a
2019-02-11 03:02:35 -08:00
Anton Hansson c75e5ba356 Merge "Enable suspend for mainline charger" 2019-02-11 10:53:49 +00:00
Nicolas Geoffray b2d2793762 Merge "Never strip and store dex files uncompressed when they are preopted on system."
am: f07d63390c

Change-Id: I513795a11decf29bcb8afa32b0eb778edf5f0400
2019-02-11 02:40:49 -08:00
Nicolas Geoffray f07d63390c Merge "Never strip and store dex files uncompressed when they are preopted on system." 2019-02-11 10:31:12 +00:00
Anton Hansson 31a70ee8ea Merge "Tab completion for the croot function"
am: 5cbb363305

Change-Id: Ia1b45a7a278efba54ce8bf6246d4e9fa8019fee3
2019-02-11 02:21:25 -08:00
Anton Hansson 5cbb363305 Merge "Tab completion for the croot function" 2019-02-11 10:14:37 +00:00
Jiyong Park 744fd5698f Drop /root when installing symbols
This change fixes a problem that if a module is installed to the root
partition, its symbol file appears at under symbols/root, which is an
non-existing path at runtime. Since the symbol paths should match with
the runtime path, drop /root when installing symbols.

Bug: 123985838
Test: m libc.mountpoint
libc.so is found under symbols/bionic/lib[64]

Change-Id: I38bd226c3ec758d69902f4f288c83f68170c4068
2019-02-11 16:16:18 +09:00
Luca Stefani 7c7b4b6beb Fix flags argument passed to avbtool for GSI images
* avbtool expect extra flags to be passed with the --flags argument
  but currently we're missing an 's'.
  Luckily this isn't an issue as python argparse matches
  --flag as an alias to --flags ( python... )

Test: m vbmetaimage; check vbmeta header
Change-Id: I42d833c61c9b313dc067b1e519bae36395d09824
2019-02-10 19:59:27 +01:00
android-build-team Robot 641da2907b Make change and version bump to PPRL.190205.001
Change-Id: I66d528f1b45c68eac151c9c56b91c522e4674dab
2019-02-09 02:40:54 +00:00
Colin Cross b568c2e15d Merge "Make manifest and APK agree on uncompressed native libs"
am: 010df4b471

Change-Id: Ib1521234aa42fbf5439e919b991c24f8bc8fcf7e
2019-02-08 18:38:16 -08:00
Treehugger Robot 010df4b471 Merge "Make manifest and APK agree on uncompressed native libs" 2019-02-09 02:25:32 +00:00
Nicolas Geoffray 9cdc3beb3d Never strip and store dex files uncompressed when they are preopted on system.
In order for the runtime module to always be able to compile apps,
make sure we keep a copy of the dex files optimally.

Gated by a product flag if a product doesn't include the module yet.

Test: build
Change-Id: Ia9bba7f6f12f3400078a43d39ba4134cf8818399
2019-02-08 22:45:48 +00:00
Hridya Valsaraju 2048a2db3f Merge "Only pick DTBs from BOARD_PREBUILT_DTBIMAGE_DIR"
am: 143ff1ff9a

Change-Id: If90742475357500d797f08b4fdea90b4329b308e
2019-02-08 14:14:40 -08:00
Chen Xu 73466c8bc1 Merge "Revert "Add Asuite prebuilds in PATH and remove functions.""
am: aaf8cdf59d

Change-Id: Ic51bed99735876ff2cefd2e88ba3eb47cbe209a6
2019-02-08 14:12:56 -08:00
Treehugger Robot 143ff1ff9a Merge "Only pick DTBs from BOARD_PREBUILT_DTBIMAGE_DIR" 2019-02-08 22:02:05 +00:00
Chen Xu aaf8cdf59d Merge "Revert "Add Asuite prebuilds in PATH and remove functions."" 2019-02-08 21:58:33 +00:00
Chen Xu a1cc558cdd Revert "Add Asuite prebuilds in PATH and remove functions."
This reverts commit dda51d42da.

Reason for revert: This change caused AOSP build breakage on NDK

Change-Id: I27973e8e0f08e5d71a405208ae4a6a855c751932
2019-02-08 21:52:59 +00:00
Dan Willemsen 265bd2fb92 Merge "Default to erroring when eng/debug tags are used"
am: 7067aaa13c

Change-Id: I651efc357d5d3a06ed35491ee3d591de53f2736f
2019-02-08 13:51:52 -08:00
Treehugger Robot 7067aaa13c Merge "Default to erroring when eng/debug tags are used" 2019-02-08 21:46:22 +00:00
Jim Tang 35fed77a88 Merge "Add Asuite prebuilds in PATH and remove functions."
am: fc58ed2fb7

Change-Id: I462f52a9a8619b4e3f445010e4ef4eb2d5da1b26
2019-02-08 13:05:31 -08:00
Dan Willemsen 78e94a46c9 Default to erroring when eng/debug tags are used
Some devices opt out of the warning with `BUILD_BROKEN_ENG_DEBUG_TAGS :=
true` still, but the rest have no more warnings left.

Test: build_test in treehugger
Change-Id: I1534a0db006d72c7921a20ab793586ef1c7bdb21
Merged-In: I1534a0db006d72c7921a20ab793586ef1c7bdb21
2019-02-08 13:03:23 -08:00
Treehugger Robot fc58ed2fb7 Merge "Add Asuite prebuilds in PATH and remove functions." 2019-02-08 20:56:37 +00:00
Hridya Valsaraju c63a74474b Only pick DTBs from BOARD_PREBUILT_DTBIMAGE_DIR
This change is required to prevent the build system
from picking up DTB files from subdirectories to
BOARD_PREBUILT_DTBIMAGE_DIR.

Test: make bootimage
Bug: 123648105

Change-Id: Ibc2a133f3c9be6362579dc9bf9ca399912b9d8a2
2019-02-08 09:36:44 -08:00
Anton Hansson 68028611f0 Merge "Remove non-existant packages from mainline_system"
am: 76d8591417

Change-Id: I9c5e52c9854f24268f567c62313ae153d73c3dd3
2019-02-08 06:39:46 -08:00
Anton Hansson 3b83ae8834 Merge "Remove DMService from mainline_system"
am: 21e0cbacfc

Change-Id: I63d265b3f4f99b1aea5d9d195ea705ab17d29e0a
2019-02-08 06:38:42 -08:00
Anton Hansson 76d8591417 Merge "Remove non-existant packages from mainline_system" 2019-02-08 14:31:19 +00:00
Anton Hansson 21e0cbacfc Merge "Remove DMService from mainline_system" 2019-02-08 14:31:06 +00:00
Jeongik Cha ef26afdc27 Detect shareduid between different partitions
Find shareduid usage between the partitions(system, vendor, product).

Here is sample output

{
  "android.uid.system": {
    "product": [
      "Settings.apk"
    ],
    "system": [
      "framework-res.apk",
      "FusedLocation.apk",
      "Telecom.apk",
      "InputDevices.apk",
      "SettingsProvider.apk",
      "WallpaperBackup.apk",
      "KeyChain.apk"
    ]
  }
}

Bug: 123664116
Test: m -j out/target/product/$(get_build_var TARGET_DEVICE)/shareduid_violation_modules.txt
Change-Id: If2a75bf66b369cd3fad1744d08b6bfbfc624979c
2019-02-08 22:41:30 +09:00
Mathieu Chartier 2e321b0e85 Enable layout compilation by default
Aims to get additional coverage of the view compiler. Note that the
compiled views are not currently loaded.

Test: adb shell getprop
Bug: 111895153

Change-Id: I7b172fc55bc47ee1593eb352fb9d9143f44a1e6c
2019-02-08 13:35:54 +00:00
Anton Hansson b100f5b834 Enable suspend for mainline charger
Bug: 80410283
Test: make
Change-Id: I09efa8dd557d586424c342772925b9ab2940bc88
2019-02-08 13:34:49 +00:00
Dan Willemsen 0a63186fb8 Merge "Make the duplicate header copy warning more explicit"
am: 86c26860be

Change-Id: I1ea8960390e95bd887c47930aa35491c41a397f4
2019-02-08 01:24:30 -08:00
Treehugger Robot 86c26860be Merge "Make the duplicate header copy warning more explicit" 2019-02-08 09:15:38 +00:00
Anton Hansson ece9c48e4d Tab completion for the croot function
Test: bash 3.2
Test: bash 4.4
Change-Id: Ie35ea05c4dd5ea246c005559bb5f36a9c05ef7c4
2019-02-08 08:24:26 +00:00
Anton Hansson c8df56f35e Remove non-existant packages from mainline_system
Also add the health-check macro to the buildable products
to make sure no other non-existant packages are added.

Bug: 80410283
Test: build mainline_arm64 + mainline_system_arm64
Change-Id: I6c54de2f43b5ab0c9e0ddfa09fa7553c321e4aa7
2019-02-08 08:08:52 +00:00
Anton Hansson ed5f6646b0 Remove DMService from mainline_system
Doesn't exist in AOSP.

Bug: 110072687
Test: make
Change-Id: I516ff4d647e62b8535e9bf648a156b010a328e93
Merged-In: I516ff4d647e62b8535e9bf648a156b010a328e93
2019-02-08 08:08:46 +00:00
Colin Cross 489d8f52dc Merge "Remove unused dexpreopt UseEmbeddedDex"
am: 34121e8cc9

Change-Id: I4bbe862fe9dfe73324cf9b4e0c7d93db86a7ad30
2019-02-07 23:31:19 -08:00
Treehugger Robot 34121e8cc9 Merge "Remove unused dexpreopt UseEmbeddedDex" 2019-02-08 07:19:33 +00:00
Colin Cross ead7b66590 Make manifest and APK agree on uncompressed native libs
Only put uncompressed native libs in an APK if the min_sdk_version
supports it (>= 23, Marshmallow), and set
android:extractNativeLibs="false" in the AndroidManifest.xml so
that the platform won't extract them anyways.

Bug: 117618214
Test: m checkbuild
Change-Id: Iae26e4676c29c68fa3f76187512c82786bfa0522
2019-02-07 21:44:12 -08:00
Dan Willemsen f4249d1052 Make the duplicate header copy warning more explicit
So that it's easier to understand which makefile is actually being used,
and which ones are being ignored.

Test: manually check the warnings on a device that sets BUILD_BROKEN_DUP_COPY_HEADERS
Change-Id: If9e29458eaa655b28e6b770d194d1da867cb8d16
2019-02-07 18:43:53 -08:00
Colin Cross 5e2b2c666d Merge "Consolidate sdk version handling"
am: 2b526bf7f3

Change-Id: I361dc52594b9ac7aa632f05b692f942c907795cb
2019-02-07 18:42:55 -08:00
Colin Cross 2b526bf7f3 Merge "Consolidate sdk version handling" 2019-02-08 02:30:16 +00:00
Colin Cross ee3056acb0 Merge "Add DEXPREOPT_BOOTCLASSPATH_DEX_FILES to DEXPREOPT_GEN_DEPS"
am: a88ee4b1aa

Change-Id: I9d5634d227750be759d43b9fcabec060d0d807b9
2019-02-07 17:46:35 -08:00
Treehugger Robot a88ee4b1aa Merge "Add DEXPREOPT_BOOTCLASSPATH_DEX_FILES to DEXPREOPT_GEN_DEPS" 2019-02-08 01:26:35 +00:00
Colin Cross 33f245a209 Add DEXPREOPT_BOOTCLASSPATH_DEX_FILES to DEXPREOPT_GEN_DEPS
Anything that might be used by dexpreopt.sh needs to be listed
in DEXPREOPT_GEN_DEPS to make sure it is up to date if
dexpreopt.sh has never run before and generated its .d file.

Bug: 124062553
Test: lunch aosp_blueline-userdebug
      m out/target/product/blueline/obj/APPS/Gallery2_intermediates/dexpreopt.zip
      lunch aosp_sailfish-userdebug
      m out/target/product/sailfish/obj/APPS/Gallery2_intermediates/dexpreopt.zip
Change-Id: I2608f68d1a2157f9c95bd136eb82010aceed1c59
2019-02-07 22:29:55 +00:00
Colin Cross fceb298ff7 Remove unused dexpreopt UseEmbeddedDex
dexpreopt doesn't need to know about UseEmbeddedDex, it has
already been taken into account for UncompressedDex.

Test: m checkbuild
Change-Id: I546bdaf604552792a2ac9b3557811da7418b37d1
2019-02-07 22:29:45 +00:00
Colin Cross 979e0d51c5 Merge "Remove extra $ in soong_app_prebuilt"
am: a56dede4d8

Change-Id: Ibeaf40abd28af77015a842e6f75bfdc154e8ade1
2019-02-07 13:25:54 -08:00