OSDN Git Service

android-x86/build.git
9 years agoMerge "Revert "Fix and cleanup."" into mnc-dev
Ying Wang [Fri, 8 May 2015 18:51:21 +0000 (18:51 +0000)]
Merge "Revert "Fix and cleanup."" into mnc-dev

9 years agoRevert "Fix and cleanup."
Ying Wang [Fri, 8 May 2015 18:51:00 +0000 (18:51 +0000)]
Revert "Fix and cleanup."

This reverts commit f28bad5227dd566395e458b5266e716d7fa5f958.

Change-Id: Ib64936457a1236fabbe7c6b9c56f52ef650342e7

9 years agoMerge "Fix and cleanup." into mnc-dev
Ying Wang [Fri, 8 May 2015 18:11:55 +0000 (18:11 +0000)]
Merge "Fix and cleanup." into mnc-dev

9 years agoMerge "Fix Mac build." into mnc-dev
Ying Wang [Fri, 8 May 2015 03:59:15 +0000 (03:59 +0000)]
Merge "Fix Mac build." into mnc-dev

9 years agoFix Mac build.
Ying Wang [Fri, 8 May 2015 03:57:56 +0000 (20:57 -0700)]
Fix Mac build.

Mac doesn't like "cp -r -L", but "cp -R -L".

Change-Id: I32bd8e5171db4ed811e158d91482671b14622825

9 years agoFix and cleanup.
Ying Wang [Thu, 7 May 2015 23:53:13 +0000 (16:53 -0700)]
Fix and cleanup.

- Detect java-source-list before transforming to java-source-list-uniq.
  This fixes non-fatal errors in build log like:
  /bin/bash:
  out/target/common/obj/APPS/android.core.tests.libcore.package.tzdata_intermediates/classes/java-source-list:
  No such file or directory
- Cleaned the outdated incrementaljavac. Nobody is using this feature
  and now we switched to jack.

Change-Id: If1adb9b5820d9b295a11984c0f170f9a7ff4de7b

9 years agoDo not pack relocations for executables
Dmitriy Ivanov [Wed, 29 Apr 2015 19:13:37 +0000 (12:13 -0700)]
Do not pack relocations for executables

Bug: http://b/20665974
Change-Id: Ibc13b5d6bd05dfbc7ff8475068fe7363f58e7e67
(cherry picked from commit e24b6f77ffba8f7d9c2a7acbb7a0b748197d48c4)

9 years agoRevert "Switch from Calculator to ExactCalculator"
Robin Lee [Thu, 7 May 2015 14:55:48 +0000 (14:55 +0000)]
Revert "Switch from Calculator to ExactCalculator"

Temporary revert to get TT builds in shape.

This reverts commit 846505dc35bb155c1c2cf54d407a946e8f732494.

Bug: 20745303
Change-Id: Id3455cba38b7aabaffa63c8531a6430f69897c6e

9 years agoam c4ef9bb0: am a9d796a4: docs: Add navigation heading for Develop > Preview
Joe Fernandez [Thu, 7 May 2015 06:42:07 +0000 (06:42 +0000)]
am c4ef9bb0: am a9d796a4: docs: Add navigation heading for Develop > Preview

* commit 'c4ef9bb08f504c3ca58727403f607cd051edbf5d':
  docs: Add navigation heading for Develop > Preview

9 years agoam a9d796a4: docs: Add navigation heading for Develop > Preview
Joe Fernandez [Thu, 7 May 2015 06:29:59 +0000 (06:29 +0000)]
am a9d796a4: docs: Add navigation heading for Develop > Preview

* commit 'a9d796a4f9e198f17de6f1a27264b1b4fc9a778a':
  docs: Add navigation heading for Develop > Preview

9 years agodocs: Add navigation heading for Develop > Preview
Joe Fernandez [Wed, 6 May 2015 05:07:42 +0000 (22:07 -0700)]
docs: Add navigation heading for Develop > Preview

Change-Id: I133672c6ecb5e778f49c31d091812ed7b6dc6b24

9 years agoMerge "DO NOT MERGE Remove RecyclerView tests form pathmap" into mnc-dev
Yigit Boyar [Thu, 7 May 2015 01:40:09 +0000 (01:40 +0000)]
Merge "DO NOT MERGE Remove RecyclerView tests form pathmap" into mnc-dev

9 years agoDO NOT MERGE Remove RecyclerView tests form pathmap
Yigit Boyar [Thu, 30 Apr 2015 02:34:56 +0000 (19:34 -0700)]
DO NOT MERGE Remove RecyclerView tests form pathmap

Bug: 20675894
Change-Id: Ia482c860b7c02f1c37b94c961cf283754c60cbcc
(cherry picked from commit a85c85ae370be73fbc920177c87e739d7353059b)

9 years agoRevert "Build docs for android-support-media-protocols.jar."
Jeff Brown [Tue, 5 May 2015 03:07:11 +0000 (20:07 -0700)]
Revert "Build docs for android-support-media-protocols.jar."

This reverts commit 5d0da1f959c5f9f38def94d76cdf0cddf52e3edf.

