17511 Commits

Author SHA1 Message Date
Christopher Tate
477963198a DO NOT MERGE 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
(cherry picked from commit 2c61c57ac53cbb270b4e76b9d04465f8a3f6eadc)
2016-10-14 22:55:00 +00:00
Todd Kennedy
d220683d33 Force APKs to be streamed
When using the new "cmd" command, APKs must be streamed instead of specifying
a file.

Change-Id: I977cd817ac545d7c5293f53b9fa4b155bea7449e
Fixes: 31251489
Test: manually installed packages using 'adb install', 'adb shell cmd package install' and 'adb shell pm install'
2016-09-22 14:56:45 -07:00
Jaewan Kim
09c3df004b DO NOT MERGE Check caller for sending media key to global priority session
Prevent sending media key events from the non-system app to the global
priority session through the MediaSessionManager.dispatchMediaKeyEvent().
Note that any app can use the API indirectly with
the public API AudioManager.dispatchMediaKeyEvent().

Bug: 29833954
Tested: Installed malicious apps and confirmed that they don't work.
Tested: Run CtsTelecomTestCases and CtsMediaTestCases
Change-Id: I2a9e78196ba7455324e485f098f095d03b47ee15
2016-09-21 10:39:42 +09:00
Sudheer Shanka
e70ebd694b Merge "Fix deadlock in AcitivityManagerService." into nyc-dev 2016-09-19 19:59:09 +00:00
Paul Jensen
8279621b82 Fix build break due to automerge of 7d2198b5 am: baae57ab24 am: 009e08116f am: d6a5f68f52 am: a81dd677d3 am: ad004292e1 am: cc3287ef42
am: f8d3ded044

Change-Id: Id7ca0a8a930e3abfd7edd3a5f192ca478de51a34
2016-09-19 15:15:52 +00:00
Paul Jensen
f8d3ded044 Fix build break due to automerge of 7d2198b5 am: baae57ab24 am: 009e08116f am: d6a5f68f52 am: a81dd677d3 am: ad004292e1
am: cc3287ef42

Change-Id: Ie67919fe79a9102b7bb5b0dd10f66816fdf03e81
2016-09-19 15:08:59 +00:00
Paul Jensen
cc3287ef42 Fix build break due to automerge of 7d2198b5 am: baae57ab24 am: 009e08116f am: d6a5f68f52 am: a81dd677d3
am: ad004292e1

Change-Id: I3c5ac16e2a7cad533c7d8c8b0e611bd26743e875
2016-09-19 15:02:28 +00:00
Paul Jensen
ad004292e1 Fix build break due to automerge of 7d2198b5 am: baae57ab24 am: 009e08116f am: d6a5f68f52
am: a81dd677d3

Change-Id: Id2da47a2300b6fd211da08daddc1873bdc519e14
2016-09-19 14:55:54 +00:00
Paul Jensen
a81dd677d3 Fix build break due to automerge of 7d2198b5 am: baae57ab24 am: 009e08116f
am: d6a5f68f52

Change-Id: I55e5c90dd0b2c52a1cbee5d6be14a339157d6a75
2016-09-19 14:50:48 +00:00
Paul Jensen
d6a5f68f52 Fix build break due to automerge of 7d2198b5 am: baae57ab24
am: 009e08116f

Change-Id: Ied1bf21ec09d9774bd0f12d2688244fe7dc2bd80
2016-09-19 14:43:28 +00:00
Paul Jensen
009e08116f Fix build break due to automerge of 7d2198b5
am: baae57ab24

Change-Id: Iafcc207308b94d37a04d196def0e7c7a5ce037d9
2016-09-19 14:37:29 +00:00
Paul Jensen
baae57ab24 Fix build break due to automerge of 7d2198b5
Bug: 30100884

Change-Id: I8fa379a74b5d9467b5b9498bd18de2a043963c6f
2016-09-19 13:27:41 +00:00
Paul Jensen
c20692329e Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273 am: 6634e90ad7 am: 66ee2296a9 am: d37eb76465 am: ddce8664bd am: 4fd2cc7277 am: 2855de1e7c am: 53a9c65c8d am: 34e77bb699
am: d3a9c09052

