OSDN Git Service

android-x86/frameworks-native.git
8 years agoBenign unsigned integer overflow in Parcel am: f28b295df9
Dan Austin [Fri, 20 Nov 2015 03:48:14 +0000 (03:48 +0000)]
Benign unsigned integer overflow in Parcel am: f28b295df9
am: d210ee62a8

* commit 'd210ee62a8e39abfb57bc272a3facec17118b05a':
  Benign unsigned integer overflow in Parcel

8 years agobinder: Change from C11 <stdatomic.h> to C++11 <atomic>. am: 2ab8014d78
Bailey Forrest [Fri, 20 Nov 2015 03:48:08 +0000 (03:48 +0000)]
binder: Change from C11 <stdatomic.h> to C++11 <atomic>. am: 2ab8014d78
am: 1bb0ca35a8

* commit '1bb0ca35a813876bfa65843219581bc9c37d1d91':
  binder: Change from C11 <stdatomic.h> to C++11 <atomic>.

8 years agoMerge "SF: Don't use pointer if promote() fails"
Pablo Ceballos [Fri, 20 Nov 2015 01:28:49 +0000 (01:28 +0000)]
Merge "SF: Don't use pointer if promote() fails"

8 years agoMerge "Fixed check if zip file was generated properly."
Felipe Leme [Thu, 19 Nov 2015 23:38:38 +0000 (23:38 +0000)]
Merge "Fixed check if zip file was generated properly."

8 years agoFixed check if zip file was generated properly.
Felipe Leme [Thu, 19 Nov 2015 23:30:35 +0000 (15:30 -0800)]
Fixed check if zip file was generated properly.

During the earlier development stages, this function was returning an
int and later it was changed to boolean, but the check was not updated.

BUG: 25563823
Change-Id: I77f50bf2184d5dd4da2156a5eca4c8a555b567a4

8 years agoBenign unsigned integer overflow in Parcel
Dan Austin [Thu, 19 Nov 2015 23:23:48 +0000 (23:23 +0000)]
Benign unsigned integer overflow in Parcel
am: f28b295df9

* commit 'f28b295df90da3b9610cc5d6100039e54d95f49a':
  Benign unsigned integer overflow in Parcel

8 years agobinder: Change from C11 <stdatomic.h> to C++11 <atomic>.
Bailey Forrest [Thu, 19 Nov 2015 23:23:43 +0000 (23:23 +0000)]
binder: Change from C11 <stdatomic.h> to C++11 <atomic>.
am: 2ab8014d78

* commit '2ab8014d78fe89b022cd8f69024112780fecdd30':
  binder: Change from C11 <stdatomic.h> to C++11 <atomic>.

8 years agoSF: Don't use pointer if promote() fails
Pablo Ceballos [Thu, 19 Nov 2015 22:39:14 +0000 (14:39 -0800)]
SF: Don't use pointer if promote() fails

Bug 25759725

Change-Id: I51f82154bf86ded24503c07f1932b115aa709cd4

8 years agoMerge "Temporarily relax device-encryption failures."
Jeff Sharkey [Thu, 19 Nov 2015 22:36:13 +0000 (22:36 +0000)]
Merge "Temporarily relax device-encryption failures."

8 years agoTemporarily relax device-encryption failures.
Jeff Sharkey [Thu, 19 Nov 2015 22:35:27 +0000 (15:35 -0700)]
Temporarily relax device-encryption failures.

Long-term fix is to get vold connected before doing initial package
scan, and prepare all user directories.

Bug: 25796509
Change-Id: Ibcfc44411e9921cf3fa3d0510d300808a2a62e7e

8 years agoMerge "Add support for new sched kernel tracepoint" am: 61c9506a09 am: 31a851cd75
Riley Andrews [Thu, 19 Nov 2015 22:18:01 +0000 (22:18 +0000)]
Merge "Add support for new sched kernel tracepoint" am: 61c9506a09 am: 31a851cd75
am: 3619cb2909

* commit '3619cb2909cbd21cfd080fb1142fd77207cee1d8':
  Add support for new sched kernel tracepoint

8 years agoMerge "Add support for new sched kernel tracepoint" am: 61c9506a09
Riley Andrews [Thu, 19 Nov 2015 22:12:12 +0000 (22:12 +0000)]
Merge "Add support for new sched kernel tracepoint" am: 61c9506a09
am: 31a851cd75

* commit '31a851cd7580d6babdc011b3f50da760e7e4274a':
  Add support for new sched kernel tracepoint

8 years agoMerge "Add support for new sched kernel tracepoint"
Riley Andrews [Thu, 19 Nov 2015 22:06:48 +0000 (22:06 +0000)]
Merge "Add support for new sched kernel tracepoint"
am: 61c9506a09