Bug: 20641986
Change-Id: I68d79186179b8b542b323ab630c6ed7620eb6f27

9 years agoam e94fcf31: am 29e93436: Swap templates-sdk and templates-sdk-dev files to enable...
Dirk Dougherty [Wed, 6 May 2015 17:13:01 +0000 (17:13 +0000)]
am e94fcf31: am 29e93436: Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.

* commit 'e94fcf31a08a7cce45171b5f8cce29b50d2cefd8':
  Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.

9 years agoam 29e93436: Swap templates-sdk and templates-sdk-dev files to enable redesign builds...
Dirk Dougherty [Wed, 6 May 2015 17:00:22 +0000 (17:00 +0000)]
am 29e93436: Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.

* commit '29e934367b927fb13417bee77008600ad5a39dcc':
  Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.

9 years agoSwap templates-sdk and templates-sdk-dev files to enable redesign builds by default.
Dirk Dougherty [Wed, 6 May 2015 01:17:13 +0000 (18:17 -0700)]
Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.

Change-Id: I9eabbbcd823fb29bd2209172c458cb9dad5f24d2

9 years agoUpgrade x86 gcc to 4.9 and disable devirtualization.
Chih-Hung Hsieh [Fri, 1 May 2015 21:53:59 +0000 (14:53 -0700)]
Upgrade x86 gcc to 4.9 and disable devirtualization.

Also filter out gcc-only flags -Wno-clobbered and -fno-devirtualize
when compiled with clang/llvm.

BUG: 19872411
Change-Id: I6de57583be04da607f569df65e93531787dbb789
(cherry picked from AOSP commit 90036610ddfe0455553a1b46bb8adbeafde0cac1)

9 years agoRaise SDK version for ProGuard processing when app links support library.
Ying Wang [Tue, 5 May 2015 02:21:48 +0000 (19:21 -0700)]
Raise SDK version for ProGuard processing when app links support library.

When an app's LOCAL_SDK_VERSION is lower than the support library's
LOCAL_SDK_VERSION,  we artifically raises the "SDK version" "linked"
by ProGuard, to
- suppress ProGuard warnings of referencing symbols unknown to the
  lower SDK version.
- prevent ProGuard stripping subclass in the support library that
  extends class added in the higher SDK version.

This allows us to remove the dangerous ProGuard flag
"-dontwarn android.support.**".

Notes:
- We don't raise the app's LOCAL_SDK_VERSION, so that the app's own
  code is still unable to use the higher SDK version.
- For platform build, we can't just raise to the "current" SDK,
  because would break apps that use APIs removed from the current SDK.
  We raise it to framework.jar instead, which contains the most complete
  symbol set.

Bug: 20658265
Change-Id: I90099073457a65cb8031fbaec6b396d68ce614a7
(cherry picked from commit 8e8d1e7abadb53d5dcb211fac6ab6ed20f5dc9ac)

9 years agoam e99d5320: am 032a4946: Doc change: css/js, assets for landing page, header/footer...
Dirk Dougherty [Tue, 5 May 2015 02:35:03 +0000 (02:35 +0000)]
am e99d5320: am 032a4946: Doc change: css/js, assets for landing page, header/footer designs.

* commit 'e99d5320dd70de6f5ada67dd0c2dd9761e6a6c32':
  Doc change: css/js, assets for landing page, header/footer designs.

9 years agoam 032a4946: Doc change: css/js, assets for landing page, header/footer designs.
Dirk Dougherty [Tue, 5 May 2015 02:23:28 +0000 (02:23 +0000)]
am 032a4946: Doc change: css/js, assets for landing page, header/footer designs.

* commit '032a494654978c3ceed73268f99615ff3d0d686e':
  Doc change: css/js, assets for landing page, header/footer designs.

9 years agoam 55abf4c2: am ff233cc9: Doc change: remove deprecated templates-sdk-dyn files,...
Dirk Dougherty [Tue, 5 May 2015 01:48:10 +0000 (01:48 +0000)]
am 55abf4c2: am ff233cc9: Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.

* commit '55abf4c22d08693cfb2838a79654fc32c7de3ff8':
  Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.

9 years agoDoc change: css/js, assets for landing page, header/footer designs.
Dirk Dougherty [Tue, 5 May 2015 01:17:33 +0000 (18:17 -0700)]
Doc change: css/js, assets for landing page, header/footer designs.

Change-Id: I9430a725bd7ba12cb0ac7da1a5ed9c3bfa8e321e

9 years agoam ff233cc9: Doc change: remove deprecated templates-sdk-dyn files, add new developme...
Dirk Dougherty [Tue, 5 May 2015 01:04:31 +0000 (01:04 +0000)]
am ff233cc9: Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.

* commit 'ff233cc92e379d501d8b256ba9a015827d77e012':
  Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.

9 years agoam 657b2971: am fa6ee37f: am 53b98761: docs: fix sticky header hiding RenderScript...
Joe Fernandez [Mon, 4 May 2015 22:19:28 +0000 (22:19 +0000)]
am 657b2971: am fa6ee37f: am 53b98761: docs: fix sticky header hiding RenderScript reference headings

