Commit Graph

19573 Commits

Author SHA1 Message Date
Rubin Xu e37103a375 Merge "ADB security logging"
am: 8dfe21eaad

* commit '8dfe21eaad739d297b34dbb1d2b9851d64a42dda':
  ADB security logging
2016-01-28 19:55:57 +00:00
Rubin Xu 8dfe21eaad Merge "ADB security logging" 2016-01-28 19:50:58 +00:00
David Pursell 57dd5ae1e3 adb: fix subprocess termination for legacy shell.
http://r.android.com/166419 changed `adb shell` behavior to not
allocate a remote PTY for non-interactive commands, but adbd relied on
having a PTY to properly terminate the subprocess.

One impact of this is that when using older versions of adb or passing
the -x flag, `adb screenrecord` wasn't properly terminating and closing
out the video file.

This CL restores the old behavior for legacy shell connections: always
use a PTY, but put it in raw mode if the client is doing local PTY
input/output processing itself.

Bug: http://b/26742824
Change-Id: I9ee630c0ff0d2d6a0db367387af7123deea79676
2016-01-27 17:13:41 -08:00
Calin Juravle cf0d813e38 Merge "Revert "nativebrige: log code_cache access errors to stderr as well""
am: 8b999d894f

* commit '8b999d894fc29d5f1bede1c233fe28e944c28ce9':
  Revert "nativebrige: log code_cache access errors to stderr as well"
2016-01-27 18:02:32 +00:00
Calin Juravle 8b999d894f Merge "Revert "nativebrige: log code_cache access errors to stderr as well"" 2016-01-27 17:58:18 +00:00
Calin Juravle 5e11a2936b Revert "nativebrige: log code_cache access errors to stderr as well"
This reverts commit 6d5017803e.

Bug: 26675310

Change-Id: Id56b5e832c85f01fca0a2198499d24224c5a6878
2016-01-27 17:53:20 +00:00
Kevin Cernekee 54b47105ae Merge "ueventd.rc: Document the different rule formats for /dev and /sys nodes"
am: fa432b0e2f

* commit 'fa432b0e2f87e9a029ac0094e5bceaaff258368a':
  ueventd.rc: Document the different rule formats for /dev and /sys nodes
2016-01-26 23:48:43 +00:00
Kevin Cernekee fa432b0e2f Merge "ueventd.rc: Document the different rule formats for /dev and /sys nodes" 2016-01-26 23:44:56 +00:00
Mark Salyzyn 2feb98eab3 Merge "liblog: check getgroups for AID_LOG for AID_LOG_SECURITY"
am: b5eb67ff23

* commit 'b5eb67ff237f6b0a68fe78a93e8e5d6b75a05a32':
  liblog: check getgroups for AID_LOG for AID_LOG_SECURITY
2016-01-26 23:13:12 +00:00
Mark Salyzyn b5eb67ff23 Merge "liblog: check getgroups for AID_LOG for AID_LOG_SECURITY" 2016-01-26 22:54:47 +00:00
Mark Salyzyn 55045303f7 Merge "Revert "logd: security buffer only AID_SYSTEM reader""
am: c85ce9ba8e

* commit 'c85ce9ba8e97b77438624744d679947cf3f55043':
  Revert "logd: security buffer only AID_SYSTEM reader"
2016-01-26 22:44:39 +00:00
Mark Salyzyn c85ce9ba8e Merge "Revert "logd: security buffer only AID_SYSTEM reader"" 2016-01-26 22:38:58 +00:00
Mark Salyzyn 674ce6ef58 Revert "logd: security buffer only AID_SYSTEM reader"
This reverts commit 756332e88b.

Change-Id: Ib8607ac758b7e88a9db716ec4274ec0e4e3dc596
2016-01-26 21:47:35 +00:00
James Hawkins e4d688e27c Merge "bootstat: Hook up bootstat to record the boot complete signal and log boot events in the LOCAL_INIT_RC file, bootstat.rc."
am: dac84b5a1a

* commit 'dac84b5a1adf75fd81a7456faac7bf3953e8276a':
  bootstat: Hook up bootstat to record the boot complete signal and log boot events in the LOCAL_INIT_RC file, bootstat.rc.
2016-01-26 21:35:07 +00:00
Mark Salyzyn 9107c462ce liblog: check getgroups for AID_LOG for AID_LOG_SECURITY
Bug: 26792035
Change-Id: I634d3c8f9f3175956bd70e80daa479af40180f90
2016-01-26 13:32:02 -08:00
James Hawkins dac84b5a1a Merge "bootstat: Hook up bootstat to record the boot complete signal and log boot events in the LOCAL_INIT_RC file, bootstat.rc." 2016-01-26 21:30:55 +00:00
Mark Salyzyn c3dff7a5dc Merge "logd: security buffer only AID_SYSTEM reader"
am: 69ce7c5483

