Commit Graph

21907 Commits

Author SHA1 Message Date
Yabin Cui dceb7fc87a Merge "base: Avoid compilation error when compiled with -Wdangling-else." into nyc-dev 2016-03-30 19:29:11 +00:00
Yabin Cui dd4c75e6e3 base: Avoid compilation error when compiled with -Wdangling-else.
As logging macros uses `if xxx else yyy` style, it is reported as an
error when DCHECK() is compiled with -Wdangling-else option. Because
after preprocess, DCHECK(x) becomes:
if (EnableDChecks)
  if (x)
    ;
  else
    LogMessage(FATAL) << yyy;

This CL avoids compilation error by replacing `if xxx else yyy`
with `xxx && yyy` or `!(xxx) || yyy`.

Bug: 26962895

Change-Id: Ib0bf242cc04a238ec31a1ab66b53fc8a5b5ed28f
(cherry picked from commit 2527628eda)
2016-03-30 11:13:40 -07:00
Pierre Imai 77746f2eab Merge "Add C++ thread annotations support to core." into nyc-dev 2016-03-30 07:40:06 +00:00
Sami Tolvanen bebd38114c Merge "mkbootimg: use int for os_version and os_patch_level" into nyc-dev 2016-03-30 03:25:21 +00:00
Dimitry Ivanov f2c2c07354 Merge "Adjust check for target_sdk_version for workarounds" into nyc-dev 2016-03-30 01:59:07 +00:00
Sami Tolvanen fa0b90aa79 mkbootimg: use int for os_version and os_patch_level
The parse_int function attempts to interpret the string to detect
base, which leads to it assuming strings starting with 0 are base
8. This obviously fails for certain dates, so use int instead.

Bug: 27498078
Bug: 22914603
Change-Id: I50b1fb3d7876f2ec17d00649cc9a2d23af2aec2b
(cherry picked from commit 294eb9dac3)
2016-03-29 18:27:13 -07:00
Pierre Imai 3c94aeef53 Add C++ thread annotations support to core.
Change-Id: I7b8940c12e0f3121d8c09d86d2d4077b0a0ce376
(cherry picked from commit 021ea2d176)
2016-03-30 10:06:33 +09:00
Yabin Cui 901be39dc4 Merge "libbacktrace_offline: support unwinding of shared libraries in apk file." into nyc-dev 2016-03-30 00:59:27 +00:00
Dimitry Ivanov 4f8bb2577a Adjust check for target_sdk_version for workarounds
target_sdk_version=0 is a valid version, it basically
means 1 (the very first version of android) not current one.

Bug: http://b/27702070
Change-Id: Ib7843718f364b975e1d09a05377bf8580b407d9d
2016-03-29 16:12:40 -07:00
Yabin Cui 02092b36da libbacktrace_offline: support unwinding of shared libraries in apk file.
Bug: 26962895
Change-Id: I009080f26e7323247c3ab24eea614eec4432ca6a
(cherry picked from commit b791a76ed7)
2016-03-29 14:04:34 -07:00
Mark Salyzyn 5e635f7c06 liblog: gate write on log id available
(cherry pick from commit c33103c440)

- Secure LOG_ID_KERNEL in writer
- Secure LOG_ID_SECURITY in reader and writer
- if writer transport says not available, do not write to that log id

Bug: 27566046
Bug: 27896341
Change-Id: If63a78a56fb94adfbf9979454c4cadb81af45c19
2016-03-29 12:53:44 -07:00
Dimitry Ivanov 7f9a1aaf05 A workaround for apps using custom classloaders
Allow custom classloaders to load native libraries
from anywhere under /data

Bug: http://b/27588281
Change-Id: Idb87b33361903f52b734ddd0ceaabe1ff9c281eb
2016-03-29 11:12:18 -07:00
Paul Lawrence 07068de789 Revert "HACK: Run e2fsck with -f"
This reverts commit 2cd762d932.

This change adds 12 seconds or so to boot times - we need to revert it
and see if we can find a proper fix to the original problem if it is
still occurring.