* commit '657b2971f8a6f4a1b6dac68915c557304970d716':
  docs: fix sticky header hiding RenderScript reference headings

9 years agoam 63904d26: am 03b107c8: docs: update masthead template for Preview docs
Joe Fernandez [Mon, 4 May 2015 22:19:27 +0000 (22:19 +0000)]
am 63904d26: am 03b107c8: docs: update masthead template for Preview docs

* commit '63904d26ad473d8446fea12775ef37e9ae2c8e59':
  docs: update masthead template for Preview docs

9 years agoDoc change: remove deprecated templates-sdk-dyn files, add new development files...
Dirk Dougherty [Mon, 4 May 2015 21:37:05 +0000 (14:37 -0700)]
Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.

Change-Id: I5a94aaa8ba375010191a12f210954c22395fed40

9 years agoMerge "Pack module before making symbolic version" into mnc-dev
Dmitriy Ivanov [Mon, 4 May 2015 20:11:08 +0000 (20:11 +0000)]
Merge "Pack module before making symbolic version" into mnc-dev

9 years agoPack module before making symbolic version
Dmitriy Ivanov [Sat, 2 May 2015 01:12:29 +0000 (18:12 -0700)]
Pack module before making symbolic version

  We need PT_LOAD segments to match for the gdb sake.
  If we pack module after stripping symbolic version
  PT_LOAD differ from actual ones; this confuses gdb.

Bug: http://b/20687795
Change-Id: If7b1ffcda918d0cc47051a30ca1202007ed62403

9 years agoMerge "Revert "Don't extract jni from prebuilt apks."" into mnc-dev
Ying Wang [Mon, 4 May 2015 18:43:13 +0000 (18:43 +0000)]
Merge "Revert "Don't extract jni from prebuilt apks."" into mnc-dev

9 years agoRevert "Don't extract jni from prebuilt apks."
Ying Wang [Mon, 4 May 2015 18:39:46 +0000 (18:39 +0000)]
Revert "Don't extract jni from prebuilt apks."

This reverts commit 3797466fbd31cc3ca5a1eddea64e7fdf0921ea67.

Bug: 20810492
Bug: 20811499
Change-Id: Ic922d9daccc4550db489c0f3d4ad6b4ff85b5e60

9 years agoMerge "Don't extract jni from prebuilt apks." into mnc-dev
Ying Wang [Sat, 2 May 2015 16:33:45 +0000 (16:33 +0000)]
Merge "Don't extract jni from prebuilt apks." into mnc-dev

9 years agoam fa6ee37f: am 53b98761: docs: fix sticky header hiding RenderScript reference headings
Joe Fernandez [Fri, 1 May 2015 23:14:51 +0000 (23:14 +0000)]
am fa6ee37f: am 53b98761: docs: fix sticky header hiding RenderScript reference headings

* commit 'fa6ee37fae42ef08ebcb63dcaf8122f0f6f5311a':
  docs: fix sticky header hiding RenderScript reference headings

9 years agoDon't extract jni from prebuilt apks.
Ying Wang [Fri, 1 May 2015 21:02:26 +0000 (14:02 -0700)]
Don't extract jni from prebuilt apks.

- We don't need LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES now, for we always
  page-align jni shared libraries and store them umcompressed.
- For prebuilt apks, we don't extract jni any more; Instead we always run
  uncompress-shared-libs on them.
- For apks built from source, we still install the jni separately, because
  that way multiple apks can share the same jni and it saves space.

With this change, for most prebuilt apks, we don't need to specify
LOCAL_PREBUILT_JNI_LIBS ("@lib/<abi>/foo.so") any more, for the build
system automatically replaces the embedded jni with uncompressed files;
But if a prebuilt is a fat apk (i.e. containing jni not needed by the
current product architecture), you still need LOCAL_PREBUILT_JNI_LIBS to
specify what jni to keep. Otherwise all embedded jni will be replaced with
uncompressed files, that wastes space.

Bug: 8076853
Change-Id: Icf07e0998ac3602e6e05e80fed836fbafca33e01

9 years agoam 53b98761: docs: fix sticky header hiding RenderScript reference headings
Joe Fernandez [Fri, 1 May 2015 23:05:35 +0000 (23:05 +0000)]
am 53b98761: docs: fix sticky header hiding RenderScript reference headings

* commit '53b98761b288fcf833db62bb4700fba20b319961':
  docs: fix sticky header hiding RenderScript reference headings

9 years agocommon.py: Add support for squashfs
Mohamad Ayyash [Fri, 1 May 2015 22:39:36 +0000 (15:39 -0700)]
common.py: Add support for squashfs

Change-Id: Ia40f8c6307d0213d43207aee91c4c8a5b5ad6f1e
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
9 years agoam 03b107c8: docs: update masthead template for Preview docs
Joe Fernandez [Fri, 1 May 2015 22:57:46 +0000 (22:57 +0000)]
am 03b107c8: docs: update masthead template for Preview docs

* commit '03b107c8563c5edf5fe25435e609329d1fc7a62f':
  docs: update masthead template for Preview docs

