Commit Graph

23097 Commits

Author SHA1 Message Date
Jeff Sharkey 3ce2e60ffc Merge "New "sm" shell tool to call StorageManager." into mnc-dev 2015-05-13 05:27:39 +00:00
Bart Sears 0ed694f326 DO NOT MERGE - Change PLATFORM_VERSION from MNC to M
Goodbye to the cookie...

Change-Id: I0474115250411ccdfbdc769c6a464f9dbc460e8f
2015-05-12 18:42:13 -07:00
Dan Albert f807d1fa6f Merge "Remove stlport from global package list." into mnc-dev 2015-05-12 23:11:32 +00:00
Dan Albert 93f22ee7e2 Merge "Disallow using stlport." into mnc-dev 2015-05-12 23:11:10 +00:00
Jeff Sharkey dea22725d4 New "sm" shell tool to call StorageManager.
Bug: 19993667
Change-Id: I9021794eb6f69c7f53151a887a85788d315ab67d
2015-05-12 15:53:29 -07:00
Evgeniy Stepanov 04cfb9e113 Merge changes Idd0f477f,I937d2020,I3b95c868 into mnc-dev
* changes:
  --no-as-needed needs -Wl.
  Fix AddressSanitizer link order and multilib setup.
  Make asan more closely match clang behavior.
2015-05-12 22:34:16 +00:00
Dan Albert bdd8ca0604 --no-as-needed needs -Wl.
Not sure why my checkbuild passed.

Change-Id: Idd0f477faebf0b7d79998c8a86610728c2c8cc5d
2015-05-12 14:04:55 -07:00
Evgenii Stepanov 6708b6c99c Fix AddressSanitizer link order and multilib setup.
ASan runtime library (when using dynamic linking) must be the first
dependency of the main executable to achieve correct symbol
interposition. This matches how the clang driver works.

In multilib setup, ASan-RT name depends on the target arch:
  /system/lib/libclang_rt.asan-arm-android.so
  /system/lib64/libclang_rt.asan-arm64-android.so

We also set RPATH to /system/lib/asan or /system/lib64/asan
to have a place for ASan-only versions of system libraries.

Change-Id: I937d202077b6e433ba476c075d31be818b662d53
2015-05-12 13:40:29 -07:00
Dan Albert eebb800170 Make asan more closely match clang behavior.
Always link libm with asan. Hasn't been a problem before because ASAN
was only ever used when libc++ was as well, which already links libm.

Pass --no-as-needed for host modules.

These aren't needed for the target builds because the target uses the
shared RTL.

Change-Id: I3b95c8682c0f63bac6b726f8cd15c638aaa98311
2015-05-12 13:40:26 -07:00
Ying Wang 480a9bb64e Keep Throwable's constructor that takes a String argument.
Bug: 20495321
Change-Id: Iaf041da325e1d31f136f36e8ed85b2d90c578b0e
2015-05-11 14:56:20 -07:00
Stephen Smalley 901d792cbf Define BOARD_SEPOLICY_DIRS for 64-bit emulators.
Define BOARD_SEPOLICY_DIRS for the arm64, mips64, and x86_64
emulator targets.  As a first cut, simply inherit from the
existing policy directories used for generic and generic_x86.
We may need further board-specific policy added for these targets
but testing will require first enabling SELinux in the relevant
kernel configs.

(cherrypicked from commit 21ebc213bb)

Change-Id: I7b4459b32298698fc2908cbbdd0e3afadbe5ac24
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2015-05-11 10:46:51 -07:00
Tao Bao f3282b4a7f Wrap zipfile.write(), writestr() and close()
In order to work around the zip 2GiB limit, we need to wrap the related
functions in zipfile. Calls to those functions should always be replaced
with calls to the wrappers instead.