Bug: 27849759
Change-Id: Ib3692e436c08468a51529f256f2ce5e9ccd2d35d
2016-03-29 18:02:33 +00:00
James Hawkins c1b10a9e84 Merge "Revert "Revert "bootstat: Handle v1 record files which do not contain file contents.""" into nyc-dev 2016-03-28 20:59:19 +00:00
James Hawkins 6105846a0e Revert "Revert "bootstat: Handle v1 record files which do not contain file contents.""
This reverts commit 756b6a53a7.

The change is updated to use utimes (instead of futimens) since only
support for seconds resolution is required.

Bug: 27836969
Change-Id: I7134f759fb643e1a149158fcf6e20f76538b57d3
(cherry picked from commit c0dc139b4a)
2016-03-28 13:37:16 -07:00
Pablo Ceballos 0e28c1fa4a Merge "Rename single buffer mode to shared buffer mode" into nyc-dev 2016-03-28 19:34:27 +00:00
James Hawkins 197b62852b Merge "Revert "bootstat: Handle v1 record files which do not contain file contents."" into nyc-dev 2016-03-28 18:29:36 +00:00
James Hawkins 77fc4bac4e Revert "bootstat: Handle v1 record files which do not contain file contents."
This reverts commit 13b42bf8a8.

I accidentally merged the wrong version of this change (this version had to be reverted on master).

Change-Id: I651e3bf50515daed08464a49ace2eefefdad89c0
2016-03-28 18:25:41 +00:00
James Hawkins c52b70d289 Merge "bootstat: Handle v1 record files which do not contain file contents." into nyc-dev 2016-03-28 17:27:17 +00:00
Josh Gao dfa163df50 debuggerd: add SIGSYS to the list of handled signals.
Processes using seccomp will get SIGSYS when attempting to use a
disallowed syscall. We're currently not handling SIGSYS in bionic's
signal handler, but this change will let us dump a backtrace pointing at
rt_tgsigqueueinfo in our signal handler if seccomp policies block it
during a real crash.

Bug: http://b/27853687
Change-Id: I4e4aacc95eeef7249d895e19dc4ccd77a51c7a17
2016-03-25 14:34:22 -07:00
Colin Cross 033bc9f3e7 Merge "liblog: update Android.bp" into nyc-dev 2016-03-25 19:54:24 +00:00
James Hawkins 13b42bf8a8 bootstat: Handle v1 record files which do not contain file contents.
Bug: 27836969
Change-Id: I18fcdab7ca32d00af3f8827f42d47868492ed719
(cherry picked from commit 84fda19c83)
2016-03-25 10:42:50 -07:00
Joe Onorato e0e941e349 Merge "Turn off duplicate log" into nyc-dev 2016-03-24 23:19:55 +00:00
Dan Stoza beda52b32a Merge "graphics.h: Add android_color_transform_t" into nyc-dev 2016-03-24 21:44:38 +00:00
Mark Salyzyn 93101bea8b liblog: update Android.bp
Update Android.bp to match the version in AOSP.

Change-Id: I93aba0f93a7a8d255073661331f1d966a53e20aa
(cherry picked from commit c457a4b73e)
2016-03-24 13:45:00 -07:00
Mark Salyzyn 476b771bda liblog: logprint: deal with malformed log messages
(cherry picked from commit 083c53462a)

Try to print as much content as possible should the application
logging only submit content as part of a tag with an empty message.
We search for the first non-printable ascii character in the tag, in
order to split it up for printing.

Applications (such as com.yahoo.mobile.client.android.weather) that
malform their log messages will no longer be punished by truncating
the content, but this should never be considered advocacy for their
bad behavior.

Bug: 27585978
Change-Id: Idb0680e8d6a6ad2bef5150661905acccb5b70afb
2016-03-24 12:21:53 -07:00
Joe Onorato b03b6ac61e Turn off duplicate log
Bug: 27744135
Change-Id: Iaf5787d36c983f19586e1d1a40f35091fb168cfe
2016-03-24 11:33:15 -07:00
Dan Stoza bb1deda59b graphics.h: Add android_color_transform_t
Adds android_color_transform_t, which specifies a range of color
transforms which may be applied to the whole display.