* commit '61c9506a09959ae07832cc019818f869403d3f2a':
  Add support for new sched kernel tracepoint

8 years agoMerge "Add support for new sched kernel tracepoint"
Riley Andrews [Thu, 19 Nov 2015 22:05:29 +0000 (22:05 +0000)]
Merge "Add support for new sched kernel tracepoint"

8 years agoAdd support for new sched kernel tracepoint
Riley Andrews [Thu, 19 Nov 2015 21:31:17 +0000 (13:31 -0800)]
Add support for new sched kernel tracepoint

This tracepoint gives systrace the means to display the reason
for uninterruptible sleep.

8 years agoAllow using the JIT am: 806313fe81 -s ours
Todd Kennedy [Thu, 19 Nov 2015 19:24:44 +0000 (19:24 +0000)]
Allow using the JIT am: 806313fe81  -s ours
am: bba52a6016

* commit 'bba52a60167a1b7d7f4f5f1b86aa7247373fc6e5':
  Allow using the JIT

8 years agoAllow using the JIT
Todd Kennedy [Thu, 19 Nov 2015 19:15:38 +0000 (19:15 +0000)]
Allow using the JIT
am: 806313fe81  -s ours

* commit '806313fe8168fe7e68c21a839966fd6c31ec8189':
  Allow using the JIT

8 years agoPass dexopt flags as integer am: 90907aca73 -s ours
Todd Kennedy [Thu, 19 Nov 2015 19:06:39 +0000 (19:06 +0000)]
Pass dexopt flags as integer am: 90907aca73  -s ours
am: d2da0be029

* commit 'd2da0be029aeeb4bf18616918cc435d3318534c7':
  Pass dexopt flags as integer

8 years agoPass dexopt flags as integer
Todd Kennedy [Thu, 19 Nov 2015 18:54:20 +0000 (18:54 +0000)]
Pass dexopt flags as integer
am: 90907aca73  -s ours

* commit '90907aca732cf5cbb80cc95993f2401857254069':
  Pass dexopt flags as integer

8 years agoMerge "More device-encrypted directory work."
Jeff Sharkey [Thu, 19 Nov 2015 18:45:41 +0000 (18:45 +0000)]
Merge "More device-encrypted directory work."

8 years agoMore device-encrypted directory work.
Jeff Sharkey [Wed, 18 Nov 2015 21:15:17 +0000 (14:15 -0700)]
More device-encrypted directory work.

Unify package directory creation logic, and always create user_de
directories to be ready for emulation mode.  Also clean up the new
user_de directories on user deletion, package uninstallation, and
data clearing.  Also run restorecon over the new user_de paths.

Bug: 22358539
Change-Id: I65ab1562db8455dae6e99dbd8965409b1bf3c6b0

8 years agobatteryservice: Add max charging voltage am: 4e5a5adda8
Badhri Jagan Sridharan [Thu, 19 Nov 2015 16:37:06 +0000 (16:37 +0000)]
batteryservice: Add max charging voltage am: 4e5a5adda8
am: e333d98885

* commit 'e333d98885b27fcd1da91ea549c6dfafb08ffd86':

8 years agobatteryservice: Add max charging voltage
Badhri Jagan Sridharan [Thu, 19 Nov 2015 16:30:45 +0000 (16:30 +0000)]
batteryservice: Add max charging voltage
am: 4e5a5adda8

* commit '4e5a5adda807cec54df8c1f2ccf51830abe9b4e2':
  batteryservice: Add max charging voltage

8 years agoLoad the emulation libraries only when qemu.gles=1
Nicolas Capens [Fri, 6 Nov 2015 15:10:21 +0000 (10:10 -0500)]
Load the emulation libraries only when qemu.gles=1

Bug 25467020

Change-Id: I4a47f369078af03e4146b3b96a7e7a8e8390da61
(cherry picked from commit 8404ebc7487ebcf317e88c78cbb81e238fb55c3f)

8 years agoMerge "Revert "Add support for unique_fds and vectors of file descriptors"" am: 5cd09...
Casey Dahlin [Thu, 19 Nov 2015 05:47:33 +0000 (05:47 +0000)]
Merge "Revert "Add support for unique_fds and vectors of file descriptors"" am: 5cd09786eb am: fb92cfcd3e
am: 4c9066efd0

* commit '4c9066efd0de825247d77c227f264ab4423110be':
  Revert "Add support for unique_fds and vectors of file descriptors"

8 years agoMerge "Add support for unique_fds and vectors of file descriptors" am: b1819fc295...
Casey Dahlin [Thu, 19 Nov 2015 05:46:48 +0000 (05:46 +0000)]
Merge "Add support for unique_fds and vectors of file descriptors" am: b1819fc295 am: 0dd1a5d2f4
am: 7dff1b17af

