OSDN Git Service

android-x86/build.git
8 years agoAddress emulator specific SELinux denials
Nick Kralevich [Mon, 18 Apr 2016 20:28:04 +0000 (13:28 -0700)]
Address emulator specific SELinux denials

Fix the following denials:

  avc: denied { search } for pid=222 comm="system_server"
  name="qemu_trace" dev="sysfs" ino=45 scontext=u:r:system_server:s0
  tcontext=u:object_r:sysfs_writable:s0 tclass=dir permissive=1

  avc: denied { open } for pid=222 comm="system_server"
  name="u:object_r:opengles_prop:s0" dev="tmpfs" ino=1429
  scontext=u:r:system_server:s0 tcontext=u:object_r:opengles_prop:s0
  tclass=file permissive=1

  avc: denied { read } for pid=222 comm="system_server"
  name="u:object_r:radio_noril_prop:s0" dev="tmpfs" ino=1430
  scontext=u:r:system_server:s0 tcontext=u:object_r:radio_noril_prop:s0
  tclass=file permissive=1

  avc: denied { open } for pid=222 comm="system_server"
  name="u:object_r:radio_noril_prop:s0" dev="tmpfs" ino=1430
  scontext=u:r:system_server:s0 tcontext=u:object_r:radio_noril_prop:s0
  tclass=file permissive=1

  avc: denied { getattr } for pid=222 comm="system_server"
  path="/dev/__properties__/u:object_r:radio_noril_prop:s0" dev="tmpfs"
  ino=1430 scontext=u:r:system_server:s0
  tcontext=u:object_r:radio_noril_prop:s0 tclass=file permissive=1

  avc: denied { search } for pid=424 comm="putmethod.latin"
  name="qemu_trace" dev="sysfs" ino=45
  scontext=u:r:untrusted_app:s0:c512,c768
  tcontext=u:object_r:sysfs_writable:s0 tclass=dir permissive=1

Bug: 28221393
Change-Id: I6fce1127d9d9e8bc0119bace3f142d51382401c0

8 years agoMerge "Skip verifying the partition with no changed blocks." into nyc-dev
Tao Bao [Fri, 15 Apr 2016 03:22:23 +0000 (03:22 +0000)]
Merge "Skip verifying the partition with no changed blocks." into nyc-dev

8 years agoMerge "Revert "Set WifiHAL to only log debug by default."" into nyc-dev
TreeHugger Robot [Fri, 15 Apr 2016 00:33:43 +0000 (00:33 +0000)]
Merge "Revert "Set WifiHAL to only log debug by default."" into nyc-dev

8 years agoMerge "Allow to force min sdk given to Jack" into nyc-dev
Sebastien Hertz [Thu, 14 Apr 2016 23:17:18 +0000 (23:17 +0000)]
Merge "Allow to force min sdk given to Jack" into nyc-dev

8 years agoSkip verifying the partition with no changed blocks.
Tao Bao [Thu, 14 Apr 2016 22:58:05 +0000 (15:58 -0700)]
Skip verifying the partition with no changed blocks.

For incremental BBOTAs, commit [1] changed to verify only the touched
blocks to reduce the update time. This CL fixes the bug when there's no
changed block between the two builds.

[1]: commit d522bdc9edbf64d15a59c6924853b2e2c8c39e90

Bug: 27813356
Bug: 28195498
Change-Id: Ia752d3cf034c544517458ed15df509d4596e21fa

8 years agoRevert "Set WifiHAL to only log debug by default."
mukesh agrawal [Thu, 14 Apr 2016 23:06:13 +0000 (16:06 -0700)]
Revert "Set WifiHAL to only log debug by default."

Recent changes have brought the log volumes for
the QCA WifiHAL down to reasonable levels. As
such, we no longer need to use a custom default
log level for WifiHAL.

This reverts commit f83213a5b5cd69dc816daa27cff6d03c4d75b5a4.

BUG=28178513
TEST=build, check log volume after >12 hours

8 years agoMerge "Makefile: Pack squashfs and f2fs tools into otatools.zip." into nyc-dev
Tao Bao [Thu, 14 Apr 2016 22:11:17 +0000 (22:11 +0000)]
Merge "Makefile: Pack squashfs and f2fs tools into otatools.zip." into nyc-dev

8 years agoAllow to force min sdk given to Jack
Yohann Roussel [Thu, 14 Apr 2016 19:51:46 +0000 (21:51 +0200)]
Allow to force min sdk given to Jack

Allows setting the min sdk version for target Jack commands,
overriding the default value obtained from LOCAL_SDK_CURRENT.

Bug: 28188420

(cherry picked from commit 109141ccc97d27cfc72affe3c45f3e6c2fb89702)

Change-Id: Id9c5275bc71b8d9042173bf1e40aa3199e9508e6

8 years agoMakefile: Pack squashfs and f2fs tools into otatools.zip.
Tao Bao [Thu, 14 Apr 2016 19:11:36 +0000 (12:11 -0700)]
Makefile: Pack squashfs and f2fs tools into otatools.zip.

The following tools are essential to create squashfs and f2fs images
during signing (if applicable).

squashfs: mksquashfs and mksquashfsimage.sh
f2fs: make_f2fs and mkf2fsuserimg.sh

Bug: 28179154
Change-Id: Ia48bc6d9a40d2667bc6f2c973bd0c55eed7a06fc