* commit '69ce7c5483709d2c005ae2c77f89b3c3835e8ba5':
  logd: security buffer only AID_SYSTEM reader
2016-01-26 20:48:13 +00:00
Mark Salyzyn 69ce7c5483 Merge "logd: security buffer only AID_SYSTEM reader" 2016-01-26 20:41:51 +00:00
James Hawkins 6bff639c19 bootstat: Hook up bootstat to record the boot complete signal and log
boot events in the LOCAL_INIT_RC file, bootstat.rc.

This change also creates the /data/misc/bootstat dir during the
filesystem creation block in init.rc.

Bug: 21724738
Change-Id: I2ad6913c0235d5f926c6ef8b3c65d650159c6ed7
2016-01-26 11:23:31 -08:00
Mark Salyzyn 756332e88b logd: security buffer only AID_SYSTEM reader
Bug: 26029733
Change-Id: I140e5eb8bb39271fa674744651127e3fc545cbe8
2016-01-26 07:20:29 -08:00
Alex Deymo a64c980da9 Merge "Add BinPackArguments: false to .clang-format"
am: 1503538869

* commit '15035388694f92d84576aeeb0837e0d928250a59':
  Add BinPackArguments: false to .clang-format
2016-01-26 03:12:54 +00:00
Alex Deymo 1503538869 Merge "Add BinPackArguments: false to .clang-format" 2016-01-26 02:57:34 +00:00
Christopher Ferris 8296607568 Merge "Put BacktraceOffline code into a separate library."
am: 9adbf681a0

* commit '9adbf681a0780e2bb3e791fad82dcd555aeaca84':
  Put BacktraceOffline code into a separate library.
2016-01-26 01:57:00 +00:00
Christopher Ferris 9adbf681a0 Merge "Put BacktraceOffline code into a separate library." 2016-01-26 01:50:25 +00:00
Alex Deymo d830612305 Add BinPackArguments: false to .clang-format
Without this setting, arguments passed to a function can be packed in
more than one line, with more than one argument per line.

For example, the following code will be formated as this without the
BinPackArguments:

  CallMyFunction(
    with_more_than_one, argument_per_line,
    event_they_dont_fit_in_a_single_line);

On the other hand, with BinPackArguments: false, that code will be
split in:
  CallMyFunction(
    with_more_than_one,
    argument_per_line,
    event_they_dont_fit_in_a_single_line);

or all the arguments in the same line if they all fit.

Bug: None
TEST=None

Change-Id: I48627e66e2a841f89418c0763e7fe6c3e6ea7387
2016-01-25 17:46:21 -08:00
Christopher Ferris 8540216028 Put BacktraceOffline code into a separate library.
BacktraceOffline is the only code that uses libLLVM. Create
a new shared library, backtrace_offline.so, that references this
so that including libbacktrace.so doesn't wind up pulling in libLLVM.

Change-Id: I90c502d833f6c464c3810dffde52a0c6da241cce
2016-01-25 16:26:48 -08:00
Mark Salyzyn 8ef22e432b Merge "logd: test wrap functionality"
am: 1c92d83cda

* commit '1c92d83cdaf78b4f9ef9069f7774851e77b327e7':
  logd: test wrap functionality
2016-01-25 22:48:51 +00:00
Mark Salyzyn 1c92d83cda Merge "logd: test wrap functionality" 2016-01-25 22:45:28 +00:00
Josh Gao 7f3dd26610 Merge "Use dlmalloc from external/dlmalloc instead of bionic/."
am: 506d233e7a

* commit '506d233e7ac8ca4efa80768153d842c296477f99':
  Use dlmalloc from external/dlmalloc instead of bionic/.
2016-01-25 18:50:42 +00:00
Josh Gao 506d233e7a Merge "Use dlmalloc from external/dlmalloc instead of bionic/." 2016-01-25 18:42:54 +00:00
Tom Cherry 9262e5fdcd Merge "init: Update readme.txt to reflect recent changes to init"
am: d401eba04c

* commit 'd401eba04c26bc4ce8b020fb683a93694672fb1b':
  init: Update readme.txt to reflect recent changes to init
2016-01-25 18:20:02 +00:00
Tom Cherry d401eba04c Merge "init: Update readme.txt to reflect recent changes to init" 2016-01-25 18:15:33 +00:00
Marco Nelissen e40b58328f Merge "uid for codec process"
am: c7096b5e42

* commit 'c7096b5e42466b6ca627c0d0829064fd21ec4483':
  uid for codec process