9 years agodocs: update masthead template for Preview docs
Joe Fernandez [Fri, 1 May 2015 22:41:20 +0000 (15:41 -0700)]
docs: update masthead template for Preview docs

Change-Id: I00ec56064a5193491fce5389cdff7cb5824e567c

9 years agoDeference symlinks when copying LOCAL_PICKUP_FILES.
Ying Wang [Fri, 1 May 2015 02:46:00 +0000 (19:46 -0700)]
Deference symlinks when copying LOCAL_PICKUP_FILES.

Change-Id: I2399529ee9168bb93a4cad5daa61cd2ea500df04

9 years agoFix jack transformation on prebuilt AAR.
Ying Wang [Thu, 30 Apr 2015 16:55:08 +0000 (09:55 -0700)]
Fix jack transformation on prebuilt AAR.

Change-Id: I74f932cff606138943d97b923bbd059bcd496e46

9 years agoRevert "Revert "Pack relocations for mips64""
Dmitriy Ivanov [Wed, 29 Apr 2015 22:34:21 +0000 (15:34 -0700)]
Revert "Revert "Pack relocations for mips64""

This reverts commit 6399dcce598c2ac54bd87bc754028513405c049f.

Bug: http://b/20658994
(cherry picked from commit 8387d99ec3649390f815d447a44674fc9ca18823)

9 years agodocs: fix sticky header hiding RenderScript reference headings
Joe Fernandez [Thu, 30 Apr 2015 03:22:22 +0000 (20:22 -0700)]
docs: fix sticky header hiding RenderScript reference headings

b/20637508

Change-Id: I64996db4fc986cbe0f4506b5524a708a9e14cbc8

9 years agoRevert "Revert "Pack relocations for mips""
Dmitriy Ivanov [Wed, 29 Apr 2015 21:50:05 +0000 (14:50 -0700)]
Revert "Revert "Pack relocations for mips""

This reverts commit d05fd6fc821db3e09c988370c6ac24c3354232f7.

Bug: http://b/20658994
Change-Id: Iccbd4846b310306ed11b87f4566b8aaadfa63ebb
(cherry picked from commit cb2b3d47addad6b7370df4b8aa77a53f98045cfb)

9 years agoMerge "Revert "Pack relocations for mips"" into mnc-dev
Dimitry Ivanov [Wed, 29 Apr 2015 19:37:46 +0000 (19:37 +0000)]
Merge "Revert "Pack relocations for mips"" into mnc-dev

9 years agoRevert "Pack relocations for mips"
Dimitry Ivanov [Wed, 29 Apr 2015 18:57:54 +0000 (18:57 +0000)]
Revert "Pack relocations for mips"

This reverts commit 9dc1a7359f2351e18f08d69ea725f884541b2f2f.

Bug: http://b/20658994
Change-Id: Ib10c764a7d06db823ee2fccfa47240e0a639d4bc
(cherry picked from commit d05fd6fc821db3e09c988370c6ac24c3354232f7)

9 years agoRevert "Pack relocations for mips64"
Dimitry Ivanov [Wed, 29 Apr 2015 18:59:05 +0000 (18:59 +0000)]
Revert "Pack relocations for mips64"

This reverts commit 8bd30fe3cb82e50caab50e4091c5977e5e24db0e.

Bug: http://b/20658994
Change-Id: I6c31094559a12b824344802bf3993f91aee79a26
(cherry picked from commit 6399dcce598c2ac54bd87bc754028513405c049f)

9 years agoam 8f168d1b: Add design support library docs
Chris Banes [Wed, 29 Apr 2015 09:17:22 +0000 (09:17 +0000)]
am 8f168d1b: Add design support library docs

* commit '8f168d1b986516112d103958070830c9075f6ce2':
  Add design support library docs

9 years agoAdd float support to binary event log.
Jeff Brown [Tue, 28 Apr 2015 19:46:22 +0000 (12:46 -0700)]
Add float support to binary event log.

Bug: 20664753
Change-Id: Iab232b1f172094919839d57f15644dfb2eaa1425

9 years agoAdd design support library docs
Chris Banes [Tue, 28 Apr 2015 11:01:49 +0000 (12:01 +0100)]
Add design support library docs

BUG: 20524332
Change-Id: I471ab17a2a5ccc43f4ef0fa04b7c2e9077d56361

9 years agoBump sdk arm system image size to 750M
bohu [Mon, 27 Apr 2015 19:05:03 +0000 (12:05 -0700)]
Bump sdk arm system image size to 750M

To fix broken build of arm system images.

Change-Id: I960dbb2a5a895557499fcf38655cd8907e768ef9
(cherry picked from commit 9f42be14b8864c123d3df29ade44e3a92096679e)

9 years agoam 02ff9f36: am 64879ead: am 90ac39d2: Merge "doc: Add Korean version of DAC/distribu...
Ryosuke Matsuuchi [Mon, 27 Apr 2015 07:38:01 +0000 (07:38 +0000)]
am 02ff9f36: am 64879ead: am 90ac39d2: Merge "doc: Add Korean version of DAC/distribute/ page." into lmp-docs