Change-Id: If0af355f2163cae5fd2f76c4458bda8a92149beb
2016-09-19 12:21:41 +00:00
Paul Jensen
d3a9c09052 Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273 am: 6634e90ad7 am: 66ee2296a9 am: d37eb76465 am: ddce8664bd am: 4fd2cc7277 am: 2855de1e7c am: 53a9c65c8d
am: 34e77bb699

Change-Id: I205e3c3fe88b28525cd2ec06830dcc9e40b453bb
2016-09-19 12:15:21 +00:00
Paul Jensen
34e77bb699 Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273 am: 6634e90ad7 am: 66ee2296a9 am: d37eb76465 am: ddce8664bd am: 4fd2cc7277 am: 2855de1e7c
am: 53a9c65c8d

Change-Id: Ib5ce70593ec69419bc3ed839ce8cc77b52a32120
2016-09-19 12:08:26 +00:00
Paul Jensen
53a9c65c8d Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273 am: 6634e90ad7 am: 66ee2296a9 am: d37eb76465 am: ddce8664bd am: 4fd2cc7277
am: 2855de1e7c

Change-Id: I67e399dc97073387b2c0c6769bf9b4b19cb91a62
2016-09-19 12:02:09 +00:00
Paul Jensen
2855de1e7c Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273 am: 6634e90ad7 am: 66ee2296a9 am: d37eb76465 am: ddce8664bd
am: 4fd2cc7277

Change-Id: I2bd78344796e888c4fa26dcf2e07a0a24994cb42
2016-09-19 11:55:24 +00:00
Paul Jensen
4fd2cc7277 Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273 am: 6634e90ad7 am: 66ee2296a9 am: d37eb76465
am: ddce8664bd

Change-Id: I9379db3398f066841fdb5435d8128e2d12bff63b
2016-09-19 11:50:42 +00:00
Paul Jensen
ddce8664bd Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273 am: 6634e90ad7 am: 66ee2296a9
am: d37eb76465

Change-Id: I2433d723fd9ec13774eff4aa40a089e73932f357
2016-09-19 11:44:22 +00:00
Paul Jensen
d37eb76465 Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273 am: 6634e90ad7
am: 66ee2296a9

Change-Id: Ib0023b44e521b936ab2f9450ad367b1feda64492
2016-09-19 11:37:54 +00:00
Paul Jensen
66ee2296a9 Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273
am: 6634e90ad7

Change-Id: Id46b32b80d47f6b7e2bfab2740978377a6b711cf
2016-09-19 11:31:54 +00:00
Paul Jensen
6634e90ad7 Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586
am: 9c1cb7a273

Change-Id: I8cd4b0d33da22bc29abd176672659c3eeb8c7d5b
2016-09-19 11:25:21 +00:00
Tadashi G. Takaoka
5e3168efe2 DO NOT MERGE: Catch all exceptions when parsing IME meta data am: 7bb4c82558 am: 0cf8a60b3f
am: 985557ce05

Change-Id: I2069430cc25f652fbf9eb1a45c704cc435b29803
2016-09-18 12:22:44 +00:00
Tadashi G. Takaoka
29f2e1d93a DO NOT MERGE: Catch all exceptions when parsing IME meta data am: f71d2cddf1
am: 57454cf15e

Change-Id: I2620580fca624c6ab4520f0a31c42cef42bafa01
2016-09-18 12:17:17 +00:00
Tadashi G. Takaoka
985557ce05 DO NOT MERGE: Catch all exceptions when parsing IME meta data am: 7bb4c82558
am: 0cf8a60b3f

Change-Id: I4c019bb037a4d8e0b24f0e627ca59894ed7e38ba
2016-09-18 12:17:01 +00:00
Tadashi G. Takaoka
f9dac671ca DO NOT MERGE: Catch all exceptions when parsing IME meta data am: 43f4980e77
am: cd8595cdcf