2016-01-25 16:55:32 +00:00
Marco Nelissen c7096b5e42 Merge "uid for codec process" 2016-01-25 16:51:05 +00:00
Marco Nelissen 003c07238a uid for codec process
Change-Id: Iadf8012e6c177bcf487048e1b5a9b4fc51a0aeba
2016-01-25 07:49:39 -08:00
Tom Cherry 1fb20b8377 init: Update readme.txt to reflect recent changes to init
Best practice for services that reside on the system, vendor, and odm
partitions is to have a corresponding init .rc file in the
/{system,vendor,odm}/etc/init directory, which contains its service
entry and any related actions.

Change-Id: I26204f9a0f09ce8069f3791ccd9ee61d164a048f
2016-01-23 05:23:39 +00:00
Ian Pedowitz ecab47c19a Merge "Removing -std=c++14 from bootstat Android.mk"
am: 4606c95760

* commit '4606c9576019ac419b7abd83eb3a7dcd1f16df81':
  Removing -std=c++14 from bootstat Android.mk
2016-01-23 05:14:52 +00:00
Ian Pedowitz 4606c95760 Merge "Removing -std=c++14 from bootstat Android.mk" 2016-01-23 05:10:42 +00:00
Ian Pedowitz 5699ee889a Removing -std=c++14 from bootstat Android.mk
From comments in 7e04be06d1, this
is not needed.

Change-Id: I427efac8d5e0750ea5f4e77e1582d134d9cae089
2016-01-22 20:33:04 -08:00
Nick Kralevich 9deaf7c8a6 Merge "init.rc: mix device-specific data into the Linux RNG"
am: e04b60d2b9

* commit 'e04b60d2b9bf0e6560e3cde6f671f294b796fcdb':
  init.rc: mix device-specific data into the Linux RNG
2016-01-23 04:02:51 +00:00
Nick Kralevich e04b60d2b9 Merge "init.rc: mix device-specific data into the Linux RNG" 2016-01-23 03:59:52 +00:00
Nick Kralevich 27cb410352 init.rc: mix device-specific data into the Linux RNG
Mix the contents of /proc/cmdline and /default.prop
into /dev/urandom. /proc/cmdline often contains
androidboot.serialno, a device-specific unique
identifier. Similarly, /default.prop contains the
build fingerprint and timestamp, which vary between
device families.

Change-Id: I8803b38c7089b2a1217b99a7c1808b29a3b138cf
2016-01-22 19:58:21 -08:00
Rom Lemarchand 7b7b872e8e Merge "bootstat: Use Clang and c++14 standard"
am: 738f0e3edf

* commit '738f0e3edf278809e6a9f08469820480064742a0':
  bootstat: Use Clang and c++14 standard
2016-01-23 03:51:35 +00:00
Rom Lemarchand 738f0e3edf Merge "bootstat: Use Clang and c++14 standard" 2016-01-23 03:41:39 +00:00
Rom Lemarchand 7e04be06d1 bootstat: Use Clang and c++14 standard
Change-Id: Ic156eea4d8731e67b26da0a56a7e69b13df659cb
2016-01-22 19:11:20 -08:00
Bertrand Simonnet b65e80e534 Merge "metricsd: Add more assert clause."
am: 8f8ce0c300

* commit '8f8ce0c3002430bfbbbc95eb3c2a97efa1ac8e36':
  metricsd: Add more assert clause.
2016-01-22 22:24:35 +00:00
Bertrand Simonnet 8f8ce0c300 Merge "metricsd: Add more assert clause." 2016-01-22 22:06:51 +00:00
Bertrand SIMONNET f1aa372f77 metricsd: Add more assert clause.
This CL adds two more checks:
* When populating a closed log with the metadata, make sure the
  SystemProfileSetter is not null.
* When using the update engine client library, check if the update
  engine client object was created correctly. The returning object can
  be null if update engine's binder service is not running.

Bug: 26731548

Change-Id: I8a615c87f33e15a163d56ccfa3a932a0908aac5f
2016-01-22 13:16:30 -08:00
James Hawkins 4ac60013d4 Merge "bootstat: Fix the build on git_mnc-dr1.5-dev-plus-aosp by adding missing C++ includes"
am: 2026cca40f

* commit '2026cca40fe013ed98df144cde4472f3824ca038':
  bootstat: Fix the build on git_mnc-dr1.5-dev-plus-aosp by adding missing C++ includes
2016-01-22 19:36:26 +00:00
James Hawkins 2026cca40f Merge "bootstat: Fix the build on git_mnc-dr1.5-dev-plus-aosp by adding missing C++ includes" 2016-01-22 19:10:46 +00:00