Commit Graph

252839 Commits

Author SHA1 Message Date
Narayan Kamath
b060316945 Process: Fix communication with zygote. am: 448be0a622
am: 99f960f7da

Change-Id: I471c81919cce6725433895c3d20ca22a8e827b98
2016-08-19 13:29:07 +00:00
Christopher Tate
342b16c6db Merge "Isolated processes don't get precached system service binders" into nyc-mr1-dev
am: 1b58e1c821

Change-Id: If350a2fe5b82301f33c5bf16ccd55f3e487c38f7
2016-08-19 13:18:07 +00:00
Christopher Tate
bf3d892df2 Isolated processes don't get precached system service binders
am: 2c61c57ac5

Change-Id: I1902e0b4401d78a5870c36ba48086819910d55ff
2016-08-19 13:18:03 +00:00
Svetoslav Ganov
de63b40374 Merge "Add resource based mechanism to grant default permissions" into nyc-mr1-dev
am: 9a6008a334

Change-Id: I6391719f2c978d508c8cd5e29c1d2c9cb173f3d7
2016-08-19 13:17:59 +00:00
Svet Ganov
34d85c6087 Add resource based mechanism to grant default permissions
am: 59020bffb7

Change-Id: I34d675b7f2ef4fb439bb582c6b36cb00de16acd8
2016-08-19 13:17:57 +00:00
Todd Kennedy
d8f1599a6a Merge "Release mPackages lock earlier" into nyc-mr1-dev
am: 42b14329f5

Change-Id: I7b6b45115d3ccdf4646395a59c6c572c22b70103
2016-08-19 13:17:54 +00:00
Todd Kennedy
d8443b77cc Release mPackages lock earlier
am: a8d4f48997

Change-Id: I4c6a560fed34887eb67db728b4497b28931ae905
2016-08-19 13:17:51 +00:00
Bill Yi
02799d57d7 Import translations. DO NOT MERGE
Change-Id: I89cc90bed937b12a939bd4c43f0a6ee834ce088a
Auto-generated-cl: translation import
2016-08-19 04:31:46 -07:00
Rubin Xu
9201a30a95 Set DeviceLockedForUser state synchronously
Setting DeviceLockedForUser on the handler thread will lead to a race
condition where an immedidate read might see a stale value.

Bug: 30728557
Change-Id: Id9d510d7ad4dbcde6344a044e45f4b2feac19257
2016-08-19 11:37:14 +01:00
Bill Yi
3f12495742 Import translations. DO NOT MERGE
Change-Id: I6f508568c01e18b729b1e3158c625684c6ffc1d1
Auto-generated-cl: translation import
2016-08-18 22:59:03 -07:00
Jim Miller
b6f4b48df2 Bind fingerprint when we start authentication - DO NOT MERGE
This fixes a bug where it was possible to authenticate the wrong user.
We now bind the userId when we start authentication and confirm it when
authentication completes.

Fixes bug 30744668

Change-Id: I346d92c301414ed81e11fa9c171584c7ae4341c2
2016-08-19 03:46:40 +00:00
Svetoslav Ganov
d44d46aa50 Add resource based mechanism to grant default permissions
This CL adds a mechanism for an OEM to grant default permissions
using the build system. This allows permissions for which they
got default grant exceptions to be added without modifying the
platform code. The format is a simple XML listing the packages
and the permissions to be granted for a package. The XML file
is placed in etc/default-permissions.

bug:29546655
bug:30929033

Change-Id: Ib6d671dac9201812bd2c47010c2c4b1330ef6b6e
2016-08-18 18:39:33 -07:00
Scott Main
97d6427ab0 Merge "fix redirect for AIDL doc bug: 5967288" into nyc-dev
am: 66ffbbfdf9

Change-Id: Ib72ec2497e7b58c42ecca05cc318d7345e9fce69
2016-08-19 01:12:09 +00:00
smain@google.com
3872e56f69 fix redirect for AIDL doc bug: 5967288
am: 9ad944f8c9

Change-Id: I8614af80ea19a68d078ea578d2f8e7a3286f930a
2016-08-19 01:12:05 +00:00
Scott Main
66ffbbfdf9 Merge "fix redirect for AIDL doc bug: 5967288" into nyc-dev 2016-08-19 01:04:03 +00:00
Dianne Hackborn
e9563659a5 Fix issue #30929080: Default Assist app is set to None...
...on removing the third pary search app

We weren't taking into account old style assistants when determining
whether something interesting had been removed.

