OSDN Git Service

android-x86/frameworks-native.git
8 years agoMerge "Destroy the reference profile during uninstalls" into nyc-dev
Calin Juravle [Wed, 30 Mar 2016 12:32:45 +0000 (12:32 +0000)]
Merge "Destroy the reference profile during uninstalls" into nyc-dev

8 years agoMerge "Do not unlink the profiles if not needed" into nyc-dev
Calin Juravle [Wed, 30 Mar 2016 12:31:54 +0000 (12:31 +0000)]
Merge "Do not unlink the profiles if not needed" into nyc-dev

8 years agoCall _exit() instead of exit() on child failure.
Felipe Leme [Tue, 29 Mar 2016 20:29:11 +0000 (13:29 -0700)]
Call _exit() instead of exit() on child failure.

As explained on man _exit:

"The  function  _exit()  terminates  the calling process "immediately".
Any open file descriptors belonging to the process are closed;"

If exit() is called instead, the resulting zip file will be corrupted.

BUG: 27900023
BUG: 27804637
Change-Id: I6591749603753d6016f350c629b7082cf6780ae2

8 years agoDestroy the reference profile during uninstalls
Calin Juravle [Tue, 29 Mar 2016 15:05:40 +0000 (16:05 +0100)]
Destroy the reference profile during uninstalls

Bug: 27896463
Change-Id: I6b182e2c3276f6228a2ed70ee2c6f0c49c638760

8 years agoDo not unlink the profiles if not needed
Calin Juravle [Tue, 29 Mar 2016 14:36:34 +0000 (15:36 +0100)]
Do not unlink the profiles if not needed

It's enough to just clear the profiles. The app might still run and we
will see misleading warning or we might miss recording profile
information.

Bug: 27895342
Change-Id: I04961f09e0965a3e4af87acb95a7c74773f7a44a

8 years agoMerge changes I653b84e7,Ieafdc14a into nyc-dev
Rob Carr [Tue, 29 Mar 2016 17:35:38 +0000 (17:35 +0000)]
Merge changes I653b84e7,Ieafdc14a into nyc-dev

* changes:
  Apply position updates immediately.
  Move crop outside of geometry state.

8 years agoMerge "Define typical sensor sample rate in native code" into nyc-dev
Peng Xu [Mon, 28 Mar 2016 22:01:33 +0000 (22:01 +0000)]
Merge "Define typical sensor sample rate in native code" into nyc-dev

8 years agoApply position updates immediately.
Robert Carr [Mon, 28 Mar 2016 02:59:19 +0000 (19:59 -0700)]
Apply position updates immediately.

Restores the behavior prior to moving transform
in to geometry state. Now geometry state and scaling
mode only control parameters which would cause
buffer scaling.

Bug: 27729195
Bug: 27687126

Change-Id: I653b84e74407f2533c92f7647e2609fc043ed0a4

8 years agoMove crop outside of geometry state.
Robert Carr [Fri, 25 Mar 2016 22:08:13 +0000 (15:08 -0700)]
Move crop outside of geometry state.

Prior to this CL, if Layer crop is changed while a
surface resize is pending, the crop will not be
applied until a buffer latches at the new size. This
CL makes the crop apply immediately. We can see this
is the desired behavior by looking at the two cases
where a resize is pending.

1. A resize is pending to make the surface smaller.
  In this case we need to be able to immediately update the crop so that
  we can shrink the visible region of the surface at an interactive rate
  with input. The window manager currently uses big surfaces and scaling
  modes to accomplish this.
2. A resize is pending to make the surface larger.
  In this case it doesn't matter. If we expand the crop immediately to
  the new surface size, then we have simply uncropped an area which is
  by definition transparent pixels (as we haven't latched a buffer
  at the new size yet).

This change has conceptual soundness as well. We can see that the
scaling mode will not affect properties that affect scaling (transform,
width/height) but not properties which do not (crop).

Bug: 27729195
Bug: 27687126
Change-Id: Ieafdc14aeecb23085793e3056a746d6f344781df

8 years agoDefine typical sensor sample rate in native code
Peng Xu [Thu, 17 Mar 2016 01:05:35 +0000 (18:05 -0700)]
Define typical sensor sample rate in native code

Porting typical sensor sample rate (e.g. SENSOR_DELAY_UI)
defined in Java API to native code.

Change-Id: I8b59216415bc952b4e953ca6e8058beb1dd3c645

8 years agoMerge "Rename single buffer mode to shared buffer mode" into nyc-dev
Pablo Ceballos [Mon, 28 Mar 2016 19:34:27 +0000 (19:34 +0000)]
Merge "Rename single buffer mode to shared buffer mode" into nyc-dev