8 years agoReject Google's build of JDK.
Ying Wang [Wed, 13 Apr 2016 21:33:00 +0000 (14:33 -0700)]
Reject Google's build of JDK.

Bug: 28097637

(cherry picked from commit 22b23b9b00a3474c95cc314c33aa66a747be13e4)

Change-Id: Ieb809cdd0ba930b9ea65b8b0d31a81be112cc52e

8 years agoMerge "releasetools: Only verify the blocks to be touched." into nyc-dev
Tao Bao [Wed, 13 Apr 2016 23:59:36 +0000 (23:59 +0000)]
Merge "releasetools: Only verify the blocks to be touched." into nyc-dev

8 years agoMonotonic flag sets incorrectly in rangelib
Tianjie Xu [Fri, 8 Apr 2016 03:17:48 +0000 (20:17 -0700)]
Monotonic flag sets incorrectly in rangelib

After applying update_target_files_incr_ext4.sh, some files may end up
occupying unsorted block fragments. In one example, an apk file has the
block range [258768-259211,196604]. The monotonic flag in rangelib sets
incorrectly for this example and leads to a bad input file for imgdiff.
After fixing the flag, bsdiff is called instead of imgdiff and the
incremental OTA package generates successfully.

Bug:28053885
(cherry picked from commit cd1e16a7616092e5a315b0a421a0c082da144145)

Change-Id: If286eb382e59b3084a8313ae853b807e4648e5a2

8 years agoMerge "DO NOT MERGE Remove inputflinger from the nyc build." into nyc-dev
Michael Wright [Wed, 13 Apr 2016 16:57:13 +0000 (16:57 +0000)]
Merge "DO NOT MERGE Remove inputflinger from the nyc build." into nyc-dev

8 years agoreleasetools: Only verify the blocks to be touched.
Tao Bao [Tue, 12 Apr 2016 22:53:16 +0000 (15:53 -0700)]
releasetools: Only verify the blocks to be touched.

For incremental BBOTAs, we used to verify the integrity of all the
blocks in the source partition. In order to reduce the time cost under
recovery, this CL changes to only verify the blocks that will be touched
in the given OTA package (BBOTA >= 3 only). This is a trade-off between
performance and reliability.

Bug: 27813356
Change-Id: I3975ae6f461f0f7e58d24f1df7df46a449d2988b

8 years agoMerge "Remove post-install verification" into nyc-dev
Tianjie Xu [Tue, 12 Apr 2016 22:38:23 +0000 (22:38 +0000)]
Merge "Remove post-install verification" into nyc-dev

8 years agoMerge "Build: Add ART_BOOT_IMAGE_EXTRA_ARGS" into nyc-dev
Andreas Gampe [Tue, 12 Apr 2016 22:19:04 +0000 (22:19 +0000)]
Merge "Build: Add ART_BOOT_IMAGE_EXTRA_ARGS" into nyc-dev

8 years agoBuild: Add ART_BOOT_IMAGE_EXTRA_ARGS
Andreas Gampe [Mon, 11 Apr 2016 22:10:09 +0000 (15:10 -0700)]
Build: Add ART_BOOT_IMAGE_EXTRA_ARGS

Allow to modify the boot image compilation. Can be used to easily
dump initialization failures.

Bug: 27265238

(cherry picked from commit 907fb03273b6e432f113f3b414378e71f9f1cd06)

Change-Id: I9d54c562a2e623b23b7c1dea9cdbe303786c95dd

8 years agoInclude classes.jar with class files in aar.
Ying Wang [Tue, 12 Apr 2016 19:57:36 +0000 (12:57 -0700)]
Include classes.jar with class files in aar.

As we switched to Jack the LOCAL_BUILT_MODULE (javalib.jar) now
include .jayce files.

Change-Id: If802e02bb20a9e105ca9563e6fe483f7acce00e6

8 years agoMerge "Benchmark have their own folder" into nyc-dev
TreeHugger Robot [Tue, 12 Apr 2016 19:16:51 +0000 (19:16 +0000)]
Merge "Benchmark have their own folder" into nyc-dev

8 years agoRemove post-install verification
Tianjie Xu [Fri, 25 Mar 2016 22:01:33 +0000 (15:01 -0700)]
Remove post-install verification

post-install verification calls range_sha1() and checks if the given
partition has expected contents. It takes roughly 20 seconds on
angler with 2.8G system image. Remove it to speed up OTA update. Also
abort the update if block_image_update() fails, as we were relying on
post-install verification to capture block_image_update() failures.

Bug: 27729678
Change-Id: I8123cd8929295ec26df247acf6bb51df813771d9

8 years agoMerge "Revert "Merge "Resolve merge conflicts of a5f0068 to nyc-dev" into nyc-dev...
Trevor Johns [Tue, 12 Apr 2016 17:59:01 +0000 (17:59 +0000)]
Merge "Revert "Merge "Resolve merge conflicts of a5f0068 to nyc-dev" into nyc-dev"" into nyc-dev

8 years agoBenchmark have their own folder
Julien Desprez [Tue, 12 Apr 2016 09:22:06 +0000 (10:22 +0100)]
Benchmark have their own folder

Benchmark tests use a separate folder from native tests.

Bug: 27465556
Change-Id: Ife0f43062e36ffc856f41683ddc4d91a7787333e

8 years agoRevert "Merge "Resolve merge conflicts of a5f0068 to nyc-dev" into nyc-dev"
Trevor Johns [Tue, 12 Apr 2016 17:35:42 +0000 (10:35 -0700)]
Revert "Merge "Resolve merge conflicts of a5f0068 to nyc-dev" into nyc-dev"