Bug: 22767098
Change-Id: Iaf03915c09ac0bdd18512b5f78c39da1705bda08
2016-03-24 10:38:46 -07:00
Josh Gao 6eb4eab106 debuggerd: waitpid for all children, and log the result.
Change-Id: Ic575e6db76ab153b4b238589a8cd299812d0e046
(cherry picked from commit 2808005521)
2016-03-23 14:28:01 -07:00
Josh Gao a6219eae8d debuggerd: always send SIGCONT after detaching.
Bug: http://b/27330889
Change-Id: I104248af1cde03dbdbacc03c87fe7e2dffd6c037
(cherry picked from commit 24464185eb)
2016-03-23 14:27:57 -07:00
Josh Gao 05e1e1fb41 Don\'t demangle symbol names. am: fbbc744 am: 0edda64 am: 9bf0b81
am: 0fb3191

* commit '0fb3191840680f7e084aa9ee53a1906074a16b68':
  Don't demangle symbol names.
2016-03-23 20:52:26 +00:00
Josh Gao 0fb3191840 Don\'t demangle symbol names. am: fbbc744 am: 0edda64
am: 9bf0b81

* commit '9bf0b815ad6701b6a3813fc1da1ecec61affb18c':
  Don't demangle symbol names.
2016-03-23 20:48:58 +00:00
Josh Gao 9bf0b815ad Don\'t demangle symbol names. am: fbbc744
am: 0edda64

* commit '0edda648fb7793c58ff76ceb0c740571b25d16fd':
  Don't demangle symbol names.
2016-03-23 20:44:20 +00:00
Josh Gao 0edda648fb Don\'t demangle symbol names.
am: fbbc744

* commit 'fbbc744130c85538a754d245e958d7d79f24309c':
  Don't demangle symbol names.
2016-03-23 20:40:48 +00:00
Josh Gao 9919d9affd Merge "Don\'t demangle symbol names." into lmp-dev am: 6914799 am: 53cacfa -s ours am: af857f6 am: 44e6cff am: 7e7a1fb am: 83317d5
am: a06b2e2

* commit 'a06b2e27b3a9dfc5299eafc0abea1f2d9ba535c8':
  Don't demangle symbol names.
2016-03-23 18:54:36 +00:00
Josh Gao a06b2e27b3 Merge "Don\'t demangle symbol names." into lmp-dev am: 6914799 am: 53cacfa -s ours am: af857f6 am: 44e6cff am: 7e7a1fb
am: 83317d5

* commit '83317d5d74d48f121b6e994aa0baf3a5b567edcb':
  Don't demangle symbol names.
2016-03-23 18:50:34 +00:00
Josh Gao 83317d5d74 Merge "Don\'t demangle symbol names." into lmp-dev am: 6914799 am: 53cacfa -s ours am: af857f6 am: 44e6cff
am: 7e7a1fb

* commit '7e7a1fb6e84b381914b0e315183d2b283c475ea6':
  Don't demangle symbol names.
2016-03-23 18:46:41 +00:00
Josh Gao fbbc744130 Don't demangle symbol names.
Bug: http://b/27299236
Change-Id: I26ef47f80d4d6048a316ba51e83365ff65d70439
2016-03-23 11:43:35 -07:00
Josh Gao 7e7a1fb6e8 Merge "Don\'t demangle symbol names." into lmp-dev am: 6914799 am: 53cacfa -s ours am: af857f6
am: 44e6cff

* commit '44e6cff67ff0902dba5d833805b8902f21597a7f':
  Don't demangle symbol names.
2016-03-23 18:42:46 +00:00
Josh Gao 44e6cff67f Merge "Don\'t demangle symbol names." into lmp-dev am: 6914799 am: 53cacfa -s ours
am: af857f6