8 years agoMerge "Dumping a trace isn't an error" into nyc-dev
John Reck [Mon, 28 Mar 2016 19:34:16 +0000 (19:34 +0000)]
Merge "Dumping a trace isn't an error" into nyc-dev

8 years agoDumping a trace isn't an error
John Reck [Mon, 28 Mar 2016 18:25:30 +0000 (11:25 -0700)]
Dumping a trace isn't an error

Change-Id: I6180c4f72b45b3d64c44a197e7bda3809a69c8fc

8 years agoIncreased estimated max progress of bugreports.
Felipe Leme [Mon, 28 Mar 2016 18:15:22 +0000 (11:15 -0700)]
Increased estimated max progress of bugreports.

The initial estimate was based on earlier work done before new sections
were added, and it was too slow.

Ideally we should have a per-device estimate, but for N we'll just
increase the common max.

BUG: 26373682
Change-Id: I1a8ce7f09fc6588ac1513a20fa1149aab8c38351

8 years agoDon't report errors when trying to delete a non-existing profile dir
Calin Juravle [Mon, 28 Mar 2016 14:11:01 +0000 (15:11 +0100)]
Don't report errors when trying to delete a non-existing profile dir

Also, put destroy_app_current_profiles behind FLAG_STORAGE_DE flag.

Bug: 27081617
Change-Id: Ib8b9ff292784c659259ceb4339b803e3580da7ed

8 years agodumpstate: Add /data/misc/recovery
Mark Salyzyn [Fri, 25 Mar 2016 19:56:39 +0000 (12:56 -0700)]
dumpstate: Add /data/misc/recovery

(cherry picked from commit 23e86e91ff971a00f62954833a17df2dad1a13af)

Bug: 27176738
Change-Id: Ibc2342c6a29e5aebcac4875d7c2eed48fa8af7de

8 years agoMerge "Remove spurious log" into nyc-dev
Chris Tate [Fri, 25 Mar 2016 21:19:58 +0000 (21:19 +0000)]
Merge "Remove spurious log" into nyc-dev

8 years agoRemove spurious log
Christopher Tate [Fri, 25 Mar 2016 21:16:24 +0000 (14:16 -0700)]
Remove spurious log

Bug 26696080

Change-Id: I60ce2c1fac653d33a033c1e22f0df87466287fba

8 years agoMerge "Guard against failed array allocation" into nyc-dev
Chris Tate [Fri, 25 Mar 2016 20:55:53 +0000 (20:55 +0000)]
Merge "Guard against failed array allocation" into nyc-dev

8 years agoGuard against failed array allocation
Christopher Tate [Thu, 24 Mar 2016 23:03:44 +0000 (16:03 -0700)]
Guard against failed array allocation

Also sanity check the fd count of incoming Parcels.  Anything
exceeding our actual rlimit is inherently not legit.

Bug 26696080

Change-Id: Ib983dce8e8977d7e33195a4ee471115cdaf1c56b

8 years agoMerge "Do not clean profiles unconditonally during app data clean up" into nyc-dev
Calin Juravle [Fri, 25 Mar 2016 16:56:20 +0000 (16:56 +0000)]
Merge "Do not clean profiles unconditonally during app data clean up" into nyc-dev

8 years agoMerge "SF: Add FenceTracker" into nyc-dev
Pablo Ceballos [Fri, 25 Mar 2016 16:30:50 +0000 (16:30 +0000)]
Merge "SF: Add FenceTracker" into nyc-dev

8 years agoMerge "Improved (or warned about lack of) error handling." into nyc-dev
Felipe Leme [Thu, 24 Mar 2016 23:00:31 +0000 (23:00 +0000)]
Merge "Improved (or warned about lack of) error handling." into nyc-dev

8 years agoImproved (or warned about lack of) error handling.
Felipe Leme [Thu, 24 Mar 2016 18:29:44 +0000 (11:29 -0700)]
Improved (or warned about lack of) error handling.

It would be safer for dumpstate to exit when execvp on a child fails; a
common occurrence is when a list of command arguments is missing NULL.

dumpstate should be more robust to detect those missing NULL-terminated
args, but that will be addressed in a future change.

BUG: 27804637
BUG: 27832567
Change-Id: Ibcbe46041a86b16e365fbb40613b8c4bdf39744c

8 years agoMerge "Manually fix GLES headers" into nyc-dev
Pablo Ceballos [Thu, 24 Mar 2016 20:21:19 +0000 (20:21 +0000)]
Merge "Manually fix GLES headers" into nyc-dev