This reverts commit 6edfbfabad1ddbda00e0fcc713672f6e63acdf44, reversing
changes made to e09b2c16e32cee89d6b5ac29fe5a905b76872179.

8 years agoDO NOT MERGE Remove inputflinger from the nyc build.
Michael Wright [Mon, 11 Apr 2016 02:10:28 +0000 (22:10 -0400)]
DO NOT MERGE Remove inputflinger from the nyc build.

Change-Id: Iba52bcb3f7089984333b63eb43ea9d8ad4522e55

8 years agoreleasetools: Use fixed timestamp in otacerts.zip.
Tao Bao [Tue, 12 Apr 2016 06:05:52 +0000 (23:05 -0700)]
releasetools: Use fixed timestamp in otacerts.zip.

We were using zipfile.write() to write system/etc/security/otacerts.zip
when signing for release. It led to unexpected timestamp change in the
generated otacerts.zip and non-idempotent signed images when signing the
same target_files.zip.

Replace with common.ZipWrite() to always use a fixed timestamp.

Bug: 28122968
Change-Id: Ia6cf4b7d380cbf72ed7050ebb60c932dc8826d87

8 years agoMerge "Add ext libs to core_tiny, they're needed for wear PDK" into nyc-dev
Tom Cherry [Tue, 12 Apr 2016 01:31:47 +0000 (01:31 +0000)]
Merge "Add ext libs to core_tiny, they're needed for wear PDK" into nyc-dev

8 years agoAdd ext libs to core_tiny, they're needed for wear PDK
Tom Cherry [Tue, 12 Apr 2016 00:06:59 +0000 (17:06 -0700)]
Add ext libs to core_tiny, they're needed for wear PDK

Bug: 27698377
Bug: 28117608
Change-Id: I12b93fe241d8d71d61d1cdb28d95e6c824e2420d

8 years agoMerge "Resolve merge conflicts of a5f0068 to nyc-dev" into nyc-dev
Trevor Johns [Mon, 11 Apr 2016 22:08:58 +0000 (22:08 +0000)]
Merge "Resolve merge conflicts of a5f0068 to nyc-dev" into nyc-dev

8 years agoResolve merge conflicts of a5f0068 to nyc-dev
Trevor Johns [Mon, 11 Apr 2016 21:36:41 +0000 (14:36 -0700)]
Resolve merge conflicts of a5f0068 to nyc-dev

Change-Id: Id0d573566abb989a173349ffaf01390cebd51607

8 years agoMerge "Add be and bs to l10n builds" into nyc-dev
Maurice Lam [Mon, 11 Apr 2016 21:35:46 +0000 (21:35 +0000)]
Merge "Add be and bs to l10n builds" into nyc-dev

8 years agoMerge "Ensure prebuilt executables are executable" into nyc-dev
Dan Willemsen [Mon, 11 Apr 2016 19:59:10 +0000 (19:59 +0000)]
Merge "Ensure prebuilt executables are executable" into nyc-dev

8 years agoEnsure prebuilt executables are executable
Dan Willemsen [Wed, 2 Mar 2016 06:04:57 +0000 (22:04 -0800)]
Ensure prebuilt executables are executable

Use 'chmod +x' to make sure that they're executable, even if the source
file is not.

Bug: 28097475
Change-Id: Id155f6b4ff188f5c909fd6237fd64183af264f79
(cherry picked from commit 08420cbc8ac7dabe1ceb6334ee83727e18a80d96)

8 years agoUpdate code coverage filtering
Sebastien Hertz [Wed, 6 Apr 2016 16:18:47 +0000 (18:18 +0200)]
Update code coverage filtering

Replaces old LOCAL_EMMA_COVERAGE_FILTER by new variables:
- LOCAL_JACK_COVERAGE_INCLUDE_FILTER for included classes
- LOCAL_JACK_COVERAGE_EXCLUDE_FILTER for excluded classes
Both variables can contain a comma-separated list of class names,
where * and ? are accepted wildcard (like foo.?ar.*).

When code coverage is enabled, we will use these variables to
pass code coverage filters on the Jack command-line.

Bug: 28014424

(cherry picked from commit 74ec3f49d199f538deca795f22e454638b4d7915)

Change-Id: Ie4253981c0e6a62422ab84dfd67ef5eebc0b0284

8 years agoPLATFORM_PREVIEW_SDK_VERSION = 3 for DP3
Ian Pedowitz [Fri, 8 Apr 2016 21:05:00 +0000 (14:05 -0700)]
PLATFORM_PREVIEW_SDK_VERSION = 3 for DP3

Bug: 27150977
Change-Id: I8f13cec505a73678fb605ee3bce00519d16c2f7e

8 years agoMerge "Use fs_config files for mksquashfs" into nyc-dev
Mohamad Ayyash [Fri, 8 Apr 2016 17:39:05 +0000 (17:39 +0000)]
Merge "Use fs_config files for mksquashfs" into nyc-dev

8 years agoUse fs_config files for mksquashfs
Mohamad Ayyash [Fri, 8 Apr 2016 05:10:51 +0000 (22:10 -0700)]
Use fs_config files for mksquashfs