* commit '02ff9f36d2e962e783126fc136ec490fb4af5069':

9 years agoam 2b540ab5: am 1bd563a8: am 42321423: Merge "Doc change: increment metadata for...
Dirk Dougherty [Mon, 27 Apr 2015 07:38:00 +0000 (07:38 +0000)]
am 2b540ab5: am 1bd563a8: am 42321423: Merge "Doc change: increment metadata for updated Distribute landing page content." into lmp-docs

* commit '2b540ab581f769e7ed5102c770311aec0f80b2cd':

9 years agoam 64879ead: am 90ac39d2: Merge "doc: Add Korean version of DAC/distribute/ page...
Ryosuke Matsuuchi [Mon, 27 Apr 2015 07:24:27 +0000 (07:24 +0000)]
am 64879ead: am 90ac39d2: Merge "doc: Add Korean version of DAC/distribute/ page." into lmp-docs

* commit '64879ead4514463a4efc7dcd00c4339d14136d11':

9 years agoam 1bd563a8: am 42321423: Merge "Doc change: increment metadata for updated Distribut...
Dirk Dougherty [Mon, 27 Apr 2015 07:24:25 +0000 (07:24 +0000)]
am 1bd563a8: am 42321423: Merge "Doc change: increment metadata for updated Distribute landing page content." into lmp-docs

* commit '1bd563a8ab4adb1df9b36e07739804453bc37d0c':

9 years agoam 90ac39d2: Merge "doc: Add Korean version of DAC/distribute/ page." into lmp-docs
Ryosuke Matsuuchi [Sun, 26 Apr 2015 19:15:27 +0000 (19:15 +0000)]
am 90ac39d2: Merge "doc: Add Korean version of DAC/distribute/ page." into lmp-docs

* commit '90ac39d2b56171b92f8d136fb8e35a63f8b70ff1':
  doc: Add Korean version of DAC/distribute/ page.

9 years agoam 42321423: Merge "Doc change: increment metadata for updated Distribute landing...
Dirk Dougherty [Sun, 26 Apr 2015 19:15:15 +0000 (19:15 +0000)]
am 42321423: Merge "Doc change: increment metadata for updated Distribute landing page content." into lmp-docs

* commit '4232142313a582939d80209a1449f3e4a08f6701':
  Doc change: increment metadata for updated Distribute landing page content.

9 years agoam 6e40faa2: am 44984951: am 162e1906: am b271669a: Merge "Fix a trivial comment...
Elliott Hughes [Sat, 25 Apr 2015 18:44:03 +0000 (18:44 +0000)]
am 6e40faa2: am 44984951: am 162e1906: am b271669a: Merge "Fix a trivial comment typo."

* commit '6e40faa241b241f1c32edb40d36f9c407d8f6790':
  Fix a trivial comment typo.

9 years agoam 44984951: am 162e1906: am b271669a: Merge "Fix a trivial comment typo."
Elliott Hughes [Sat, 25 Apr 2015 18:31:57 +0000 (18:31 +0000)]
am 44984951: am 162e1906: am b271669a: Merge "Fix a trivial comment typo."

* commit '449849513b995021e326b3b1a500139cea712ba8':
  Fix a trivial comment typo.

9 years agoam 162e1906: am b271669a: Merge "Fix a trivial comment typo."
Elliott Hughes [Sat, 25 Apr 2015 18:23:50 +0000 (18:23 +0000)]
am 162e1906: am b271669a: Merge "Fix a trivial comment typo."

* commit '162e19061c7fcdf9e212a561f75427cf1126ea67':
  Fix a trivial comment typo.

9 years agoam b271669a: Merge "Fix a trivial comment typo."
Elliott Hughes [Sat, 25 Apr 2015 18:10:58 +0000 (18:10 +0000)]
am b271669a: Merge "Fix a trivial comment typo."

* commit 'b271669a0c6dd4287ed1631acecd94c3f443bc8d':
  Fix a trivial comment typo.

9 years agoMerge "Fix a trivial comment typo."
Elliott Hughes [Sat, 25 Apr 2015 18:04:21 +0000 (18:04 +0000)]
Merge "Fix a trivial comment typo."

9 years agoFix a trivial comment typo.
Elliott Hughes [Sat, 25 Apr 2015 18:02:40 +0000 (11:02 -0700)]
Fix a trivial comment typo.

Bug: https://code.google.com/p/android/issues/detail?id=170069
Change-Id: Iacd308893561a991971b191d4d10a78ca82753d4

9 years agoam 045d817c: am 497b74d5: am d21d1d27: am 00e1f003: Merge "Check partition hash befor...
Sami Tolvanen [Sat, 25 Apr 2015 10:01:53 +0000 (10:01 +0000)]
am 045d817c: am 497b74d5: am d21d1d27: am 00e1f003: Merge "Check partition hash before resorting to block_image_verify"

* commit '045d817cce8cb1feb0186b537306cabf1a5069cd':
  Check partition hash before resorting to block_image_verify