8 years agoManually fix GLES headers
Pablo Ceballos [Thu, 24 Mar 2016 16:51:17 +0000 (09:51 -0700)]
Manually fix GLES headers

Apply the Khronos proposed fix to the GLES headers

Bug 26832318

Change-Id: I3f476d4b8dc4e1819afb9e791da178417e5cb427

8 years agoDo not clean profiles unconditonally during app data clean up
Calin Juravle [Wed, 23 Mar 2016 13:55:31 +0000 (13:55 +0000)]
Do not clean profiles unconditonally during app data clean up

The goal is to enable profiles to be persisted across OTAs.

This CL makes profile removal a dedicated path which will be called by
PackageManger during an app update or uninstall.

Profiles are cleared when:
- requested to do a full clean up of application data files
- specifically requested to clear them (e.g. app updates)

Profiles are destroyed (includes profile directory removal)
- for each user individually when its application data is destroyed
- for all users if the package gets uninstalled.

Bug: 27081617
Bug: 27688727
Change-Id: Id53c7625011af3cdbe8a58ac0982982fa461e5fd

8 years agoMerge "Installd: Separate profile merging and compilation" into nyc-dev
Andreas Gampe [Thu, 24 Mar 2016 01:59:22 +0000 (01:59 +0000)]
Merge "Installd: Separate profile merging and compilation" into nyc-dev

8 years agoMerge "Fixed send_broadcast and fork handling issues." into nyc-dev
Felipe Leme [Thu, 24 Mar 2016 00:04:14 +0000 (00:04 +0000)]
Merge "Fixed send_broadcast and fork handling issues." into nyc-dev

8 years agoFixed send_broadcast and fork handling issues.
Felipe Leme [Wed, 23 Mar 2016 23:47:00 +0000 (16:47 -0700)]
Fixed send_broadcast and fork handling issues.

send_broadcast() was calling run_command_always(char*, bool, int, char*) passing:
    run_command_always(NULL, 20, true, am_args);

I.e., it was passing "true" (!1) as the boolean, and 1 (true) as the
timeout value; the proper call should be:

    run_command_always(NULL, true, 20, am_args);

Also, the code handling failure on child calls was calling _exit(),
which quits dumpstate - it should simply return the function instead.

BUG: 27804637