Change-Id: I27939b464cc8e57a7eba7e03af0f4601fb777ec3
2016-09-18 12:10:22 +00:00
Tadashi G. Takaoka
0cf8a60b3f DO NOT MERGE: Catch all exceptions when parsing IME meta data
am: 7bb4c82558

Change-Id: I78dae55bf202feafe465875b4ddd85ed4827d74d
2016-09-18 12:04:03 +00:00
Tadashi G. Takaoka
cd8595cdcf DO NOT MERGE: Catch all exceptions when parsing IME meta data
am: 43f4980e77

Change-Id: Ibbf09fdbcaf00fd41d832e3e2597978e2a0863a9
2016-09-18 12:03:58 +00:00
Tadashi G. Takaoka
7bb4c82558 DO NOT MERGE: Catch all exceptions when parsing IME meta data
Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
(manually cherry picked from 9b2997d22e6ce2a15065d8e7608dd77b316c2065)
2016-09-16 06:03:42 +00:00
Tadashi G. Takaoka
43f4980e77 DO NOT MERGE: Catch all exceptions when parsing IME meta data
Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
(manually cherry picked from 9b2997d22e6ce2a15065d8e7608dd77b316c2065)
2016-09-16 06:02:18 +00:00
Tadashi G. Takaoka
c6fc6c3b55 DO NOT MERGE: Catch all exceptions when parsing IME meta data
Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
(manually cherry picked from 9b2997d22e6ce2a15065d8e7608dd77b316c2065)
2016-09-16 13:57:05 +09:00
Tadashi G. Takaoka
dddc438e97 Catch all exceptions when parsing IME meta data
Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
2016-09-16 04:40:34 +00:00
Sudheer Shanka
67e05b4d28 Fix deadlock in AcitivityManagerService.
Don't hold mPidsSelfLocked lock when calling
cleanUpApplicationRecordLocked.

Bug: 31463143
Change-Id: I421962cbfd7c466662edcef805c3e27321dc5a98
2016-09-14 14:37:14 -07:00
Hongming Jin
9342e137c6 Only return password for account session flow if the caller is signed
with system key and have get_password permission.

Bug: 30455516
Change-Id: I78484c59e4de1dff685ab91a0a8e7a756fffd9bf
2016-09-14 14:15:56 -07:00
Wyatt Riley
a8037fffd3 LocationManager - Handle Shutdown for right User
Only process a shutdown when it is for all users (whole system),
not a single user

Change-Id: Id51b7fb4606460462c2f6749e5ac3984bdd8319f
Bug: 30646142
(cherry picked from commit 1b24fb17b8613894d6066dcf408e60caf2a56192)
2016-09-12 20:13:55 +00:00
TreeHugger Robot
fb2cdce7c2 Merge "DO NOT MERGE Stop work challenge freeform bypass" into nyc-dev 2016-09-07 22:07:21 +00:00
Adam Seaton
e245037327 Revert "Bump up the uncrypt timeout to 30 min." Creates Null Build to test OTA failure fix. This reverts commit 8abcfed8a42a1ca517ee3c8d0448fda669ff9ded.
am: b57e6560d0

Change-Id: Idaafcb7c835aa7b7b83bb7382900ef3d18fa551f
2016-08-30 23:15:49 +00:00
Adam Seaton
b57e6560d0 Revert "Bump up the uncrypt timeout to 30 min."
Creates Null Build to test OTA failure fix.
This reverts commit 8abcfed8a42a1ca517ee3c8d0448fda669ff9ded.

Change-Id: I64474dad467ce8d8e379e0e2c47814d76ac0ee0d
2016-08-30 22:14:47 +00:00
Todd Kennedy
85a91def5c update shared libraries for system apps
After removing updates for a system package, we weren't updating its
shared libraries when we should have. Make it so.

NOTE: This didn't affect device boot because we update all of the
shared libraries for all system applications after scanning packages.