Change-Id: I6b7b09cdf0781622924e10556d678565570dbd05
2016-08-18 17:33:41 -07:00
TreeHugger Robot
1b58e1c821 Merge "Isolated processes don't get precached system service binders" into nyc-mr1-dev 2016-08-19 00:29:36 +00:00
Svetoslav Ganov
9a6008a334 Merge "Add resource based mechanism to grant default permissions" into nyc-mr1-dev 2016-08-18 23:38:34 +00:00
TreeHugger Robot
42b14329f5 Merge "Release mPackages lock earlier" into nyc-mr1-dev 2016-08-18 23:16:04 +00:00
Narayan Kamath
b8f0cd0248 Merge "Process: Fix communication with zygote." into nyc-dev
am: cce8af824a

Change-Id: I9e945b2a660d5daf57d7c51e8e7c9d814e78a728
2016-08-18 23:08:51 +00:00
Narayan Kamath
99f960f7da Process: Fix communication with zygote.
am: 448be0a622

Change-Id: I530a1f04545a796d22ca59141aa8fe3de349388c
2016-08-18 23:08:49 +00:00
George Mount
a1006363d2 Merge "Fix NPE during Activity transition using wrong Activity." into nyc-mr1-dev
am: 2613fb543a

Change-Id: I82e061d321a935aed4ec9334b51c16d713991d67
2016-08-18 22:32:14 +00:00
George Mount
34abaebd3b Fix NPE during Activity transition using wrong Activity.
am: a3edbf6a5d

Change-Id: Ie6ca8f9f9f251eaf844f842e0f6f0ab36a975c1e
2016-08-18 22:32:08 +00:00
Andy Hung
4b1d87eca6 Merge "AudioSystem: Verify audio port array information" into nyc-mr1-dev
am: 47c7a8c19a

Change-Id: I8cb76567c8de112d4ac11fbdeaf8880b7ec7c7f9
2016-08-18 22:32:00 +00:00
Andy Hung
79d51bf46e AudioSystem: Verify audio port array information
am: 737d9fb181

Change-Id: I7a9eeeac4e0f02b4e045b7f277666bd4d3866441
2016-08-18 22:31:53 +00:00
George Mount
2613fb543a Merge "Fix NPE during Activity transition using wrong Activity." into nyc-mr1-dev 2016-08-18 22:27:31 +00:00
Andy Hung
47c7a8c19a Merge "AudioSystem: Verify audio port array information" into nyc-mr1-dev 2016-08-18 22:25:20 +00:00
Michael Kwan
44f854acd7 Add offset to round screens when an AlertDialog list item is shown.
Bug: 30950051
Change-Id: I4546c2381fef68bc9e2d080c6b50f5df17810044
2016-08-18 15:15:26 -07:00
smain@google.com
9ad944f8c9 fix redirect for AIDL doc
bug: 5967288

Change-Id: Ia2a4cbdde56d2e6baca4c5f74ea92bb7bfaf2938
2016-08-18 14:41:47 -07:00
Tim Murray
6e23e43d54 Merge "Prevent FIFO threads from creating more FIFO threads." into nyc-mr1-dev
am: bb4e37c602

Change-Id: Iea2f53fb8a62d3c59a10ca352a8485cd4d0ee326
2016-08-18 20:31:00 +00:00
Tim Murray
0ceda0c956 Prevent FIFO threads from creating more FIFO threads.
am: 38ee337f45

Change-Id: Iecd7619faae5195934335afc0048cc5ddb6b9ab7
2016-08-18 20:30:58 +00:00
Tim Murray
bb4e37c602 Merge "Prevent FIFO threads from creating more FIFO threads." into nyc-mr1-dev 2016-08-18 20:25:38 +00:00
Svet Ganov
59020bffb7 Add resource based mechanism to grant default permissions
This CL adds a mechanism for an OEM to grant default permissions
using the build system. This allows permissions for which they
got default grant exceptions to be added without modifying the
platform code. The format is a simple XML listing the packages
and the permissions to be granted for a package. The XML file
is placed in etc/default-permissions.

bug:29546655
bug:30929033

Change-Id: Ifb0516d7e2d0b399532024438bc0f86068a2e4e2
2016-08-18 19:52:15 +00:00
Svetoslav Ganov
decad179f6 Merge "Grab lock when accessing mutable state" into nyc-mr1-dev
am: 6642c963d9

Change-Id: Ibe00e1f3bdf916129355a38beece5378ec379a78
2016-08-18 19:12:54 +00:00
Svet Ganov
e1790d928f Grab lock when accessing mutable state
am: 442ed57e4b

Change-Id: Ic8610ed5f0584150d7cda88761bff69dca8d1b42
2016-08-18 19:12:50 +00:00
Svetoslav Ganov
6642c963d9 Merge "Grab lock when accessing mutable state" into nyc-mr1-dev 2016-08-18 19:05:49 +00:00
Ajay Panicker
003342e425 Protect various Bluetooth broadcasts
am: 9a236066db