BUG: 27467028
Change-Id: I7648030ad4b31d70a5d439e9552fd2cbfe288b74
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agoMerge "Add ext libs to AOSP - they are part of the system" into nyc-dev
Svetoslav Ganov [Thu, 7 Apr 2016 23:36:37 +0000 (23:36 +0000)]
Merge "Add ext libs to AOSP - they are part of the system" into nyc-dev

8 years agoAdd ext libs to AOSP - they are part of the system
Svetoslav Ganov [Thu, 7 Apr 2016 22:29:55 +0000 (15:29 -0700)]
Add ext libs to AOSP - they are part of the system

bug:27698377

Change-Id: Ic426e08e450598c53e4dbf9c734d808b19fae705

8 years agoMerge changes I8f95f3f8,Ic2e384ad into nyc-dev
Joe Onorato [Thu, 7 Apr 2016 18:34:43 +0000 (18:34 +0000)]
Merge changes I8f95f3f8,Ic2e384ad into nyc-dev

* changes:
  Add generation of a module-info.json file
  Remove unused module-info.txt generation.

8 years agoAdd generation of a module-info.json file
Joe Onorato [Wed, 6 Apr 2016 21:48:30 +0000 (14:48 -0700)]
Add generation of a module-info.json file

This outputs all of the modules that the build system knows about
for this invocation.

Change-Id: I8f95f3f8443c18f7898ce90e287432cbd2b6db6d

8 years agoRemove unused module-info.txt generation.
Joe Onorato [Wed, 6 Apr 2016 21:47:56 +0000 (14:47 -0700)]
Remove unused module-info.txt generation.

Change-Id: Ic2e384ad3e2bae8e76a98818c18a99bf5d427b0e

8 years agoMerge branch 'goog/mnc-mr-docs' into mnc-ub-dev
Trevor Johns [Wed, 6 Apr 2016 03:12:06 +0000 (20:12 -0700)]
Merge branch 'goog/mnc-mr-docs' into mnc-ub-dev

Large merge to reconnect automerger for docs branch to mainline.

 Conflicts:
tools/droiddoc/templates-sdk/assets/css/default.css
tools/droiddoc/templates-sdk/sdkpage.cs

Issue: 28000173
Change-Id: If04c741090d99d384981b8b3554edc58eb82dd0e

8 years agoTabs js error fix, DevSite css issues fix, Search filtering
Amanda Kassay [Thu, 31 Mar 2016 14:03:57 +0000 (10:03 -0400)]
Tabs js error fix, DevSite css issues fix, Search filtering

Staged: http://akassay.nyc.corp.google.com:8080/index.html#q=Activity
Change-Id: Id25525a8d8c927ea67cd13b43652d75ce53733cf

8 years agonew styles and tab-highlighting to support custom Android Studio site design
smain@google.com [Mon, 4 Apr 2016 23:47:28 +0000 (16:47 -0700)]
new styles and tab-highlighting to support custom Android Studio site design

Change-Id: I27d11f4526ba79bce8deb5102cc2afbe34a0e116

8 years agoMerge "Fix code coverage for apps" into nyc-dev
Sebastien Hertz [Tue, 5 Apr 2016 07:11:48 +0000 (07:11 +0000)]
Merge "Fix code coverage for apps" into nyc-dev

8 years agotweak the NDK download analytics event tag
smain@google.com [Mon, 4 Apr 2016 23:17:01 +0000 (16:17 -0700)]
tweak the NDK download analytics event tag

Change-Id: I822d744f7f370330a26f0ff612de357dbe1005fe

8 years agoMerge "Always build squashfs host tools" into nyc-dev
Mohamad Ayyash [Mon, 4 Apr 2016 19:46:47 +0000 (19:46 +0000)]
Merge "Always build squashfs host tools" into nyc-dev

8 years agoUpdate modal download dialogs for sdk/ndk download.
Dirk Dougherty [Thu, 28 Jan 2016 16:32:47 +0000 (08:32 -0800)]
Update modal download dialogs for sdk/ndk download.
Revise the redirect behavior once download completes.
Add more appropriate title and download message when installing SDK tools only.
Force refresh when the Studio download dialog is dismissed, to avoid leaving the dialog in stale state.
Add styles for the Studio download page.

Change-Id: Ibc4ddb4a6130ab8bd8d6044472022465829f2000

8 years agoAlways build squashfs host tools
Mohamad Ayyash [Mon, 4 Apr 2016 19:31:41 +0000 (12:31 -0700)]
Always build squashfs host tools

Now that mac compatibility has been fixed

BUG: 27657762
Change-Id: I49933ccedf74b9d172967dad721971a752047da6
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agoAdd be and bs to l10n builds
Maurice Lam [Fri, 1 Apr 2016 18:59:30 +0000 (11:59 -0700)]
Add be and bs to l10n builds

Bug: 27409618
Change-Id: I244796a12d756521f8191abcacf1f15134079783

8 years agoAdd vts to build in ninja
Julien Desprez [Fri, 1 Apr 2016 14:39:48 +0000 (15:39 +0100)]
Add vts to build in ninja

Bug: 27687012
Change-Id: Icb94e3eee71a8f54f13f868fa2461b2063e7ca6d

8 years agoincrement version for fetched js and cs files to avoid proxy caching.
Dirk Dougherty [Thu, 31 Mar 2016 22:59:09 +0000 (15:59 -0700)]
increment version for fetched js and cs files to avoid proxy caching.

Change-Id: I427151284bf6777adb04e85b07b9b70355f8f7a2