9 years agoam 497b74d5: am d21d1d27: am 00e1f003: Merge "Check partition hash before resorting...
Sami Tolvanen [Sat, 25 Apr 2015 09:48:19 +0000 (09:48 +0000)]
am 497b74d5: am d21d1d27: am 00e1f003: Merge "Check partition hash before resorting to block_image_verify"

* commit '497b74d5a28d9471566159535038e454ffa15857':
  Check partition hash before resorting to block_image_verify

9 years agoam d21d1d27: am 00e1f003: Merge "Check partition hash before resorting to block_image...
Sami Tolvanen [Sat, 25 Apr 2015 09:32:33 +0000 (09:32 +0000)]
am d21d1d27: am 00e1f003: Merge "Check partition hash before resorting to block_image_verify"

* commit 'd21d1d273b83e701667beeabe0c76fd6888e15fc':
  Check partition hash before resorting to block_image_verify

9 years agoam 00e1f003: Merge "Check partition hash before resorting to block_image_verify"
Sami Tolvanen [Sat, 25 Apr 2015 08:07:04 +0000 (08:07 +0000)]
am 00e1f003: Merge "Check partition hash before resorting to block_image_verify"

* commit '00e1f0033eede8f23ff72097c98b7fd70a4e349d':
  Check partition hash before resorting to block_image_verify

9 years agoMerge "Check partition hash before resorting to block_image_verify"
Sami Tolvanen [Sat, 25 Apr 2015 08:00:01 +0000 (08:00 +0000)]
Merge "Check partition hash before resorting to block_image_verify"

9 years agoam c98d6b35: am 6612d4a0: am edc3371a: am f3a6b07b: Merge "host compiler: enable...
Nick Kralevich [Sat, 25 Apr 2015 05:15:48 +0000 (05:15 +0000)]
am c98d6b35: am 6612d4a0: am edc3371a: am f3a6b07b: Merge "host compiler: enable compiler hardening flags"

* commit 'c98d6b35ba7e9381089b1b7c8b47f384e5772a4f':
  host compiler: enable compiler hardening flags

9 years agoam 6612d4a0: am edc3371a: am f3a6b07b: Merge "host compiler: enable compiler hardenin...
Nick Kralevich [Sat, 25 Apr 2015 05:04:39 +0000 (05:04 +0000)]
am 6612d4a0: am edc3371a: am f3a6b07b: Merge "host compiler: enable compiler hardening flags"

* commit '6612d4a0888bce32ff987e9897dede9829b5a822':
  host compiler: enable compiler hardening flags

9 years agoam edc3371a: am f3a6b07b: Merge "host compiler: enable compiler hardening flags"
Nick Kralevich [Sat, 25 Apr 2015 04:54:12 +0000 (04:54 +0000)]
am edc3371a: am f3a6b07b: Merge "host compiler: enable compiler hardening flags"

* commit 'edc3371aeaf0f963d95b4d8bfb0e35b8b17ee648':
  host compiler: enable compiler hardening flags

9 years agoam f3a6b07b: Merge "host compiler: enable compiler hardening flags"
Nick Kralevich [Sat, 25 Apr 2015 04:44:34 +0000 (04:44 +0000)]
am f3a6b07b: Merge "host compiler: enable compiler hardening flags"

* commit 'f3a6b07b80a32b822f63cb1d34de64e8395484a8':
  host compiler: enable compiler hardening flags

9 years agoMerge "host compiler: enable compiler hardening flags"
Nick Kralevich [Sat, 25 Apr 2015 04:35:46 +0000 (04:35 +0000)]
Merge "host compiler: enable compiler hardening flags"

9 years agohost compiler: enable compiler hardening flags
Nick Kralevich [Sat, 25 Apr 2015 04:26:08 +0000 (21:26 -0700)]
host compiler: enable compiler hardening flags

Enable the following compiler hardening flags:

* -Wl,-z,relro
* -Wl,-z,now
* -fstack-protector

relro / bind_now make the relro region read-only after linking,
preventing certain attacks against ELF data structures.

stack-protector adds stack canaries, which can detect exploits
which overwrite parts of the stack.

Explicitly not added in this change is FORTIFY_SOURCE=2. Adding that
option turns on glibc's warn_unused_result attributes. This generates
a huge number of new compile time warnings, and for the multiple
makefiles which have -Werror in them, turns those warnings into errors.
I'm not able to fix all the errors right away.

Bug: 20558757
Change-Id: I86791177c6695f5325233d9dd9a5dd3ccc2b1a2f

9 years agoam 80421984: am aac1b9d9: am f674a67d: am 573dfb7c: Merge "Pack relocations for mips64"
Dmitriy Ivanov [Sat, 25 Apr 2015 00:31:30 +0000 (00:31 +0000)]
am 80421984: am aac1b9d9: am f674a67d: am 573dfb7c: Merge "Pack relocations for mips64"

* commit '804219841d7f581cf78f3f68e13381b6631513a0':
  Pack relocations for mips64