* commit 'af857f6dc8e103d9cd1c6b40c664fb9f65b426ec':
  Don't demangle symbol names.
2016-03-23 18:38:52 +00:00
Josh Gao af857f6dc8 Merge "Don\'t demangle symbol names." into lmp-dev am: 6914799
am: 53cacfa  -s ours

* commit '53cacfa3037ef75b783d72307177a215fc02f070':
  Don't demangle symbol names.
2016-03-23 18:34:53 +00:00
Josh Gao 53cacfa303 Merge "Don\'t demangle symbol names." into lmp-dev
am: 6914799

* commit '69147994ba50146e1f9c7d98136429057627b4bd':
  Don't demangle symbol names.
2016-03-23 18:23:06 +00:00
Josh Gao 69147994ba Merge "Don't demangle symbol names." into lmp-dev 2016-03-23 18:13:20 +00:00
James Hawkins e8e8cf3f95 bootstat: Track record inconsistencies w/ a debug metric, bootstat_mtime_matches_content.
Fixed a file descriptor leak while I was in here.

Bug: 27550578
Change-Id: I8e252e4f5bb3c4e2ae96a1560fbb32ae636722a0
(cherry picked from commit 6f28299d0d)
2016-03-23 10:41:03 -07:00
Josh Gao 18b70ccbaa Don\'t demangle symbol names. DO NOT MERGE am: a183654 -s ours am: 908c511 -s ours am: ba1f9d5 -s ours am: 029b787 am: 69a29d1 -s ours am: fa7bff7 am: fe523b9 am: e144c6f
am: 5aaafcb  -s ours

* commit '5aaafcb9390fb94d94031d1a5243860bfb58a760':
  Don't demangle symbol names. DO NOT MERGE
2016-03-23 01:21:39 +00:00
Josh Gao 5aaafcb939 Don\'t demangle symbol names. DO NOT MERGE am: a183654 -s ours am: 908c511 -s ours am: ba1f9d5 -s ours am: 029b787 am: 69a29d1 -s ours am: fa7bff7 am: fe523b9
am: e144c6f

* commit 'e144c6fedcb5bc4305dc0e947b6488f458684292':
  Don't demangle symbol names. DO NOT MERGE
2016-03-23 01:18:13 +00:00
Josh Gao e144c6fedc Don\'t demangle symbol names. DO NOT MERGE am: a183654 -s ours am: 908c511 -s ours am: ba1f9d5 -s ours am: 029b787 am: 69a29d1 -s ours am: fa7bff7
am: fe523b9

* commit 'fe523b9bab3fa9e46fdf1210e05003bd3c919437':
  Don't demangle symbol names. DO NOT MERGE
2016-03-23 01:14:09 +00:00
Josh Gao fe523b9bab Don\'t demangle symbol names. DO NOT MERGE am: a183654 -s ours am: 908c511 -s ours am: ba1f9d5 -s ours am: 029b787 am: 69a29d1 -s ours
am: fa7bff7

* commit 'fa7bff765bb5b7d595745fd9dbed7daa56d24bb0':
  Don't demangle symbol names. DO NOT MERGE
2016-03-23 01:10:42 +00:00
Josh Gao fa7bff765b Don\'t demangle symbol names. DO NOT MERGE am: a183654 -s ours am: 908c511 -s ours am: ba1f9d5 -s ours am: 029b787
am: 69a29d1  -s ours

* commit '69a29d169a9775b0acb12457e631fdafe1044eb7':
  Don't demangle symbol names. DO NOT MERGE
2016-03-23 01:07:14 +00:00
Josh Gao 69a29d169a Don\'t demangle symbol names. DO NOT MERGE am: a183654 -s ours am: 908c511 -s ours am: ba1f9d5 -s ours
am: 029b787

* commit '029b7874695c7173d6f3d7bf80ce4d2fc46f6fb4':
  Don't demangle symbol names. DO NOT MERGE
2016-03-23 01:03:47 +00:00