8 years agoMerge "[RenderScript] Update the build rules for x86_64 support lib." into nyc-dev
Miao Wang [Thu, 31 Mar 2016 22:25:09 +0000 (22:25 +0000)]
Merge "[RenderScript] Update the build rules for x86_64 support lib." into nyc-dev

8 years agoDO NOT MERGE ANYWHERE - Add libbase to otatools
Johan Redestig [Thu, 24 Mar 2016 12:57:03 +0000 (13:57 +0100)]
DO NOT MERGE ANYWHERE - Add libbase to otatools

build_verity_tree uses libbase since b104044.

Change-Id: I6d3406a107ceb6cd58d1a51aa79935209d4c435f

8 years ago[RenderScript] Update the build rules for x86_64 support lib.
Miao Wang [Wed, 30 Mar 2016 20:29:42 +0000 (13:29 -0700)]
[RenderScript] Update the build rules for x86_64 support lib.

Bug: 19735423

  - Unlike other archs, x86_64 has both usr/lib and usr/lib64. we need
    to search for libm.so and libc.so in lib64/. Otherwise the linker
    will report error.

Change-Id: I2859bee066a9eb100828d90da8adf0f9817d77e6

8 years agoMerge "Add core-lambda-stubs to default classpath for target libs compiling using...
Ying Wang [Thu, 31 Mar 2016 18:06:27 +0000 (18:06 +0000)]
Merge "Add core-lambda-stubs to default classpath for target libs compiling using javac" into nyc-dev

8 years agoMigrating web search api to custom search api on templates-sdk
Amanda Kassay [Thu, 17 Mar 2016 18:11:13 +0000 (14:11 -0400)]
Migrating web search api to custom search api on templates-sdk

akassay.nyc.corp.google.com:9000/#q=mobile
Change-Id: I71bdc7dbfede7bff0361ce00abef8081b852dd36

8 years agoFix code coverage for apps
Sebastien Hertz [Thu, 31 Mar 2016 14:48:26 +0000 (16:48 +0200)]
Fix code coverage for apps

When building apps with EMMA_INSTRUMENT=true, we must ensure that
jacoco is at least on the classpath (or even embedded for unbundled
branches) and that proguard will ignore jacoco classes. Otherwise
the Jack compilation would fail.

For unbundled build, we include the proguard configuration file
build/core/proguard.jacoco.flags to ignore jacoco classes.

For full build, we ensure jacoco is on the classpath during the
jack compilation.

Bug: 27607712
Change-Id: I0ad37d74e63028a8144a125f052dc1c5fa10fc66

8 years agoMerge "Rename emma coverage files" into nyc-dev
Sebastien Hertz [Thu, 31 Mar 2016 06:58:30 +0000 (06:58 +0000)]
Merge "Rename emma coverage files" into nyc-dev

8 years agoMerge "Add PrintServiceRecommendationService to the default distro" into nyc-dev
Philip P. Moltmann [Thu, 31 Mar 2016 01:33:15 +0000 (01:33 +0000)]
Merge "Add PrintServiceRecommendationService to the default distro" into nyc-dev

8 years agoMerge "Build: Switch eng build boot dexopt to verify-at-runtime" into nyc-dev
Andreas Gampe [Wed, 30 Mar 2016 23:05:59 +0000 (23:05 +0000)]
Merge "Build: Switch eng build boot dexopt to verify-at-runtime" into nyc-dev

8 years agoMerge changes Ib0fdae2e,Ib8b9e0f8 into nyc-dev
Colin Cross [Wed, 30 Mar 2016 22:18:33 +0000 (22:18 +0000)]
Merge changes Ib0fdae2e,Ib8b9e0f8 into nyc-dev

* changes:
  Handle symlinked OUT_DIRs (again)
  Handle out being a symlink

8 years agonew search results layout.
smain@google.com [Wed, 16 Mar 2016 18:30:53 +0000 (11:30 -0700)]
new search results layout.
no more custom suggestions; just API matches and organic results.

Change-Id: I6324aa6fb289f5d93aa701aecbd7fad64711d35f

8 years agoremove dev guide search suggestions, move organic search results up.
smain@google.com [Sat, 27 Feb 2016 00:30:50 +0000 (16:30 -0800)]
remove dev guide search suggestions, move organic search results up.
tweak the search suggest for reference pages

Change-Id: I14e48fdac3f103dd998591886b91e5f6040b0f7a

8 years agoBuild: Switch eng build boot dexopt to verify-at-runtime
Andreas Gampe [Wed, 30 Mar 2016 19:18:34 +0000 (12:18 -0700)]
Build: Switch eng build boot dexopt to verify-at-runtime

To have faster turnaround.

Bug: 26794212
Change-Id: I1d7877ec8c9cfff62bf14cbd23a790ee7a0b2734

8 years agoHandle symlinked OUT_DIRs (again)
Dan Willemsen [Tue, 22 Mar 2016 21:44:17 +0000 (14:44 -0700)]
Handle symlinked OUT_DIRs (again)

My previous attempt at properly handling symlinked OUT_DIRs only worked
if the symlink was to a different directory, not one in the same
directory.

This time, make sure that both make and soong use the same
representation of the output directory by passing BUILDDIR to
bootstrap.bash. Soong has been updated to pick whether to use a relative
or absolute path back to the source tree depending on what makes sense.
If the BUILDDIR or the path back to the source tree change, re-run the
bootstrap.