Change-Id: If8c9b40eddc8b76f92e6d11078dfe446a39ad4d4

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b...
Dianne Hackborn [Wed, 23 Mar 2016 22:36:35 +0000 (22:36 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b  -s ours am: 162fecd am: 5ad8d44 am: b38df7b am: 4e067d2 am: 72ca325 am: f6d2288
am: 8c1ee7b

* commit '8c1ee7bbecf3dd96c21ba4b0663bcddb25c0a287':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b...
Dianne Hackborn [Wed, 23 Mar 2016 22:34:01 +0000 (22:34 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b  -s ours am: 162fecd am: 5ad8d44 am: b38df7b am: 4e067d2 am: 72ca325
am: f6d2288

* commit 'f6d2288e5893b17639dbd36338ffc4a84a184425':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b...
Dianne Hackborn [Wed, 23 Mar 2016 22:30:35 +0000 (22:30 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b  -s ours am: 162fecd am: 5ad8d44 am: b38df7b am: 4e067d2
am: 72ca325

* commit '72ca3255ba44366d93a4e9bf3cbf1672086ef4c6':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b...
Dianne Hackborn [Wed, 23 Mar 2016 22:27:34 +0000 (22:27 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b  -s ours am: 162fecd am: 5ad8d44 am: b38df7b
am: 4e067d2

* commit '4e067d26119e6b995b795eb2b0a921b24595ab47':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b...
Dianne Hackborn [Wed, 23 Mar 2016 22:25:12 +0000 (22:25 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b  -s ours am: 162fecd am: 5ad8d44
am: b38df7b

* commit 'b38df7b4e9d93686c62d9ec654bba3be6e561d56':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2 am: b4f0f33...
Dianne Hackborn [Wed, 23 Mar 2016 22:22:55 +0000 (22:22 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2 am: b4f0f33 am: e564a36 am: 1e2ce52 am: 3d38d6c am: 6e89bd1
am: e07748c

* commit 'e07748c9520d8a21bde134789c5b4087b02bffef':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b...
Dianne Hackborn [Wed, 23 Mar 2016 22:22:54 +0000 (22:22 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b  -s ours am: 162fecd
am: 5ad8d44

* commit '5ad8d443776e74a56e0e461ae6d333cf52e4f591':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2 am: b4f0f33...
Dianne Hackborn [Wed, 23 Mar 2016 22:19:48 +0000 (22:19 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2 am: b4f0f33 am: e564a36 am: 1e2ce52 am: 3d38d6c
am: 6e89bd1

* commit '6e89bd1aa1844999dccbfa716da82cfef21d434c':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2 am: b4f0f33...
Dianne Hackborn [Wed, 23 Mar 2016 22:17:30 +0000 (22:17 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2 am: b4f0f33 am: e564a36 am: 1e2ce52
am: 3d38d6c

* commit '3d38d6ca5cc95f9ab82a8dba72065edeba527a62':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b...
Dianne Hackborn [Wed, 23 Mar 2016 22:17:30 +0000 (22:17 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17 am: 74d2c4b  -s ours
am: 162fecd

* commit '162fecdc2c98844faaa6cb43a4fbe854f511b077':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2 am: b4f0f33...
Dianne Hackborn [Wed, 23 Mar 2016 22:15:19 +0000 (22:15 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2 am: b4f0f33 am: e564a36
am: 1e2ce52

* commit '1e2ce52e97a27f5d9cd68c809f63e56847c658ac':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17
Dianne Hackborn [Wed, 23 Mar 2016 22:15:19 +0000 (22:15 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 41e7b17
am: 74d2c4b  -s ours

* commit '74d2c4b4c97dbbcf43a9f8870007593d61beb547':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2 am: b4f0f33
Dianne Hackborn [Wed, 23 Mar 2016 22:13:04 +0000 (22:13 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2 am: b4f0f33
am: e564a36

* commit 'e564a36b5ca8ef3cacaebb4707b0e8e38b6d7d2d':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: ce156f6 am: a202396...
Dianne Hackborn [Wed, 23 Mar 2016 22:13:04 +0000 (22:13 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: ce156f6 am: a202396 am: df806c5
am: ecc7934

* commit 'ecc7934d98959a615a8d7cd6c685b7851e1f02f3':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2
Dianne Hackborn [Wed, 23 Mar 2016 22:10:22 +0000 (22:10 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: 12bafe2
am: b4f0f33

* commit 'b4f0f339c714be74cf0ae17e4c88620130b02121':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: ce156f6 am: a202396
Dianne Hackborn [Wed, 23 Mar 2016 22:10:22 +0000 (22:10 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: ce156f6 am: a202396
am: df806c5

* commit 'df806c5c9a488f02d385e03bf6ec261bf8ffd879':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder am: ce156f6
Dianne Hackborn [Wed, 23 Mar 2016 22:07:33 +0000 (22:07 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder am: ce156f6
am: a202396

* commit 'a202396ca27e8d5a658585861cfcd4277d978362':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder
Dianne Hackborn [Wed, 23 Mar 2016 22:07:32 +0000 (22:07 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder
am: 41e7b17

* commit '41e7b1780f106d2eb4304b1f9cf060ce44177cae':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder
Dianne Hackborn [Wed, 23 Mar 2016 22:05:07 +0000 (22:05 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder
am: ce156f6

* commit 'ce156f60adb32c7cbebe50e313f51e564f93fe99':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoFix issue #27252896: Security Vulnerability -- weak binder
Dianne Hackborn [Wed, 23 Mar 2016 22:05:06 +0000 (22:05 +0000)]
Fix issue #27252896: Security Vulnerability -- weak binder
am: 12bafe2

* commit '12bafe205c236da50f34ed85adf62a5631525ab6':
  Fix issue #27252896: Security Vulnerability -- weak binder

8 years agoInstalld: Separate profile merging and compilation
Andreas Gampe [Sun, 20 Mar 2016 18:30:28 +0000 (11:30 -0700)]
Installd: Separate profile merging and compilation

Create a new merge_profiles command to check and merge profiles.

(Almost) always pass a profile to a dexopt pass.

Require compilation filter input to dexopt and use it for dex2oat
(except for hard overrides like safe-mode).

Bug: 27689078
Change-Id: I1257857cc15c17e2271d1261ea4cc80752270fcb

8 years agoFix issue #27252896: Security Vulnerability -- weak binder
Dianne Hackborn [Mon, 21 Mar 2016 17:36:54 +0000 (10:36 -0700)]
Fix issue #27252896: Security Vulnerability -- weak binder

Sending transaction to freed BBinder through weak handle
can cause use of a (mostly) freed object.  We need to try to
safely promote to a strong reference first.

Change-Id: Ic9c6940fa824980472e94ed2dfeca52a6b0fd342
(manually cherry picked and resolved conflicts from commit
c11146106f94e07016e8e26e4f8628f9a0c73199)

8 years agoMerge "Flushes stdout when execvp fails." into nyc-dev
Felipe Leme [Wed, 23 Mar 2016 18:50:37 +0000 (18:50 +0000)]
Merge "Flushes stdout when execvp fails." into nyc-dev

8 years agoFlushes stdout when execvp fails.
Felipe Leme [Wed, 23 Mar 2016 18:47:00 +0000 (11:47 -0700)]
Flushes stdout when execvp fails.

BUG: 27804637
Change-Id: Idf414a1d08bf51854475c74767588a4814c8d806

8 years agoMerge "dumpsys: fix error condition" into nyc-dev
Thierry Strudel [Wed, 23 Mar 2016 18:26:34 +0000 (18:26 +0000)]
Merge "dumpsys: fix error condition" into nyc-dev

8 years agodumpsys: fix error condition
Thierry Strudel [Wed, 23 Mar 2016 18:22:34 +0000 (11:22 -0700)]
dumpsys: fix error condition

Bug: 27809529
Change-Id: Ia2bdac83a367e1dd550ea7a5b50eac14d84f66b2
Signed-off-by: Thierry Strudel <tstrudel@google.com>
8 years agoMerge "Handled failure of execvp and increases am timeout." into nyc-dev
Felipe Leme [Wed, 23 Mar 2016 17:42:56 +0000 (17:42 +0000)]
Merge "Handled failure of execvp and increases am timeout." into nyc-dev

8 years agoHandled failure of execvp and increases am timeout.
Felipe Leme [Wed, 23 Mar 2016 16:50:11 +0000 (09:50 -0700)]
Handled failure of execvp and increases am timeout.

The run_command_always() call fork and runs the command in the child
code, and user to have the above logic:

    if (pid == 0) {
        // boiling code
        execvp(command, (char**) args);
        // execvp's result will be handled after waitpid_with_timeout() below...
        _exit(-1); // ...but it doesn't hurt to force exit, just in case
    }

Recently, the _exit(-1) line was removed and there's been reports of
dumpstate hanging after, because it tries to wait for pid 0 to
finish (and in some cases it even tries to kill it).

Also increased the timeout when running am to send broadcasts.

BUG: 27804637
BUG: 27809534
Change-Id: Ia129253e367e5886d305947e56a643fd660a33bd

8 years agoMerge "Add final crop implementation" into nyc-dev
Pablo Ceballos [Wed, 23 Mar 2016 16:30:52 +0000 (16:30 +0000)]
Merge "Add final crop implementation" into nyc-dev

8 years agoMerge "Delete the entire profile directory when the app is uninstalled" into nyc-dev
Calin Juravle [Wed, 23 Mar 2016 13:49:06 +0000 (13:49 +0000)]
Merge "Delete the entire profile directory when the app is uninstalled" into nyc-dev

8 years agoMerge "sensorservice: Strengthen compiler warnings." into nyc-dev
Greg Kaiser [Wed, 23 Mar 2016 12:35:58 +0000 (12:35 +0000)]
Merge "sensorservice: Strengthen compiler warnings." into nyc-dev

8 years agoMerge "media: add HDRStaticInfo and DescribeHDRStaticInfoParams" into nyc-dev
Lajos Molnar [Wed, 23 Mar 2016 02:30:11 +0000 (02:30 +0000)]
Merge "media: add HDRStaticInfo and DescribeHDRStaticInfoParams" into nyc-dev

8 years agoMerge "dumpsys: make timeout value an argument" into nyc-dev
Thierry Strudel [Wed, 23 Mar 2016 02:17:25 +0000 (02:17 +0000)]
Merge "dumpsys: make timeout value an argument" into nyc-dev

8 years agodumpsys: make timeout value an argument
Thierry Strudel [Tue, 22 Mar 2016 17:25:44 +0000 (10:25 -0700)]
dumpsys: make timeout value an argument

Also rework the args parsing using getopt_long.

Bug: 27788406
Change-Id: I60fd8e614616334d47b8de574f3c81a121a6ac0a
Signed-off-by: Thierry Strudel <tstrudel@google.com>
8 years agoFix issue #27252896: Security Vulnerability -- weak binder
Dianne Hackborn [Mon, 21 Mar 2016 17:36:54 +0000 (10:36 -0700)]
Fix issue #27252896: Security Vulnerability -- weak binder

Sending transaction to freed BBinder through weak handle
can cause use of a (mostly) freed object.  We need to try to
safely promote to a strong reference first.

Change-Id: Ic9c6940fa824980472e94ed2dfeca52a6b0fd342
(cherry picked from commit c11146106f94e07016e8e26e4f8628f9a0c73199)

8 years agoFix issue #27252896: Security Vulnerability -- weak binder
Dianne Hackborn [Mon, 21 Mar 2016 17:36:54 +0000 (10:36 -0700)]
Fix issue #27252896: Security Vulnerability -- weak binder

Sending transaction to freed BBinder through weak handle
can cause use of a (mostly) freed object.  We need to try to
safely promote to a strong reference first.

Change-Id: Ic9c6940fa824980472e94ed2dfeca52a6b0fd342
(cherry picked from commit c11146106f94e07016e8e26e4f8628f9a0c73199)

8 years agoMerge "MediaResourceMonitor: Change argument type from string to int" into nyc-dev
Dongwon Kang [Tue, 22 Mar 2016 23:50:25 +0000 (23:50 +0000)]
Merge "MediaResourceMonitor: Change argument type from string to int" into nyc-dev

8 years agoMediaResourceMonitor: Change argument type from string to int
Dongwon Kang [Tue, 22 Mar 2016 22:22:18 +0000 (15:22 -0700)]
MediaResourceMonitor: Change argument type from string to int

Bug: 27529962
Change-Id: Ic4228aa74c9730134c61a2668932c6ab3b785afc

8 years agoMerge "Install non-working WSI functions if not enabled" into nyc-dev
Courtney Goeltzenleuchter [Tue, 22 Mar 2016 20:31:08 +0000 (20:31 +0000)]
Merge "Install non-working WSI functions if not enabled" into nyc-dev

8 years agosensorservice: Strengthen compiler warnings.
Greg Kaiser [Tue, 22 Mar 2016 19:21:46 +0000 (12:21 -0700)]
sensorservice: Strengthen compiler warnings.

We turn on Wall and Werror for our sensorservice module, and
turn on Wextra for sensorservice and libsensorservice.

This doesn't trigger any new warnings, so this is just a
future-proofing move.

Change-Id: I6574632cd83866e2925697664c33ab9537a4993b

8 years agoMerge "Add debug dump if about to segfault" into nyc-dev
Pablo Ceballos [Tue, 22 Mar 2016 17:39:51 +0000 (17:39 +0000)]
Merge "Add debug dump if about to segfault" into nyc-dev

8 years agoInstall non-working WSI functions if not enabled
Courtney Goeltzenleuchter [Tue, 22 Mar 2016 14:09:58 +0000 (08:09 -0600)]
Install non-working WSI functions if not enabled

b/27537020
These changes make it so that WSI calls dead end if the
application hasn't explicitly enabled them.

Change-Id: I44f95244ec7fd17855daf1c46e9cb6ab4932840f

8 years agoDelete the entire profile directory when the app is uninstalled
Calin Juravle [Tue, 22 Mar 2016 14:15:52 +0000 (14:15 +0000)]
Delete the entire profile directory when the app is uninstalled

We were deleting just the files themselves. We need to delete the
directory as well.

Bug: 27696217
Change-Id: I202a52c711a2132ba10b926f4d0e9ec953f25b43

8 years agoAdd debug dump if about to segfault
Pablo Ceballos [Mon, 21 Mar 2016 23:54:08 +0000 (16:54 -0700)]
Add debug dump if about to segfault

Bug 27674961

Change-Id: I82242d2c1b7cc9646d233bab896f718652e9ce2c

8 years agoAdd final crop implementation
Pablo Ceballos [Fri, 4 Mar 2016 17:54:21 +0000 (17:54 +0000)]
Add final crop implementation

Bug 26559810

Change-Id: Idaccd13cd625c92d18665ddecebdbb266ea365f3

8 years agoSF: Add FenceTracker
Pablo Ceballos [Tue, 26 Jan 2016 01:41:15 +0000 (17:41 -0800)]
SF: Add FenceTracker

FenceTracker tracks all fences in SurfaceFlinger. These timestamps
could be used for debugging, profiling, or be exposed to the
application.

Change-Id: I4297a661c0a7530e744168ac7a2a66c4bca92fd5

8 years agoFixed typo.
Felipe Leme [Mon, 21 Mar 2016 22:44:52 +0000 (15:44 -0700)]
Fixed typo.

BUG: 27419521

Change-Id: Ie9f0b24876353e532f4ebe2ff4935938c3c7a781

8 years agoMerge "Don't use su to when calling am or dumpsys." into nyc-dev
Felipe Leme [Mon, 21 Mar 2016 22:18:54 +0000 (22:18 +0000)]
Merge "Don't use su to when calling am or dumpsys." into nyc-dev

8 years agoMerge "Capture systrace buffers." into nyc-dev
Felipe Leme [Mon, 21 Mar 2016 21:56:11 +0000 (21:56 +0000)]
Merge "Capture systrace buffers." into nyc-dev

8 years agoCapture systrace buffers.
Felipe Leme [Thu, 17 Mar 2016 22:43:25 +0000 (15:43 -0700)]
Capture systrace buffers.

When tracing is enabled (/sys/kernel/debug/tracing/tracing_on = 1),
dumpstate will run 'atrace --async_dump' and redirect its output to a
systrace.txt entry in the zip file.

BUG: 27419521
Change-Id: Ia6de46a691b25febac31331fe0aa8701c9a84ebb

8 years agoMerge "Fix issue #27252896: Security Vulnerability -- weak binder" into nyc-dev
Dianne Hackborn [Mon, 21 Mar 2016 20:39:42 +0000 (20:39 +0000)]
Merge "Fix issue #27252896: Security Vulnerability -- weak binder" into nyc-dev

8 years agoFix issue #27252896: Security Vulnerability -- weak binder
Dianne Hackborn [Mon, 21 Mar 2016 17:36:54 +0000 (10:36 -0700)]
Fix issue #27252896: Security Vulnerability -- weak binder

Sending transaction to freed BBinder through weak handle
can cause use of a (mostly) freed object.  We need to try to
safely promote to a strong reference first.

Change-Id: Ic9c6940fa824980472e94ed2dfeca52a6b0fd342

8 years agoMerge "Removed HardwarePropertiesManagerService helper." into nyc-dev
Polina Bondarenko [Sat, 19 Mar 2016 08:43:32 +0000 (08:43 +0000)]
Merge "Removed HardwarePropertiesManagerService helper." into nyc-dev

8 years agoMerge "media: add and clarify OMX float numerical type" into nyc-dev
Lajos Molnar [Fri, 18 Mar 2016 22:18:25 +0000 (22:18 +0000)]
Merge "media: add and clarify OMX float numerical type" into nyc-dev

8 years agoMerge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74...
Pablo Ceballos [Fri, 18 Mar 2016 22:17:13 +0000 (22:17 +0000)]
Merge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74 am: dc5d0f4  -s ours am: 12a01ba  -s ours am: 6fdc372 am: fdd9851  -s ours am: e98a9a9 am: c240884 am: 1899ffd
am: d53600c  -s ours

* commit 'd53600cc8441a9b552727e8f278f9c4b38224806':
  DO NOT MERGE BQ: fix some uninitialized variables

8 years agoBQ: fix some uninitialized variables am: 93c617f am: f16b857 am: 1ed2469 am: 46da938...
Pablo Ceballos [Fri, 18 Mar 2016 22:17:12 +0000 (22:17 +0000)]
BQ: fix some uninitialized variables am: 93c617f am: f16b857 am: 1ed2469 am: 46da938 am: b2428c7 am: ce3faa0
am: 6c42071

* commit '6c42071f84c450a884c72d38a44ab3f45dd16343':
  BQ: fix some uninitialized variables

8 years agoMerge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74...
Pablo Ceballos [Fri, 18 Mar 2016 22:13:24 +0000 (22:13 +0000)]
Merge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74 am: dc5d0f4  -s ours am: 12a01ba  -s ours am: 6fdc372 am: fdd9851  -s ours am: e98a9a9 am: c240884
am: 1899ffd

* commit '1899ffd6767574f1457b3ab5779e525ecc360d2a':
  DO NOT MERGE BQ: fix some uninitialized variables

8 years agoBQ: fix some uninitialized variables am: 93c617f am: f16b857 am: 1ed2469 am: 46da938...
Pablo Ceballos [Fri, 18 Mar 2016 22:13:22 +0000 (22:13 +0000)]
BQ: fix some uninitialized variables am: 93c617f am: f16b857 am: 1ed2469 am: 46da938 am: b2428c7
am: ce3faa0

* commit 'ce3faa072a58dc01cecffa61d7df0a1d8bca212b':
  BQ: fix some uninitialized variables

8 years agoMerge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74...
Pablo Ceballos [Fri, 18 Mar 2016 22:09:59 +0000 (22:09 +0000)]
Merge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74 am: dc5d0f4  -s ours am: 12a01ba  -s ours am: 6fdc372 am: fdd9851  -s ours am: e98a9a9
am: c240884

* commit 'c240884dccdf9f40725113ab88ebf615325dab19':
  DO NOT MERGE BQ: fix some uninitialized variables

8 years agoBQ: fix some uninitialized variables am: 93c617f am: f16b857 am: 1ed2469 am: 46da938
Pablo Ceballos [Fri, 18 Mar 2016 22:09:59 +0000 (22:09 +0000)]
BQ: fix some uninitialized variables am: 93c617f am: f16b857 am: 1ed2469 am: 46da938
am: b2428c7

* commit 'b2428c71c20a2e67a257eba540e6de2ca0fbae22':
  BQ: fix some uninitialized variables

8 years agoMerge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74...
Pablo Ceballos [Fri, 18 Mar 2016 22:06:30 +0000 (22:06 +0000)]
Merge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74 am: dc5d0f4  -s ours am: 12a01ba  -s ours am: 6fdc372 am: fdd9851  -s ours
am: e98a9a9

* commit 'e98a9a910692cf7dee3bac2b58cf5f08c59db38f':
  DO NOT MERGE BQ: fix some uninitialized variables

8 years agoBQ: fix some uninitialized variables am: 93c617f am: f16b857 am: 1ed2469
Pablo Ceballos [Fri, 18 Mar 2016 22:06:29 +0000 (22:06 +0000)]
BQ: fix some uninitialized variables am: 93c617f am: f16b857 am: 1ed2469
am: 46da938

* commit '46da9385ad96fb1c2baab64fdea01eb3b0b41dd0':
  BQ: fix some uninitialized variables

8 years agoMerge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74...
Pablo Ceballos [Fri, 18 Mar 2016 22:02:33 +0000 (22:02 +0000)]
Merge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74 am: dc5d0f4  -s ours am: 12a01ba  -s ours am: 6fdc372
am: fdd9851  -s ours

* commit 'fdd9851ba326132c11d177bf5152b0c66cd87764':
  DO NOT MERGE BQ: fix some uninitialized variables

8 years agoBQ: fix some uninitialized variables am: 93c617f am: f16b857
Pablo Ceballos [Fri, 18 Mar 2016 22:02:32 +0000 (22:02 +0000)]
BQ: fix some uninitialized variables am: 93c617f am: f16b857
am: 1ed2469

* commit '1ed24698aa431aa4c3198fa3b8e830f1c29812a6':
  BQ: fix some uninitialized variables

8 years agoMerge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74...
Pablo Ceballos [Fri, 18 Mar 2016 20:33:21 +0000 (20:33 +0000)]
Merge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74 am: dc5d0f4  -s ours am: 12a01ba  -s ours
am: 6fdc372

* commit '6fdc37205c32dcbd23718d68e45806c76f1536f8':
  DO NOT MERGE BQ: fix some uninitialized variables

8 years agoBQ: fix some uninitialized variables am: 93c617f
Pablo Ceballos [Fri, 18 Mar 2016 20:33:20 +0000 (20:33 +0000)]
BQ: fix some uninitialized variables am: 93c617f
am: f16b857

* commit 'f16b85752d7344814663c658175cce1a933e976b':
  BQ: fix some uninitialized variables

8 years agoMerge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74...
Pablo Ceballos [Fri, 18 Mar 2016 20:28:44 +0000 (20:28 +0000)]
Merge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74 am: dc5d0f4  -s ours
am: 12a01ba  -s ours

* commit '12a01ba5f4f3f8ba122dfbf689e976019f353b3d':
  DO NOT MERGE BQ: fix some uninitialized variables

8 years agoBQ: fix some uninitialized variables
Pablo Ceballos [Fri, 18 Mar 2016 20:28:43 +0000 (20:28 +0000)]
BQ: fix some uninitialized variables
am: 93c617f

* commit '93c617fd2a5e7910e0ba5c0ed6da152d30920679':
  BQ: fix some uninitialized variables

8 years agoMerge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74
Pablo Ceballos [Fri, 18 Mar 2016 18:03:50 +0000 (18:03 +0000)]
Merge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev am: b4eac74
am: dc5d0f4  -s ours

* commit 'dc5d0f46de1f8a800b3af340ca57278989df151a':
  DO NOT MERGE BQ: fix some uninitialized variables

8 years agoMerge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev
Pablo Ceballos [Fri, 18 Mar 2016 18:01:32 +0000 (18:01 +0000)]
Merge "DO NOT MERGE BQ: fix some uninitialized variables" into klp-dev
am: b4eac74

* commit 'b4eac742c9e3f0238d5d03b237b2038df885ed2c':
  DO NOT MERGE BQ: fix some uninitialized variables