9 years agoam aac1b9d9: am f674a67d: am 573dfb7c: Merge "Pack relocations for mips64"
Dmitriy Ivanov [Sat, 25 Apr 2015 00:20:48 +0000 (00:20 +0000)]
am aac1b9d9: am f674a67d: am 573dfb7c: Merge "Pack relocations for mips64"

* commit 'aac1b9d9bfc82aa739c7f38c82538ac73ea1040f':
  Pack relocations for mips64

9 years agoam f674a67d: am 573dfb7c: Merge "Pack relocations for mips64"
Dmitriy Ivanov [Sat, 25 Apr 2015 00:09:51 +0000 (00:09 +0000)]
am f674a67d: am 573dfb7c: Merge "Pack relocations for mips64"

* commit 'f674a67d6ef3d446dd726ce9600bd905815506b6':
  Pack relocations for mips64

9 years agoam 573dfb7c: Merge "Pack relocations for mips64"
Dmitriy Ivanov [Fri, 24 Apr 2015 23:59:03 +0000 (23:59 +0000)]
am 573dfb7c: Merge "Pack relocations for mips64"

* commit '573dfb7cb8f768452744ddb781cc65412ed1a618':
  Pack relocations for mips64

9 years agoMerge "Pack relocations for mips64"
Dmitriy Ivanov [Fri, 24 Apr 2015 23:51:28 +0000 (23:51 +0000)]
Merge "Pack relocations for mips64"

9 years agoam 7347196a: am df7afb47: am 3b023915: am 4fa4e4be: Merge "Do not pack relocations...
Dmitriy Ivanov [Fri, 24 Apr 2015 23:36:21 +0000 (23:36 +0000)]
am 7347196a: am df7afb47: am 3b023915: am 4fa4e4be: Merge "Do not pack relocations for prebuilts by default"

* commit '7347196acbf640caaf68e4e790489a40d770a083':
  Do not pack relocations for prebuilts by default

9 years agoPack relocations for mips64
Dmitriy Ivanov [Fri, 24 Apr 2015 23:32:38 +0000 (16:32 -0700)]
Pack relocations for mips64

Bug: http://b/18051137
Change-Id: I063c5d6cf007658c0efe9cb1d65ed8026b3e7dae

9 years agoam df7afb47: am 3b023915: am 4fa4e4be: Merge "Do not pack relocations for prebuilts...
Dmitriy Ivanov [Fri, 24 Apr 2015 23:26:31 +0000 (23:26 +0000)]
am df7afb47: am 3b023915: am 4fa4e4be: Merge "Do not pack relocations for prebuilts by default"

* commit 'df7afb47d8d69f53316218dd4b0510aa8201ce7c':
  Do not pack relocations for prebuilts by default

9 years agoam 3b023915: am 4fa4e4be: Merge "Do not pack relocations for prebuilts by default"
Dmitriy Ivanov [Fri, 24 Apr 2015 23:14:00 +0000 (23:14 +0000)]
am 3b023915: am 4fa4e4be: Merge "Do not pack relocations for prebuilts by default"

* commit '3b023915e8374341c6a69cd40b0811e10b3cb1b5':
  Do not pack relocations for prebuilts by default

9 years agoam 4fa4e4be: Merge "Do not pack relocations for prebuilts by default"
Dmitriy Ivanov [Fri, 24 Apr 2015 23:04:46 +0000 (23:04 +0000)]
am 4fa4e4be: Merge "Do not pack relocations for prebuilts by default"

* commit '4fa4e4befd5bc88ab37d7c7b20d3a67d351a1925':
  Do not pack relocations for prebuilts by default

9 years agoMerge "Do not pack relocations for prebuilts by default"
Dmitriy Ivanov [Fri, 24 Apr 2015 22:56:08 +0000 (22:56 +0000)]
Merge "Do not pack relocations for prebuilts by default"

9 years agoDo not pack relocations for prebuilts by default
Dmitriy Ivanov [Fri, 24 Apr 2015 22:33:14 +0000 (15:33 -0700)]
Do not pack relocations for prebuilts by default

 Do not pack relocations for prebuilds unless
 LOCAL_PACK_MODULE_RELOCATIONS is true

Bug: http://b/20537715
Bug: http://b/18051137
Change-Id: Iddef3b09741da6ae10d73c98103b868cc7695d38

9 years agoam 10537b6f: am 513be561: am cae46525: am 691a4379: Merge "Pack relocations for mips"
Dmitriy Ivanov [Fri, 24 Apr 2015 21:09:38 +0000 (21:09 +0000)]
am 10537b6f: am 513be561: am cae46525: am 691a4379: Merge "Pack relocations for mips"

* commit '10537b6f41342c50fc0c80bd85ff1b126054086f':
  Pack relocations for mips

9 years agoam 513be561: am cae46525: am 691a4379: Merge "Pack relocations for mips"
Dmitriy Ivanov [Fri, 24 Apr 2015 20:12:37 +0000 (20:12 +0000)]
am 513be561: am cae46525: am 691a4379: Merge "Pack relocations for mips"

* commit '513be561e9eca26bd73a0a6c8c2764b20430d60f':
  Pack relocations for mips