Also, move the $OUT_DIR/Android.mk and $OUT_DIR/CleanSpec.mk generation
to before Kati runs. In the case that $TOP/out was symlinked to
$TOP/out.angler:

 1) Soong generates out.angler/soong/Android.mk
 2) Kati's find generator produces in-memory tree of the filesystem
 3) $(shell ) creates out.angler/Android.mk
 4) The emulated findleaves Android.mk search finds
    out.angler/soong/Android.mk since the in-memory tree is never updated.

This doesn't happen in the normal case, because we pass --prune=$OUT_DIR
to findleaves.

Change-Id: Ib0fdae2e80f75ddcf33a3c8c5ea0978f5308b437
(cherry picked from commit cc60f013576627bee37cd4d6c58bf740d35d0434)
[ccross: resolved conflicts in nyc-dev]

8 years agoHandle out being a symlink
Dan Willemsen [Sat, 12 Mar 2016 00:11:25 +0000 (16:11 -0800)]
Handle out being a symlink

Soong needs to be able to reverse the relative path to out. Switch to
absolute paths if .. won't work because of out being a symlink to
somewhere else.

Bug: 27612837
Change-Id: Ib8b9e0f80523148cfd4b69a03d164578916d8fd5
(cherry picked from commit d53c0c7b45c3b18949fc62b784a8e8a877323493)
[ccross: resolved conflicts in nyc-dev]

8 years agoAdd core-lambda-stubs to default classpath for target libs compiling using javac
Neil Fuller [Fri, 19 Feb 2016 10:37:22 +0000 (10:37 +0000)]
Add core-lambda-stubs to default classpath for target libs compiling using javac

In order to compile lambda code javac requires various invokedynamic-
related classes to be present. This change adds stubs needed for
javac to compile lambdas.

Bug: 27475234
Bug: 26753820
Bug: 26604040
Change-Id: Ifc79eebabfc6b64c0daf6b9ca236d1967a45a735

8 years agoRename emma coverage files
Sebastien Hertz [Fri, 25 Mar 2016 16:11:38 +0000 (17:11 +0100)]
Rename emma coverage files

We no longer use emma with Jack. However, during the process of a
full build, we may run the emma task and overwrite the coverage file
generated by Jack with the one from emma because they use the same
filename.

This CL renames coverage files generated by emma so they no longer
break those created by Jack.

Keep coverage.em file name for host rules where Jack is not called.

Bug: 27822188

(cherry picked from commit 491c9ce48add521e7c0cdbe1c1fa7ea392b775a5
&& commit 8f0e52c3a66b4c493f0d133e00591ae7d376eb49)

Change-Id: I26beee5a8d42a2ef1d476661e4b591fb09f1276f

8 years agoMerge "Set PRIVATE_TARGET_AAPT_CHARACTERISTICS even when running with the old aapt...
Ying Wang [Tue, 29 Mar 2016 21:31:24 +0000 (21:31 +0000)]
Merge "Set PRIVATE_TARGET_AAPT_CHARACTERISTICS even when running with the old aapt" into nyc-dev

8 years agoMerge "Only add jacocoagent if the package contains some java code." into nyc-dev
Allen Hair [Tue, 29 Mar 2016 21:18:24 +0000 (21:18 +0000)]
Merge "Only add jacocoagent if the package contains some java code." into nyc-dev

8 years agoAdding book metadata to doc head, fix tabs for content build,
Amanda Kassay [Tue, 29 Mar 2016 20:11:01 +0000 (16:11 -0400)]
Adding book metadata to doc head, fix tabs for content build,
fix for reference page double footer.

Change-Id: I8e721c60e21203b599779e31f48336d450a53fa3

8 years agoSet PRIVATE_TARGET_AAPT_CHARACTERISTICS even when running with the old aapt
Ying Wang [Tue, 29 Mar 2016 19:41:42 +0000 (12:41 -0700)]
Set PRIVATE_TARGET_AAPT_CHARACTERISTICS even when running with the old aapt

In commit e758f9319dcb6cc9693af03cc03d385167a35a8d we switched from
TARGET_AAPT_CHARACTERISTICS to PRIVATE_TARGET_AAPT_CHARACTERISTICS in
add-assets-to-package but forgot to set the variable when we are running
the old aapt.

Bug: 27874886
Change-Id: I03ced3030dcb9f024eef5b23dbfd5d99157952ea

8 years agoRemove -d keepdepfile from ninja command line DO NOT MERGE
Colin Cross [Tue, 29 Mar 2016 17:47:51 +0000 (10:47 -0700)]
Remove -d keepdepfile from ninja command line DO NOT MERGE

keepdepfile is not supported by the ninja prebuilt in nyc-dev.

Bug: 27886012
Change-Id: Ia4f0b15916618b1b7caa2abb53e25f87737b5288

8 years agoReplace last -includes by .KATI_DEPFILE
Shinichiro Hamaji [Tue, 15 Mar 2016 21:40:04 +0000 (06:40 +0900)]
Replace last -includes by .KATI_DEPFILE

There was a typo in binary.mk. compile-dotdot-XXX-file in
definitions.mk was also using -include.

Bug: 26839129
Bug: 27886012
Change-Id: I4a0145fb70413998cc65d30d2efcd68af07b4800
(cherry picked from commit 72904774a35d395116bb784b5d2adc1a8d637e8e)

8 years agoUse KATI_DEPFILE for .P associated with object files
Shinichiro Hamaji [Thu, 3 Mar 2016 09:12:52 +0000 (18:12 +0900)]
Use KATI_DEPFILE for .P associated with object files