* commit '7dff1b17afe10c042b799f8e7d4fc9751f65d144':
  Add support for unique_fds and vectors of file descriptors

8 years agoActively mangage EAS schedtune nodes
Todd Kjos [Thu, 19 Nov 2015 05:46:27 +0000 (05:46 +0000)]
Actively mangage EAS schedtune nodes
am: fedb5f4208

* commit 'fedb5f4208669480684d116db1ec2234a6bdaa26':
  Actively mangage EAS schedtune nodes

8 years agoMerge "libbinder: Add binder::Status type" am: babed3ea52 am: d352198294
Christopher Wiley [Thu, 19 Nov 2015 03:24:18 +0000 (03:24 +0000)]
Merge "libbinder: Add binder::Status type" am: babed3ea52 am: d352198294
am: a62a2d7629

* commit 'a62a2d7629cf4ff7681912ee488585652e09b63a':
  libbinder: Add binder::Status type

8 years agoMerge "use negative mask" am: 4e427f0aab am: 469295f68e
Todd Kennedy [Thu, 19 Nov 2015 00:17:33 +0000 (00:17 +0000)]
Merge "use negative mask" am: 4e427f0aab am: 469295f68e
am: d0711b42b7

* commit 'd0711b42b757bcc4ffc2ad8a9989cf728d4bb034':
  use negative mask

8 years agoMerge "Revert "Add support for unique_fds and vectors of file descriptors"" am: 5cd09...
Casey Dahlin [Wed, 18 Nov 2015 21:48:42 +0000 (21:48 +0000)]
Merge "Revert "Add support for unique_fds and vectors of file descriptors"" am: 5cd09786eb
am: fb92cfcd3e

* commit 'fb92cfcd3e8977a6cac0147de80bf2a0fb6a2d87':
  Revert "Add support for unique_fds and vectors of file descriptors"

8 years agoMerge "Revert "Add support for unique_fds and vectors of file descriptors""
Casey Dahlin [Wed, 18 Nov 2015 21:42:30 +0000 (21:42 +0000)]
Merge "Revert "Add support for unique_fds and vectors of file descriptors""
am: 5cd09786eb

* commit '5cd09786eb4ff6e99351e8a317205a5efd12ac74':
  Revert "Add support for unique_fds and vectors of file descriptors"

8 years agoMerge "Revert "Add support for unique_fds and vectors of file descriptors""
Casey Dahlin [Wed, 18 Nov 2015 21:33:48 +0000 (21:33 +0000)]
Merge "Revert "Add support for unique_fds and vectors of file descriptors""

8 years agoRevert "Add support for unique_fds and vectors of file descriptors"
Casey Dahlin [Wed, 18 Nov 2015 21:30:02 +0000 (21:30 +0000)]
Revert "Add support for unique_fds and vectors of file descriptors"

This reverts commit 9626d88882972d45576dcceedc037d2e9843196b.

Change-Id: I6121f388d17c6f2d0cf6f31bc42f0804dd72aba2

8 years agoMerge "Add support for unique_fds and vectors of file descriptors" am: b1819fc295
Casey Dahlin [Wed, 18 Nov 2015 21:10:30 +0000 (21:10 +0000)]
Merge "Add support for unique_fds and vectors of file descriptors" am: b1819fc295
am: 0dd1a5d2f4

* commit '0dd1a5d2f4e69c5df233fa9468191c03dc9b639f':
  Add support for unique_fds and vectors of file descriptors

8 years agoMerge "Add support for unique_fds and vectors of file descriptors"
Casey Dahlin [Wed, 18 Nov 2015 21:04:07 +0000 (21:04 +0000)]
Merge "Add support for unique_fds and vectors of file descriptors"
am: b1819fc295

* commit 'b1819fc295811ca3a005042a80149c8d0655211f':
  Add support for unique_fds and vectors of file descriptors

8 years agoMerge "Add support for unique_fds and vectors of file descriptors"
Casey Dahlin [Wed, 18 Nov 2015 20:54:52 +0000 (20:54 +0000)]
Merge "Add support for unique_fds and vectors of file descriptors"

8 years agoActively mangage EAS schedtune nodes
Todd Kjos [Mon, 16 Nov 2015 23:49:50 +0000 (15:49 -0800)]
Actively mangage EAS schedtune nodes

Move foreground tasks to /sys/fs/cgroup/stune/boost/tasks (boosted
weight in EAS scheduler). Move background tasks to
/sys/fs/cgroup/stune/tasks (default weight). For services started
with init, set "foreground" services to boosted.

Change-Id: I0e489fad9510727c13e6754dabaf311c2391f395