Bug: 18015246
Change-Id: I499574cee51ec4804bc10cbefe0b17940afed918
(cherry picked from commit 2ed665a033)
2015-05-08 15:53:27 -07:00
Andres Morales 821a554c1b Merge "[versionitis] pull image id from recovery into props" into mnc-dev 2015-05-08 22:04:27 +00:00
Andres Morales b8876e111e [versionitis] pull image id from recovery into props
- remove root/build.prop, merge with root/default.prop

Change-Id: I913c67d948678745c0bb1b614ac10a0b7488e5c4
2015-05-08 14:46:16 -07:00
Ying Wang 90598cb70c Cleaned the outdated incrementaljavac.
Nobody is using this feature and now we switched to jack.

Change-Id: I749b486eb347cbf3ee7b107565fc800eeb238c44
2015-05-08 13:27:25 -07:00
Ying Wang d508778493 Merge "Revert "Fix and cleanup."" into mnc-dev 2015-05-08 18:51:22 +00:00
Ying Wang 884738e4a6 Revert "Fix and cleanup."
This reverts commit f28bad5227.

Change-Id: Ib64936457a1236fabbe7c6b9c56f52ef650342e7
2015-05-08 18:51:00 +00:00
Ying Wang 22571e1857 Merge "Fix and cleanup." into mnc-dev 2015-05-08 18:11:55 +00:00
Dan Albert c6355b9464 Remove stlport from global package list.
This is now whitelisted per device.

Bug: http://b/15193147
Change-Id: I7fcd0891242fb552a17753b151cf431a398bbc44
(cherry picked from commit 0a93b56924)
2015-05-08 09:56:56 -07:00
Dan Albert 0a4122a4f2 Disallow using stlport.
The only remaining users of stlport are vendor blobs. Prevent any new
users from using it.

Bug: http://b/15193147
Change-Id: I577a16c8c52e2c7d939c3b5026e18ad90e4b9f26
(cherry picked from commit 3a360a7353)
2015-05-08 09:56:48 -07:00
Ying Wang 1af02e6116 Merge "Fix Mac build." into mnc-dev 2015-05-08 03:59:15 +00:00
Ying Wang b4b767a484 Fix Mac build.
Mac doesn't like "cp -r -L", but "cp -R -L".

Change-Id: I32bd8e5171db4ed811e158d91482671b14622825
2015-05-07 20:57:56 -07:00
Ying Wang f28bad5227 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
2015-05-07 16:53:13 -07:00
Dmitriy Ivanov f55c5a52ac Do not pack relocations for executables
Bug: http://b/20665974
Change-Id: Ibc13b5d6bd05dfbc7ff8475068fe7363f58e7e67
(cherry picked from commit e24b6f77ff)
2015-05-07 14:12:00 -07:00
Robin Lee 455ffaafcd Revert "Switch from Calculator to ExactCalculator"
Temporary revert to get TT builds in shape.

This reverts commit 846505dc35.

Bug: 20745303
Change-Id: Id3455cba38b7aabaffa63c8531a6430f69897c6e
2015-05-07 14:56:00 +00:00
Joe Fernandez ad79cc6741 am c4ef9bb0: am a9d796a4: docs: Add navigation heading for Develop > Preview
* commit 'c4ef9bb08f504c3ca58727403f607cd051edbf5d':
  docs: Add navigation heading for Develop > Preview
2015-05-07 06:42:07 +00:00
Joe Fernandez c4ef9bb08f am a9d796a4: docs: Add navigation heading for Develop > Preview
* commit 'a9d796a4f9e198f17de6f1a27264b1b4fc9a778a':
  docs: Add navigation heading for Develop > Preview