Also specify "-d keepdepfile" to ninja so .P files won't be
deleted by ninja.

-include for .s files are removed because GCC doesn't
generate .d files for .s files.

Bug: 26839129
Bug: 27886012
Change-Id: If00e93c7a33449ec314a5cdba438475a32979f4e
(cherry picked from commit 4037c4225a484130a5510671e788794d23204262)

8 years agoAdd PrintServiceRecommendationService to the default distro
Philip P. Moltmann [Mon, 14 Mar 2016 22:02:57 +0000 (15:02 -0700)]
Add PrintServiceRecommendationService to the default distro

Bug: 24533249
Change-Id: I0736b842c813c63924d026b2ab5d5e92ff92df76

8 years agoAdd ability to package verifiedboot keys
Baligh Uddin [Mon, 28 Mar 2016 20:07:14 +0000 (13:07 -0700)]
Add ability to package verifiedboot keys

8 years agoOnly add jacocoagent if the package contains some java code.
Allen Hair [Mon, 28 Mar 2016 19:52:37 +0000 (12:52 -0700)]
Only add jacocoagent if the package contains some java code.

Bug: 27877982
Change-Id: I8bf05d67a823402e7e488990753cc9005ec5e90b

8 years agoBuild: Add first-boot dexopt settings defaults
Andreas Gampe [Sat, 26 Mar 2016 00:02:05 +0000 (17:02 -0700)]
Build: Add first-boot dexopt settings defaults

Needed for factory-reset/first-boot/upgrade to N.

Bug: 27689078
Change-Id: I010e38c8a10445f87e95e1ff8d9daf1d051f2b06

8 years agoMerge "Set WifiHAL to only log debug by default." into nyc-dev
Joe Onorato [Sat, 26 Mar 2016 00:36:02 +0000 (00:36 +0000)]
Merge "Set WifiHAL to only log debug by default." into nyc-dev

8 years agoSet WifiHAL to only log debug by default.
Joe Onorato [Fri, 25 Mar 2016 22:33:32 +0000 (15:33 -0700)]
Set WifiHAL to only log debug by default.

This is not the proper way to really fix this, but it is the best thing to
do in the time period we have for N.  In the future they will be moving
more to a dumpsys style approach.

Change-Id: I98ec7928cd93a3edfb93cdbf3703132ac6658699

8 years agoLink everything in libpthread.a to ckati
Shinichiro Hamaji [Fri, 26 Feb 2016 07:58:13 +0000 (16:58 +0900)]
Link everything in libpthread.a to ckati

With this workaround, we can delete a lot of unnecessary code
in ckati: https://github.com/google/kati/commit/8380fb8525adfb5

Bug: 26839129
Change-Id: I3de1bf4cd6f2a65ee9322e8504459621871612fc
(cherry picked from commit f4511161d505681f4c5d4ff356fe61f4b78e7cf6)

8 years agoMerge "Ignore Android.mk files with USE_SOONG=true" into nyc-dev
Colin Cross [Fri, 25 Mar 2016 19:54:29 +0000 (19:54 +0000)]
Merge "Ignore Android.mk files with USE_SOONG=true" into nyc-dev

8 years agoMerge "Emulator: Bump mips(64) system image partition size to 1.75 GB." into nyc-dev
Prathmesh Prabhu [Fri, 25 Mar 2016 17:18:21 +0000 (17:18 +0000)]
Merge "Emulator: Bump mips(64) system image partition size to 1.75 GB." into nyc-dev

8 years agoUse $(BUILD_SYSTEM) as the LOCAL_PATH of auto-generated modules.
Ying Wang [Fri, 25 Mar 2016 00:24:38 +0000 (17:24 -0700)]
Use $(BUILD_SYSTEM) as the LOCAL_PATH of auto-generated modules.

So that we don't mess up with the vendor path check by accident.

Bug: 27543283
Change-Id: I6c34caefe3ff4abfdd8349a32c68fcca524cfd8e

8 years agoEmulator: Bump mips(64) system image partition size to 1.75 GB.
Prathmesh Prabhu [Thu, 24 Mar 2016 20:38:06 +0000 (13:38 -0700)]
Emulator: Bump mips(64) system image partition size to 1.75 GB.

BUG:27834040
Change-Id: I71861b023e8155df951036053ab0561e153d04fd
(cherry picked from commit 8a17ace10e709ce40fa75359aaba3eacb794be18)

8 years agoIgnore Android.mk files with USE_SOONG=true
Colin Cross [Mon, 11 Jan 2016 20:33:23 +0000 (12:33 -0800)]
Ignore Android.mk files with USE_SOONG=true

When USE_SOONG=true, ignore any Android.mk file that has an Android.bp
file in the same directory.

Change-Id: Id79bd90c2aed5dafc2f8ad2c5b7eb0aa6e81dc18
(cherry picked from commit 861ab99536bf1a7a3b15dd08c17b9047fc88014b)

8 years agoMerge "Fix bug in APK entry alignment." into nyc-dev
Alex Klyubin [Thu, 24 Mar 2016 18:26:53 +0000 (18:26 +0000)]
Merge "Fix bug in APK entry alignment." into nyc-dev

8 years agoMerge "Adjust the size limit for splitting large files" into mnc-dr-dev am: 7d55185...
Tianjie Xu [Thu, 24 Mar 2016 17:24:33 +0000 (17:24 +0000)]
Merge "Adjust the size limit for splitting large files" into mnc-dr-dev am: 7d55185 am: 2c355a1
am: 8c6a2a6