Change-Id: I71a84c8486b70d6b94e9656a8a1299a9796d0d52
2016-08-18 18:40:25 +00:00
Todd Kennedy
a8d4f48997 Release mPackages lock earlier
We cannot hold mPackages when calling into generatePackageDexopts().
This method takes Package Manager's mInstallLock. By holding mPackages,
we have lock inversion and hilarity ensues.

Change-Id: Ia11a158677051e3511702f38cde6780e75b256fb
Fixes: 30927731
2016-08-18 11:22:52 -07:00
Philip P. Moltmann
366262dc78 Only have a single call into pdfium at a time.
Pdfium is not thread safe and uses global variables, hence no
parallel call pdfium is safe

Fixes: 28705066
Change-Id: I04309ee691bd9cea37587e0af5be2c07ce8c9f2c
(cherry picked from commit 0768a7dc45)
2016-08-18 18:20:59 +00:00
Tim Murray
38ee337f45 Prevent FIFO threads from creating more FIFO threads.
SCHED_FIFO threads shouldn't be able to arbitrarily create more
SCHED_FIFO threads.

bug 30898724

Change-Id: I3704b47b88b573313e9b1610556648c8595d4108
2016-08-18 11:14:15 -07:00
Christopher Tate
2c61c57ac5 Isolated processes don't get precached system service binders
More specifically, they get a PackageManager binder -- necessary for
Android process startup and configuration -- but none of the other
usual preloaded service binders.

Bug 30202228

Change-Id: I3810649f504cd631665ece338a83d2e54d41ad05
2016-08-18 10:15:59 -07:00
George Mount
a3edbf6a5d Fix NPE during Activity transition using wrong Activity.
Bug 30786309

If the Activity used in makeSceneTransitionAnimation isn't
the same one used in the startActivity call, a NullPointerException
could be thrown.

Change-Id: Id21c54fcf99b353feab62f7fc160997ed06e7d23
(cherry picked from commit 3289bfa289)
2016-08-18 17:15:43 +00:00
Ajay Panicker
9a236066db Protect various Bluetooth broadcasts
Bug: 30832954
Change-Id: I37e0b2ffab65c0703244917a4ade9bb8afbb5e6f
2016-08-18 17:10:58 +00:00
Felipe Leme
f8dd7b4e8d Removed screen on/off callbacks from NPMS.
NetworkPolicyManagerService (NPMS) used to depend on screen on/off
changes to determine if a foreground activity should have network
restrictions, but such check is now redundant since ActivityManager
already changes the proper UID state (like going from TOP to
TOP_SLEEPING) when the screen status is changed.

Removing such code decreases the NPMS lock contention when the screen is
turned on in about 3-5ms.

Change-Id: I2853443efedbf14961ae9a5b2e72689d4d1a646c
BUG: 30785671
(cherry picked from commit 88f40ad9a7)
2016-08-18 09:57:11 -07:00
Narayan Kamath
c6c7ca0cde Merge "Process: Fix communication with zygote." into klp-dev am: 6829cf28e2 am: 8fdee85e87 am: 4cf5241f47 am: efab128e67
am: 86437ec433

Change-Id: If18135c4aebd55fa9a1f08e275dbfef3dc433b5e
2016-08-18 10:30:00 +00:00
Narayan Kamath
3c63bb367f Process: Fix communication with zygote. am: 8e69dd2284 am: b85e9e9108 am: b56f4f53e1 -s ours am: 2984748753
am: b9fae65605

Change-Id: I3df204c005d61091f83e6ee2bd6bcd2a63a68c2b
2016-08-18 10:29:55 +00:00
Narayan Kamath
9988387315 Merge "Process: Fix communication with zygote." into nyc-dev am: cce8af824a
am: e24a4590bf

Change-Id: I933fe1f6f191e669a7a6ed4d00660a01f95feade
2016-08-18 10:25:53 +00:00
Narayan Kamath
b9871c0dd3 Process: Fix communication with zygote. am: 448be0a622
am: ac16712d8a

Change-Id: Ief10a90dc77fa8e5cd562a39a6ddbad059353fdf
2016-08-18 10:25:51 +00:00
Narayan Kamath
86437ec433 Merge "Process: Fix communication with zygote." into klp-dev am: 6829cf28e2 am: 8fdee85e87 am: 4cf5241f47
am: efab128e67

Change-Id: I7159b2996f35311a630cdb7b2646c0e94d159c1f
2016-08-18 10:23:23 +00:00
Narayan Kamath
b9fae65605 Process: Fix communication with zygote. am: 8e69dd2284 am: b85e9e9108 am: b56f4f53e1 -s ours
am: 2984748753

Change-Id: Id9f73afcbc747e3e341c5cfa665e4929747fdbac
2016-08-18 10:23:20 +00:00