8 years agoAdd support for unique_fds and vectors of file descriptors
Casey Dahlin [Thu, 5 Nov 2015 20:17:29 +0000 (12:17 -0800)]
Add support for unique_fds and vectors of file descriptors

Change-Id: Ic61e69d9db438b4686032459c896aed2a482c9a5
Test: Unit tests pass
Bug: 25242023
Signed-off-by: Casey Dahlin <sadmac@google.com>
8 years agoMerge "libbinder: Add binder::Status type" am: babed3ea52
Christopher Wiley [Wed, 18 Nov 2015 16:30:45 +0000 (16:30 +0000)]
Merge "libbinder: Add binder::Status type" am: babed3ea52
am: d352198294

* commit 'd3521982942874f4149ebc686be581d0ff857734':
  libbinder: Add binder::Status type

8 years agoMerge "libbinder: Add binder::Status type"
Christopher Wiley [Wed, 18 Nov 2015 16:24:53 +0000 (16:24 +0000)]
Merge "libbinder: Add binder::Status type"
am: babed3ea52

* commit 'babed3ea523822f4f5084c3e8a951f2cdf924695':
  libbinder: Add binder::Status type

8 years agoMerge "libbinder: Add binder::Status type"
Christopher Wiley [Wed, 18 Nov 2015 16:18:30 +0000 (16:18 +0000)]
Merge "libbinder: Add binder::Status type"

8 years agoBenign unsigned integer overflow in Parcel
Dan Austin [Thu, 10 Sep 2015 20:46:02 +0000 (13:46 -0700)]
Benign unsigned integer overflow in Parcel

The realloc case in continueWrite did not update the
gParcelGlobalAllocCount value when an allocation occurred.

In addition, there are conditions that could cause the
gParcelGlobalAllocCount value to be decremented below 0, resulting
in a benign unsigned integer overflow that can cause corrupted values
to be returned through system profiling mechanisms.

BUG: 23972600

(cherry picked from commit 48fd7b457bb0657253d6012e787f50498b32ae42)

Change-Id: I1ad2ac02ab370402481550f6ab8f21fce42455e4

8 years agobinder: Change from C11 <stdatomic.h> to C++11 <atomic>.
Bailey Forrest [Wed, 19 Aug 2015 00:15:10 +0000 (17:15 -0700)]
binder: Change from C11 <stdatomic.h> to C++11 <atomic>.

(cherry picked from commit 6913c46492f1153cecc647a87217fbb0b0d19689)

Change-Id: I6e1c62425864e000eda56fe4ba697ac429438659

8 years agoMerge "Remove obsolete profile handling from installd." am: 8161da7a0e am: a51f45a601
Calin Juravle [Wed, 18 Nov 2015 00:20:44 +0000 (00:20 +0000)]
Merge "Remove obsolete profile handling from installd." am: 8161da7a0e am: a51f45a601
am: 357cb908fa

* commit '357cb908faa88b915c1d2c977f16e533e855f19f':
  Remove obsolete profile handling from installd.

8 years agolibbinder: Add binder::Status type
Christopher Wiley [Mon, 9 Nov 2015 23:06:15 +0000 (15:06 -0800)]
libbinder: Add binder::Status type

This object implements equivalent functionality to the Java logic which
serializes and re-throws exceptions from services.

Bug: 25615695
Test: Integration test for generated AIDL code reveals this to work
      correctly.

Change-Id: Ic80c9def0dd232582ea9c49717ec50894af6bfc2

8 years agoMerge "use negative mask" am: 4e427f0aab
Todd Kennedy [Tue, 17 Nov 2015 22:28:03 +0000 (22:28 +0000)]
Merge "use negative mask" am: 4e427f0aab
am: 469295f68e

* commit '469295f68e283977b0a5ff7e04a4413697f7eee7':
  use negative mask

8 years agoMerge "use negative mask"
Todd Kennedy [Tue, 17 Nov 2015 22:22:30 +0000 (22:22 +0000)]
Merge "use negative mask"
am: 4e427f0aab

* commit '4e427f0aabf89b118b9a8f2b128f71a058755ba7':
  use negative mask

8 years agoMerge "use negative mask"
Todd Kennedy [Tue, 17 Nov 2015 21:48:31 +0000 (21:48 +0000)]
Merge "use negative mask"

8 years agobatteryservice: Add max charging voltage
Badhri Jagan Sridharan [Tue, 17 Nov 2015 19:53:07 +0000 (19:53 +0000)]
batteryservice: Add max charging voltage
am: 4e5a5adda8

* commit '4e5a5adda807cec54df8c1f2ccf51830abe9b4e2':
  batteryservice: Add max charging voltage