* commit '8c6a2a601260b7433f792ebc2529e2d90e9cdae9':
  Adjust the size limit for splitting large files

8 years agoMerge "Adjust the size limit for splitting large files" into mnc-dr-dev am: 7d55185
Tianjie Xu [Thu, 24 Mar 2016 17:22:07 +0000 (17:22 +0000)]
Merge "Adjust the size limit for splitting large files" into mnc-dr-dev am: 7d55185
am: 2c355a1

* commit '2c355a15bed912df7c77e9738d03d84f5a200194':
  Adjust the size limit for splitting large files

8 years agoMerge "Adjust the size limit for splitting large files" into mnc-dr-dev
Tianjie Xu [Thu, 24 Mar 2016 17:19:42 +0000 (17:19 +0000)]
Merge "Adjust the size limit for splitting large files" into mnc-dr-dev
am: 7d55185

* commit '7d551850ddea337b2b35938012e0d13a38c6af65':
  Adjust the size limit for splitting large files

8 years agoMerge "Adjust the size limit for splitting large files" into mnc-dr-dev
Tao Bao [Thu, 24 Mar 2016 17:12:00 +0000 (17:12 +0000)]
Merge "Adjust the size limit for splitting large files" into mnc-dr-dev

8 years agoFix bug in APK entry alignment.
Alex Klyubin [Wed, 23 Mar 2016 20:05:27 +0000 (13:05 -0700)]
Fix bug in APK entry alignment.

APK entry alignment logic assumes that input entries have zero-length
comment and extra fields. When the assumption is broken, the logic
silently breaks alignment of output entries. This happens, for
example, when the APK to be signed is already aligned and thus may
contain entries with non-empty extra fields.

Given that APKs are not supposed to use comment and extra fields for
anything useful and given that this signer already discards comment
and extra fields of compressed entries, this change makes the signer
discard comment and extra fields of STORED input entries as well.
This unbreaks the existing alignment logic.

Bug: 27814973

(cherry picked from commit 37a0ecd32935685151f0cfb5a5466e6e360a0b8f)

Change-Id: If2e0df6d3298e9736ef175bb0d9a05d450164c9f

8 years agoAdjust the size limit for splitting large files
Tianjie Xu [Thu, 14 Jan 2016 00:14:10 +0000 (16:14 -0800)]
Adjust the size limit for splitting large files

Modify the number of max blocks per transfer to reduce splitting of
large files during patch generation. This will reduce the size of
final incremental OTA updater package. In specific, the size limit
for each file to transfer is set to 1/8 cachesize instead of a fix
number.

Bug: 26472126

Change-Id: Iffb135e378c4c7a91640f2fc4c40e9e93d1fe4bb
(cherry picked from commit bb86e1d9c298940a11da0a3d47ed40f7b709194d)

8 years agoBuild: Provide default values for dexopt settings
Andreas Gampe [Wed, 23 Mar 2016 02:44:24 +0000 (19:44 -0700)]
Build: Provide default values for dexopt settings

Provide default values for system properties used by the package
manager.

Bug: 27689078
Change-Id: Iedab0c0b1da6c905658546df7992f77fd6b55da1

8 years agoUpdate Security String to 2016-05-01 in preparation for May 2016 Security OTA am...
Zach Jang [Wed, 23 Mar 2016 01:10:42 +0000 (01:10 +0000)]
Update Security String to 2016-05-01 in preparation for May 2016 Security OTA am: 175b780 am: 274e483 am: 08d9bea am: 6bbd684 am: f32d07d am: 0cf7987
am: ae7c301

* commit 'ae7c3010265171b2c215c5a30049320ba50265a7':
  Update Security String to 2016-05-01 in preparation for May 2016 Security OTA

8 years agoUpdate Security String to 2016-05-01 in preparation for May 2016 Security OTA am...
Zach Jang [Wed, 23 Mar 2016 01:07:14 +0000 (01:07 +0000)]
Update Security String to 2016-05-01 in preparation for May 2016 Security OTA am: 175b780 am: 274e483 am: 08d9bea am: 6bbd684 am: f32d07d
am: 0cf7987

* commit '0cf7987b7e96d2178fbb028e36992ffb1b589b38':
  Update Security String to 2016-05-01 in preparation for May 2016 Security OTA

8 years agoUpdate Security String to 2016-05-01 in preparation for May 2016 Security OTA am...
Zach Jang [Wed, 23 Mar 2016 01:03:47 +0000 (01:03 +0000)]
Update Security String to 2016-05-01 in preparation for May 2016 Security OTA am: 175b780 am: 274e483 am: 08d9bea am: 6bbd684
am: f32d07d

* commit 'f32d07dd9328401525e333a34464a1d1f363e524':
  Update Security String to 2016-05-01 in preparation for May 2016 Security OTA

8 years agoUpdate Security String to 2016-05-01 in preparation for May 2016 Security OTA am...
Zach Jang [Wed, 23 Mar 2016 01:00:15 +0000 (01:00 +0000)]
Update Security String to 2016-05-01 in preparation for May 2016 Security OTA am: 175b780 am: 274e483 am: 08d9bea
am: 6bbd684

* commit '6bbd684464a1307f074e6c173a9147d6e2a626f1':
  Update Security String to 2016-05-01 in preparation for May 2016 Security OTA