2015-05-07 06:29:59 +00:00
Joe Fernandez a9d796a4f9 docs: Add navigation heading for Develop > Preview
Change-Id: I133672c6ecb5e778f49c31d091812ed7b6dc6b24
2015-05-06 22:24:31 -07:00
Yigit Boyar 8c7121de86 Merge "DO NOT MERGE Remove RecyclerView tests form pathmap" into mnc-dev 2015-05-07 01:40:10 +00:00
Yigit Boyar fa358f7228 DO NOT MERGE Remove RecyclerView tests form pathmap
Bug: 20675894
Change-Id: Ia482c860b7c02f1c37b94c961cf283754c60cbcc
(cherry picked from commit a85c85ae37)
2015-05-07 01:13:53 +00:00
Jeff Brown 64434af772 Revert "Build docs for android-support-media-protocols.jar."
This reverts commit 5d0da1f959.

Bug: 20641986
Change-Id: I68d79186179b8b542b323ab630c6ed7620eb6f27
2015-05-06 16:02:20 -07:00
Dirk Dougherty 0717cb2251 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.
2015-05-06 17:13:01 +00:00
Dirk Dougherty e94fcf31a0 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.
2015-05-06 17:00:22 +00:00
Dirk Dougherty 29e934367b Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.
Change-Id: I9eabbbcd823fb29bd2209172c458cb9dad5f24d2
2015-05-05 18:17:13 -07:00
Chih-Hung Hsieh 0ba68bafa3 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 90036610dd)
2015-05-06 00:24:18 +00:00
Ying Wang 4f5d0e60b4 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 8e8d1e7aba)
2015-05-05 17:35:12 +00:00
Dirk Dougherty 5c73ba6e03 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.
2015-05-05 02:35:03 +00:00
Dirk Dougherty e99d5320dd 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.
2015-05-05 02:23:28 +00:00
Dirk Dougherty 3c339ae4fd 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.
2015-05-05 01:48:10 +00:00
Dirk Dougherty 032a494654 Doc change: css/js, assets for landing page, header/footer designs.
Change-Id: I9430a725bd7ba12cb0ac7da1a5ed9c3bfa8e321e
2015-05-04 18:17:33 -07:00
Dirk Dougherty 55abf4c22d 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.
2015-05-05 01:04:31 +00:00
Joe Fernandez 6f7608cf8f am 657b2971: am fa6ee37f: am 53b98761: docs: fix sticky header hiding RenderScript reference headings
* commit '657b2971f8a6f4a1b6dac68915c557304970d716':
  docs: fix sticky header hiding RenderScript reference headings
2015-05-04 22:19:28 +00:00
Joe Fernandez c135a7f993 am 63904d26: am 03b107c8: docs: update masthead template for Preview docs
* commit '63904d26ad473d8446fea12775ef37e9ae2c8e59':
  docs: update masthead template for Preview docs
2015-05-04 22:19:27 +00:00
Dirk Dougherty ff233cc92e Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.
Change-Id: I5a94aaa8ba375010191a12f210954c22395fed40
2015-05-04 14:37:05 -07:00
Dmitriy Ivanov c787453fdd Merge "Pack module before making symbolic version" into mnc-dev 2015-05-04 20:11:09 +00:00
Dmitriy Ivanov 258b29cf76 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
2015-05-04 12:42:51 -07:00
Ying Wang 7acd4a5afd Merge "Revert "Don't extract jni from prebuilt apks."" into mnc-dev 2015-05-04 18:43:14 +00:00
Ying Wang 97dfa3177d Revert "Don't extract jni from prebuilt apks."
This reverts commit 3797466fbd.

Bug: 20810492
Bug: 20811499
Change-Id: Ic922d9daccc4550db489c0f3d4ad6b4ff85b5e60
2015-05-04 18:39:46 +00:00
Ying Wang 37c9b500ed Merge "Don't extract jni from prebuilt apks." into mnc-dev 2015-05-02 16:33:46 +00:00
Joe Fernandez 657b2971f8 am fa6ee37f: am 53b98761: docs: fix sticky header hiding RenderScript reference headings
* commit 'fa6ee37fae42ef08ebcb63dcaf8122f0f6f5311a':
  docs: fix sticky header hiding RenderScript reference headings
2015-05-01 23:14:51 +00:00