8 years agoMerge "Fix a few bugs related to dumping files."
Christopher Ferris [Tue, 17 Nov 2015 00:10:09 +0000 (00:10 +0000)]
Merge "Fix a few bugs related to dumping files."

8 years agoActively mangage EAS schedtune nodes
Todd Kjos [Mon, 16 Nov 2015 23:49:50 +0000 (15:49 -0800)]
Actively mangage EAS schedtune nodes

Move foreground tasks to /sys/fs/cgroup/stune/boost/tasks (boosted
weight in EAS scheduler). Move background tasks to
/sys/fs/cgroup/stune/tasks (default weight). For services started
with init, set "foreground" services to boosted.

Change-Id: I0e489fad9510727c13e6754dabaf311c2391f395

8 years agouse negative mask
Todd Kennedy [Mon, 16 Nov 2015 22:41:36 +0000 (14:41 -0800)]
use negative mask

the test should be for _invalid_ bits; as it's written,
it tests for valid bits

Change-Id: Id5e42e865449a7877fe58aca9fb47675fa7452c9

8 years agoFix a few bugs related to dumping files.
Christopher Ferris [Thu, 12 Nov 2015 22:01:56 +0000 (14:01 -0800)]
Fix a few bugs related to dumping files.

Fixes:

- Fix double print of header in dump_file.

- Fix a few possible file descriptor leaks.

- Add /d/ as another directory which should be skipped when printing out
  last mod time of a file.

- Fix possible crash if the path passed to _dump_file_from_fd is less than
  the length of one of the directory checks.

Change-Id: I450dfab76fd0ce4d4dca9ed39c82a980054f3cc3

8 years agoMerge "Added option (-z) to generate a zipfile with the bugreport."
Felipe Leme [Mon, 16 Nov 2015 22:10:20 +0000 (22:10 +0000)]
Merge "Added option (-z) to generate a zipfile with the bugreport."

8 years agoAllow using the JIT
Todd Kennedy [Fri, 25 Sep 2015 21:45:37 +0000 (14:45 -0700)]
Allow using the JIT

Instead of the JIT only being available for eng builds [or configurable
via environment variable], allow the JIT to be enabled programatically.

(cherry picked from commit 12434f8cce66a753ef49c07b503f9625e01366c8)

Change-Id: Id3c5ae227ed400e489bb723a56c516dfc12acd89

8 years agoPass dexopt flags as integer
Todd Kennedy [Fri, 25 Sep 2015 14:47:47 +0000 (07:47 -0700)]
Pass dexopt flags as integer

Instead of using a series of booleans, create a single flags integer
that contains all of the dexopt options.

(cherry picked from commit 76e767ca14bcbb4bc809cd1279ece82a3aabe8a4)

Change-Id: I35542aa73ca57b0e765d19b1339b1429849c1ae8

8 years agobatteryservice: Add max charging voltage
Badhri Jagan Sridharan [Tue, 27 Oct 2015 20:37:05 +0000 (13:37 -0700)]
batteryservice: Add max charging voltage

Bug: 25229483
Change-Id: I4b6dd13870c41907c708f32412261efdca826023
(cherry picked from commit 06f511b469c7ba69d889cc5252e908f1084c8ff5)

8 years agoMerge "Remove obsolete profile handling from installd." am: 8161da7a0e
Calin Juravle [Mon, 16 Nov 2015 11:28:16 +0000 (11:28 +0000)]
Merge "Remove obsolete profile handling from installd." am: 8161da7a0e
am: a51f45a601

* commit 'a51f45a6014907d0e0fd06f0fcffed592c843419':
  Remove obsolete profile handling from installd.

8 years agoMerge "Remove obsolete profile handling from installd."
Calin Juravle [Mon, 16 Nov 2015 11:20:25 +0000 (11:20 +0000)]
Merge "Remove obsolete profile handling from installd."
am: 8161da7a0e

* commit '8161da7a0e54bc4af36e49353e4caad02de384dc':
  Remove obsolete profile handling from installd.

8 years agoMerge "Remove obsolete profile handling from installd."
Calin Juravle [Mon, 16 Nov 2015 11:07:38 +0000 (11:07 +0000)]
Merge "Remove obsolete profile handling from installd."

8 years agoadd vehicle_network_service to stack dump
keunyoung [Fri, 16 Oct 2015 22:21:43 +0000 (15:21 -0700)]
add vehicle_network_service to stack dump

bug: 24095928
Change-Id: I32874f36003cd0dfacc8d9d5b568e6fc963bfa43

8 years agoMerge "SF: Initialize mSingleBufferMode"
Pablo Ceballos [Fri, 13 Nov 2015 22:44:16 +0000 (22:44 +0000)]
Merge "SF: Initialize mSingleBufferMode"