Bug: 30266503
Change-Id: I8edf4344228fb3e793e7648ea70a041cb5db6af6
(cherry picked from commit 6058df65e645a81bdc7285dcd9f8b12b9f5b534f)
2016-08-29 22:50:49 +00:00
TreeHugger Robot
2bbfe98062 Merge "Eliminate next-alarm-clock broadcast flapping" into nyc-dev 2016-08-29 21:47:04 +00:00
TreeHugger Robot
c8417676ed Merge "DO NOT MERGE -- Fix finishing activity in non-focused stack" into nyc-dev 2016-08-29 21:10:34 +00:00
Christopher Tate
c60da1edc1 Eliminate next-alarm-clock broadcast flapping
When multiple alarm clocks are scheduled at the same time, we would
flap among the alternatives for considering them the 'next upcoming
alarm clock', which in turn would generate [many] spurious broadcasts
about changes to the upcoming alarm situation.  This is now fixed;
once we have found the soonest upcoming alarm clock, we stick with
that one until it becomes unavailable, eliminating the spurious
broadcast traffic.

Bug 29501073

Change-Id: Ice1892490bb339e05fa8bd9d324fa1c6718b4942
(cherry picked from commit 76389c00d3d3ce79e48d9e87b597707ed3e8970c)
2016-08-29 19:44:55 +00:00
Tao Bao
c5a17fc39f Bump up the uncrypt timeout to 30 min.
am: 8abcfed8a4

Change-Id: I35340614fe09f96f8c31cc53a99e366580294490
2016-08-29 19:26:43 +00:00
Andrii Kulian
772c598f66 DO NOT MERGE -- Fix finishing activity in non-focused stack
This CL explicitly checks if we're finishing activity in non-focused
stack as there are other cases except this one when we finish paused
activities in FINISH_AFTER_VISIBLE mode.

Bug: 29007436
Bug: 29458854
Change-Id: I67744d23cd72f2fe8861180008bfdd284a7b5e26
(cherry picked from commit 995fa2bd2d334a37e10760c21ac108f4a3595713)
2016-08-29 18:30:46 +00:00
Tao Bao
8abcfed8a4 Bump up the uncrypt timeout to 30 min.
Bug: 30490464
Change-Id: I9b65afb10134d79b2f5b5275a6d81065a04e91b9
2016-08-26 20:52:41 -07:00
Andrii Kulian
620040db3f DO NOT MERGE -- Correctly finish activity in non-focused stack
When activity is finished we first looked for next activity to
show in focused stack. If real next activity to show in place
of finishing one is in the same non-focused stack, we didn't
fully complete the dismissal process and activity was stuck in
FINISHING state.
This CL checks if we're trying to finish visible activity in
paused state and destroy it immediately if top running activity
is visible - same as we do for pinned activities.

Bug: 29458854
Change-Id: I0d5ceb2daa45c0628d89417c8456e132996bcea9
(cherry picked from commit 7318d63ba6dbb3042907d10d5369fcd5ac444d67)
2016-08-26 23:07:28 +00:00
Robin Lee
0737c2b4c2 DO NOT MERGE Stop work challenge freeform bypass
Bypassing work challenge in freeform mode was trivial by just keeping
work apps open in freeform mode and then switching focus to them from
another app.

Because the only interception point is startActivity this never
triggered work challenge.

The solution is to trigger the check on focus change events and also to
allow passing the result back into the freeform stack instead of dumping
our user out into the homescreen.

Change-Id: I141ecf90b5f0e708a21d27141b6fec6074e5d475
Fix: 30693465
2016-08-26 14:39:34 +00:00
David Christie
36246a43e5 resolve merge conflicts of 8aaffd9 to nyc-dev
Change-Id: I4b1603b4cb1cdfc01f4842b2facf8c31a687bbe5
2016-08-24 16:45:01 -07:00
David Christie
8aaffd9ebf resolve merge conflicts of a2399b4 to mnc-dev am: 6195acc2b5 am: e24eb2dbb5
am: 362668b6f7

Change-Id: I019f76b45de78171ef888d2175dc9140be172784
2016-08-24 22:30:20 +00:00
David Christie
362668b6f7 resolve merge conflicts of a2399b4 to mnc-dev am: 6195acc2b5
am: e24eb2dbb5

Change-Id: Idb6cbe8c16877301aed50faed41fa0390db3cf10
2016-08-24 22:23:42 +00:00