9 years agoam cae46525: am 691a4379: Merge "Pack relocations for mips"
Dmitriy Ivanov [Fri, 24 Apr 2015 20:05:03 +0000 (20:05 +0000)]
am cae46525: am 691a4379: Merge "Pack relocations for mips"

* commit 'cae4652514c220d1b8d9fbbdca1204bc6cb25954':
  Pack relocations for mips

9 years agoam 691a4379: Merge "Pack relocations for mips"
Dmitriy Ivanov [Fri, 24 Apr 2015 19:55:39 +0000 (19:55 +0000)]
am 691a4379: Merge "Pack relocations for mips"

* commit '691a4379c3386e39fc362d632acca5276060c23a':
  Pack relocations for mips

9 years agoMerge "Pack relocations for mips"
Dmitriy Ivanov [Fri, 24 Apr 2015 19:45:22 +0000 (19:45 +0000)]
Merge "Pack relocations for mips"

9 years agoPack relocations for mips
Dmitriy Ivanov [Fri, 24 Apr 2015 19:20:02 +0000 (12:20 -0700)]
Pack relocations for mips

Bug: http://b/18051137
Change-Id: Id5e0adfb55273f23e1c99b4eecb318c6b8d19989

9 years agoam 5754ad7e: am 5c327ec3: am 0f7ecd64: am b1c2727a: Merge "Pack relocations for x86"
Dmitriy Ivanov [Fri, 24 Apr 2015 18:28:05 +0000 (18:28 +0000)]
am 5754ad7e: am 5c327ec3: am 0f7ecd64: am b1c2727a: Merge "Pack relocations for x86"

* commit '5754ad7ead23fb613f9fe4de2970283d18141ea5':
  Pack relocations for x86

9 years agoam 5c327ec3: am 0f7ecd64: am b1c2727a: Merge "Pack relocations for x86"
Dmitriy Ivanov [Fri, 24 Apr 2015 18:16:35 +0000 (18:16 +0000)]
am 5c327ec3: am 0f7ecd64: am b1c2727a: Merge "Pack relocations for x86"

* commit '5c327ec39cc83f1f87f012abb29a9b13a0be02b7':
  Pack relocations for x86

9 years agoam 0f7ecd64: am b1c2727a: Merge "Pack relocations for x86"
Dmitriy Ivanov [Fri, 24 Apr 2015 18:07:03 +0000 (18:07 +0000)]
am 0f7ecd64: am b1c2727a: Merge "Pack relocations for x86"

* commit '0f7ecd648bd5aa7f2798615559eb2cfd72e5d918':
  Pack relocations for x86

9 years agoam b1c2727a: Merge "Pack relocations for x86"
Dmitriy Ivanov [Fri, 24 Apr 2015 17:54:11 +0000 (17:54 +0000)]
am b1c2727a: Merge "Pack relocations for x86"

* commit 'b1c2727aecfbd769bc002e1feeea0f6b745c9795':
  Pack relocations for x86

9 years agoMerge "Pack relocations for x86"
Dmitriy Ivanov [Fri, 24 Apr 2015 17:44:09 +0000 (17:44 +0000)]
Merge "Pack relocations for x86"

9 years agoPack relocations for x86
Dmitriy Ivanov [Fri, 24 Apr 2015 01:43:05 +0000 (18:43 -0700)]
Pack relocations for x86

Bug: http://b/18051137
Change-Id: I3f316343e9bbd2037a9583d5b6fb41a06be153cd

9 years agoCheck partition hash before resorting to block_image_verify
Sami Tolvanen [Fri, 24 Apr 2015 10:54:01 +0000 (11:54 +0100)]
Check partition hash before resorting to block_image_verify

It's not necessary to call block_image_verify for the most common
case where we attempt an update for the first time and the target
partition has expected contents. It is sufficient to confirm that
the target partition is intact.

Computing a hash is much faster than simulating the update, which
means this change should make the update speed for v3 much closer
to v2 for the common case. If the update was interrupted, this is
going to make resuming somewhat slower, of course. Hopefully this
should be rather rare.

Bug: 20309033
Change-Id: I04792f3681bf2cd5d9a4e1c41eb883c7f26c6f58

9 years agoam 6a2b812b: am cda3d433: am eacc8a05: am 529943c7: Merge "Disable packed relocations...
Dmitriy Ivanov [Fri, 24 Apr 2015 05:30:47 +0000 (05:30 +0000)]
am 6a2b812b: am cda3d433: am eacc8a05: am 529943c7: Merge "Disable packed relocations for NDK builds"

* commit '6a2b812b8cc5ac7ea051d2c09651e12d08217919':
  Disable packed relocations for NDK builds

9 years agoam cda3d433: am eacc8a05: am 529943c7: Merge "Disable packed relocations for NDK...
Dmitriy Ivanov [Fri, 24 Apr 2015 05:19:24 +0000 (05:19 +0000)]
am cda3d433: am eacc8a05: am 529943c7: Merge "Disable packed relocations for NDK builds"

* commit 'cda3d43345a43059065b538b63228007a2da62fc':
  Disable packed relocations for NDK builds