8 years agoMerge "Use templates for write*Vector methods" am: 81960facb6 am: d6bb937114
Casey Dahlin [Fri, 13 Nov 2015 22:22:02 +0000 (22:22 +0000)]
Merge "Use templates for write*Vector methods" am: 81960facb6 am: d6bb937114
am: 18f0bd5731

* commit '18f0bd57311457a0a9f6229c4c409d985651e56d':
  Use templates for write*Vector methods

8 years agoMerge "Use templates for write*Vector methods" am: 81960facb6
Casey Dahlin [Fri, 13 Nov 2015 22:20:05 +0000 (22:20 +0000)]
Merge "Use templates for write*Vector methods" am: 81960facb6
am: d6bb937114

* commit 'd6bb937114a945dd1ebe4299ab2dab1bd6ff795e':
  Use templates for write*Vector methods

8 years agoMerge "Use templates for write*Vector methods"
Casey Dahlin [Fri, 13 Nov 2015 22:18:11 +0000 (22:18 +0000)]
Merge "Use templates for write*Vector methods"
am: 81960facb6

* commit '81960facb673740acd41b72d21febea16ba4986c':
  Use templates for write*Vector methods

8 years agoMerge "Use templates for write*Vector methods"
Casey Dahlin [Fri, 13 Nov 2015 22:15:01 +0000 (22:15 +0000)]
Merge "Use templates for write*Vector methods"

8 years agoUse templates for write*Vector methods
Casey Dahlin [Fri, 13 Nov 2015 21:46:29 +0000 (13:46 -0800)]
Use templates for write*Vector methods

Change-Id: I86223bd54940ebe3e8f090b7786ddfa3ee57195e
Test: AIDL integration tests still pass
Bug: None
Signed-off-by: Casey Dahlin <sadmac@google.com>
8 years agoSF: Initialize mSingleBufferMode
Pablo Ceballos [Fri, 13 Nov 2015 21:39:23 +0000 (13:39 -0800)]
SF: Initialize mSingleBufferMode

Bug 25586311

Change-Id: I2d66542c6ecb762924fa002e5487188703be8515

8 years agoMerge "Move dumpstate to top -H rather than top -t." am: 20986bf383 am: 5e02b1bfbb
Elliott Hughes [Fri, 13 Nov 2015 20:33:43 +0000 (20:33 +0000)]
Merge "Move dumpstate to top -H rather than top -t." am: 20986bf383 am: 5e02b1bfbb
am: 439903c2ff

* commit '439903c2ff50cb632891006b9dfad0b4993b8384':
  Move dumpstate to top -H rather than top -t.

8 years agoMerge "Move dumpstate to top -H rather than top -t." am: 20986bf383
Elliott Hughes [Fri, 13 Nov 2015 20:30:45 +0000 (20:30 +0000)]
Merge "Move dumpstate to top -H rather than top -t." am: 20986bf383
am: 5e02b1bfbb

* commit '5e02b1bfbbaedfb3703cd0f56e6bcac3aa4edfd9':
  Move dumpstate to top -H rather than top -t.

8 years agoMerge "Move dumpstate to top -H rather than top -t."
Elliott Hughes [Fri, 13 Nov 2015 20:28:00 +0000 (20:28 +0000)]
Merge "Move dumpstate to top -H rather than top -t."
am: 20986bf383

* commit '20986bf3830dabae74837660403c43f92c9131bd':
  Move dumpstate to top -H rather than top -t.

8 years agoMerge "Move dumpstate to top -H rather than top -t."
Elliott Hughes [Fri, 13 Nov 2015 20:23:22 +0000 (20:23 +0000)]
Merge "Move dumpstate to top -H rather than top -t."

8 years agoMove dumpstate to top -H rather than top -t.
Elliott Hughes [Fri, 13 Nov 2015 19:32:48 +0000 (11:32 -0800)]
Move dumpstate to top -H rather than top -t.

Change-Id: Ibc26b51e92425b2de7870a7a2890fc3566909cda

8 years agoAdded option (-z) to generate a zipfile with the bugreport.
Felipe Leme [Thu, 12 Nov 2015 03:35:14 +0000 (19:35 -0800)]
Added option (-z) to generate a zipfile with the bugreport.

Currently, dumpstate generates a text file and Shell zips it, but that
breaks the android.intent.action.BUGREPORT_FINISHED contract.

Also changed some string variables from char* to std::string.

BUG: 25563823
Change-Id: I6e61798bf559fa9f79f629b22fd410752da2bbf7

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1...
Lajos Molnar [Fri, 13 Nov 2015 00:27:44 +0000 (00:27 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1 am: 37b8c1f77c am: 8abb053a2e am: bc9bc0e0fc
am: 08a1eacdb1

* commit '08a1eacdb1e03dd6d93869812153270b14662b36':
  OMX: clarify EOS signaling for tunneled decoders

8 years agoMerge "libbinder: Return UNEXPECTED_NULL when appropriate" am: 41e50f99bc am: fb1f4cf4d4
Christopher Wiley [Fri, 13 Nov 2015 00:26:20 +0000 (00:26 +0000)]
Merge "libbinder: Return UNEXPECTED_NULL when appropriate" am: 41e50f99bc am: fb1f4cf4d4
am: e6dde7a85d

* commit 'e6dde7a85d51ec85da7e3e2463686ec8dbb6925f':
  libbinder: Return UNEXPECTED_NULL when appropriate

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1...
Lajos Molnar [Fri, 13 Nov 2015 00:21:08 +0000 (00:21 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1 am: 37b8c1f77c am: 8abb053a2e
am: bc9bc0e0fc

* commit 'bc9bc0e0fc75097e48feff9bb954de648930817c':
  OMX: clarify EOS signaling for tunneled decoders

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1...
Lajos Molnar [Fri, 13 Nov 2015 00:16:41 +0000 (00:16 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1 am: 37b8c1f77c
am: 8abb053a2e

* commit '8abb053a2ea021c649e481813e45860add946e36':
  OMX: clarify EOS signaling for tunneled decoders

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1
Lajos Molnar [Fri, 13 Nov 2015 00:11:57 +0000 (00:11 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1
am: 37b8c1f77c

* commit '37b8c1f77cab3ee9809bcbad81d765ec5bddedce':
  OMX: clarify EOS signaling for tunneled decoders

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev
Lajos Molnar [Fri, 13 Nov 2015 00:07:04 +0000 (00:07 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev
am: f1de4547c1

* commit 'f1de4547c14467c03b00187efde5381dd1fb265c':
  OMX: clarify EOS signaling for tunneled decoders

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev
Lajos Molnar [Fri, 13 Nov 2015 00:00:19 +0000 (00:00 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev

8 years agoMerge "libbinder: Return UNEXPECTED_NULL when appropriate" am: 41e50f99bc
Christopher Wiley [Thu, 12 Nov 2015 22:40:07 +0000 (22:40 +0000)]
Merge "libbinder: Return UNEXPECTED_NULL when appropriate" am: 41e50f99bc
am: fb1f4cf4d4

* commit 'fb1f4cf4d481f1614bae977b187cdb888c8af09a':
  libbinder: Return UNEXPECTED_NULL when appropriate

8 years agoMerge "libbinder: Return UNEXPECTED_NULL when appropriate"
Christopher Wiley [Thu, 12 Nov 2015 22:35:00 +0000 (22:35 +0000)]
Merge "libbinder: Return UNEXPECTED_NULL when appropriate"
am: 41e50f99bc

* commit '41e50f99bc3b832df2b7249ce1d3fc92e718c98d':
  libbinder: Return UNEXPECTED_NULL when appropriate

8 years agoMerge "libbinder: Return UNEXPECTED_NULL when appropriate"
Christopher Wiley [Thu, 12 Nov 2015 22:25:04 +0000 (22:25 +0000)]
Merge "libbinder: Return UNEXPECTED_NULL when appropriate"

8 years agoCloses stdout when it is redirected to a file.
Felipe Leme [Wed, 11 Nov 2015 01:39:08 +0000 (17:39 -0800)]
Closes stdout when it is redirected to a file.

Bug: 19271141
Change-Id: I2990542649e64bf0a281bb9e322ed7b3b98a75c1

8 years agoMerge "Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps."
Felipe Leme [Thu, 12 Nov 2015 00:54:57 +0000 (00:54 +0000)]
Merge "Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps."

8 years agoAdd option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.
Felipe Leme [Wed, 11 Nov 2015 04:10:25 +0000 (20:10 -0800)]
Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.

Such option is useful when debugging dumpstate itself, since it will
finish much sooner and its output will be much smaller.

Change-Id: If821ed21715461bf82eea0b2be4b926239ad69da

8 years agoCreate device-encrypted directories for apps.
Jeff Sharkey [Mon, 9 Nov 2015 21:10:36 +0000 (13:10 -0800)]
Create device-encrypted directories for apps.

When device has FBE, create device-encrypted storage location when
installing apps.

Also remove "renamepkg" unused command.

Bug: 22358539
Change-Id: Ic56eeecdc64bdaa7429b93426727a243a4e45f47

8 years agolibbinder: Return UNEXPECTED_NULL when appropriate
Christopher Wiley [Tue, 10 Nov 2015 17:44:30 +0000 (09:44 -0800)]
libbinder: Return UNEXPECTED_NULL when appropriate

Return a meaningful and consistent error code when libbinder encounters
a null reference that it didn't expect.  This allows us to detect these
situations and cause a corresponding NullPointerException to be thrown
on the remote callsite.

While here, consolidate places we read vector<T> from a parcel into a
single templated version.  This dramatically reduces code duplication.

Bug: 25617251
Test: Integration tests asserting that vectors serialize correctly
      passes.  Integration test asserting that we throw
      NullPointerException on seeing a null reference also passes.

Change-Id: Ia59c264884ec89539c1b99cd7bd28ac201b5b7ac

8 years agoMerge "Migrated dumpstate to C++."
Felipe Leme [Tue, 10 Nov 2015 22:11:10 +0000 (22:11 +0000)]
Merge "Migrated dumpstate to C++."

8 years agoMerge "glgen: Better support for null arguments in JNI"
Pablo Ceballos [Tue, 10 Nov 2015 21:41:52 +0000 (21:41 +0000)]
Merge "glgen: Better support for null arguments in JNI"

8 years agoMigrated dumpstate to C++.
Felipe Leme [Tue, 10 Nov 2015 19:04:45 +0000 (11:04 -0800)]
Migrated dumpstate to C++.

Changes required:

- Explicity casting function pointers.
- Moving variables initialization before 'goto' statements.
- Changing string references from 'char *' to 'const char *'.
- Using 'extern "C"' so device-dependent implementation of
  'dumpstate_board()' can be written in C or C++.

BUG: 25563823
Change-Id: I5712c2adbe181c6d17983cbb136b17757900b4ba

8 years agoMerge "Fix parsing the EGL extension string."
Nicolas Capens [Mon, 9 Nov 2015 20:46:53 +0000 (20:46 +0000)]
Merge "Fix parsing the EGL extension string."

8 years agoMerge "Allow read access to /proc entries for other UIDs" am: fd53598220 am: 877b5daecc
Nick Kralevich [Mon, 9 Nov 2015 20:33:46 +0000 (20:33 +0000)]
Merge "Allow read access to /proc entries for other UIDs" am: fd53598220 am: 877b5daecc
am: 3e606062b3

* commit '3e606062b3b2e8143f5353a7028e78b25a803aa8':
  Allow read access to /proc entries for other UIDs

8 years agoFix parsing the EGL extension string.
Nicolas Capens [Fri, 30 Oct 2015 16:55:21 +0000 (12:55 -0400)]
Fix parsing the EGL extension string.

The EGL extension string does not necessarily have a space before the
terminating null. The previous code would skip the last extension name
when there's no extra space. The new code also works for empty strings.

Change-Id: Ib272cf05a7ebcc0de417f91966489ed4db33c283

8 years agoMerge "Allow read access to /proc entries for other UIDs" am: fd53598220
Nick Kralevich [Mon, 9 Nov 2015 20:30:04 +0000 (20:30 +0000)]
Merge "Allow read access to /proc entries for other UIDs" am: fd53598220
am: 877b5daecc

* commit '877b5daeccaf25a84745b2dfc9f6c5d4f3787ccf':
  Allow read access to /proc entries for other UIDs

8 years agoMerge "Allow read access to /proc entries for other UIDs"
Nick Kralevich [Mon, 9 Nov 2015 20:28:00 +0000 (20:28 +0000)]
Merge "Allow read access to /proc entries for other UIDs"
am: fd53598220

* commit 'fd53598220e19fbb91270f1f1831f6c69c669aaa':
  Allow read access to /proc entries for other UIDs

8 years agoMerge "Allow read access to /proc entries for other UIDs"
Nick Kralevich [Mon, 9 Nov 2015 20:05:20 +0000 (20:05 +0000)]
Merge "Allow read access to /proc entries for other UIDs"

8 years agoAllow read access to /proc entries for other UIDs
Nick Kralevich [Sun, 8 Nov 2015 01:05:41 +0000 (17:05 -0800)]
Allow read access to /proc entries for other UIDs

Allow dumpstate (aka adb bugreport), servicemanager, and
surfaceflinger to access /proc entries associated with other UIDs.

Bug: 23310674
Change-Id: I385dcf0db3376ba979409cbe6fe1a468d36237ef

8 years agoglgen: Better support for null arguments in JNI
Pablo Ceballos [Fri, 2 Oct 2015 01:25:56 +0000 (18:25 -0700)]
glgen: Better support for null arguments in JNI

- Modify the checks.spec file format to specify which argument is
  allowed to be null.
- Update the JniCodeEmitter to support passing null arguments for all
  pointer types as well as strings.
- Update the EGL/GLES checks.spec files and stub files to allow null
  arguments through the JNI layer where the spec allows it.

Bug 9321681

Change-Id: I7d8e7319b43da95993516aa3ac5318b971a1ff92