15010 Commits

Author SHA1 Message Date
Clara Bayarri
30f0ff2a1c Merge "Unlock Keystore/Keymaster separately for Work Challenge" into nyc-dev 2016-03-01 01:08:39 +00:00
Dianne Hackborn
72041bb2c6 Merge "Fix issue #27385109: control activity behavior without triggering..." into nyc-dev 2016-03-01 00:35:40 +00:00
Chris Tate
d1bb54b80e Merge "Reintroduce per-app scheduled job limits" into nyc-dev 2016-03-01 00:27:29 +00:00
Phil Burk
4e572d32f8 Merge "AudioService: add support for ENCODED_SURROUND_OUTPUT" into nyc-dev 2016-03-01 00:06:21 +00:00
Jeff Sharkey
8cac67b616 Merge "Need to clear identity when rebooting for FBE." into nyc-dev 2016-03-01 00:03:29 +00:00
Jeff Sharkey
1176e51b49 Need to clear identity when rebooting for FBE.
Bug: 27412530
Change-Id: I6d5b925a16daefd1b6906ce036faeb6244d503fb
2016-02-29 17:01:30 -07:00
Wale Ogunwale
6aeeb21b6b Merge "Use realActivity name when comparing if intents are the same" into nyc-dev 2016-02-29 22:38:29 +00:00
Wale Ogunwale
715a1dcffd Use realActivity name when comparing if intents are the same
The TaskRecord intent (usually the intent of the root activity) component
names are based on the realActivity (the activity we are actually launching
and not the input alias) and the ActivityRecord intent is based on the input
component name which can be an alias. This leads to issues when we are trying
to compare the intent of a task and an activity to see if they resolve to
the same thing since the component names will be different in the case of
aliasing.
We know base the activity intent component name on the realActivity before
comparing with the task record intent.

Bug: 27403679
Bug: 27112965
Change-Id: I196e03bb018582cbac977fb3ad45354f00f51578
2016-02-29 14:27:32 -08:00
Colin Cross
414c529a4f Merge "Add dumpsys meminfo --unreachable" into nyc-dev 2016-02-29 22:19:40 +00:00
Svet Ganov
6ac25c5641 Fix uninstalling apps with damaged/gone APK files
bug:27394497

Change-Id: I0d0317f2d7168be4412a24d34a9f23f04c6d8601
2016-02-29 12:44:44 -08:00
Dianne Hackborn
4a18c26609 Fix issue #27385109: control activity behavior without triggering...
...isUserAMonkey for testing purpose

Add an argument for the caller to specify if they are a poo flinging
monkey.

Change-Id: I0e149a8d78776abaf07517bd4ae886047b7f4252
2016-02-29 12:37:11 -08:00
Phil Burk
ac0f704b1a AudioService: add support for ENCODED_SURROUND_OUTPUT
Preference allows override of AudioPolicyManager.
Lets user force or prevent use of AC3 and DTS regardless
of what the EDID says.

Bug: 26373761
Change-Id: I21440f2b90af9a369a36b7b07724e992501bce6d
Signed-off-by: Phil Burk <philburk@google.com>
2016-02-29 12:20:43 -08:00
Jeff Sharkey
ca6abfd9d6 Delay migration until after user is prepared.
We don't have a vold connection early in the PackageManagerService
constructor, so we can only migrate the system user at boot.  We now
migrate other users only after they're explicitly unlocked by
UserManagerService.

Bug: 27330415
Change-Id: I29f21714acf65a598b8df496af0f7d2cb1d247c4
2016-02-29 12:07:14 -07:00
Clara Bayarri
0a587d2840 Unlock Keystore/Keymaster separately for Work Challenge
The Keystore should be unlocked by the work challenge when
the work profile has its own lock, and should not be unlocked
by the device lock in this case.

Tested use cases:

When unified, both users have the password key set to the parent's
Setting a work challenge changes the work profile's password key to its
own
Unifying causes the work challenge key to be set to null first and then
when the device password is reset right after that it is reset to the
same as the parent
Unlocking when locks are unified unlocks both using the same password
key
Unlocking the device when not unified only unlocks the parent
Unlocking the work challenge only unlocks the work profile

Bug:26817206
Change-Id: I99dca279687f4f77636992e355dbdb607bbf7b6d
2016-02-29 10:06:54 -08:00
Jeff Sharkey
b15a71913e Avoid NPE when deleting package during boot.
Bug: 27314561
Change-Id: I7cf854a9db6224ad927ca8c9b4c2641b2841fe7e
2016-02-27 17:24:26 -07:00
Jeff Sharkey
f8880561e6 When system server goes down, crash apps more.
Similar to first patch, but now using new "rethrowFromSystemServer()"
method which internally translates DeadObjectException into
DeadSystemException.  New logic over in Log.printlns() now
suppresses the DeadSystemException stack traces, since they're
misleading and just added pressure to the precious log buffer space.

Add some extra RuntimeInit checks to suppress logging-about-logging
when the system server is dead.

Bug: 27364859
Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
2016-02-27 17:17:01 -07:00
Andy Hung
2362bdf2c7 Merge "Make master mono controlled through settings" into nyc-dev 2016-02-27 02:50:07 +00:00
Christopher Tate
0213ace014 Reintroduce per-app scheduled job limits
There was a period of interim deployments during which sync-manager jobs
were not properly attributed to the package whose sync operations were
being driven.  This situation is now corrected when it is encountered.

Bug 27335118

Change-Id: Iafc40c80093499447b2e62a4888e3ece0371bfcb
2016-02-26 16:57:24 -08:00
Chong Zhang
6f9e1039d5 Merge "Do not apply stack bounds if the window is above lockscreen" into nyc-dev 2016-02-27 00:53:48 +00:00
Chong Zhang
bcb8d82513 Do not apply stack bounds if the window is above lockscreen
bug: 27208572
Change-Id: I4cd3af47474c93180d95a2f51ac7b52a21ddd999
2016-02-26 16:23:04 -08:00
Felipe Leme
bb6939e42a Merge "Add pre-defined apps to the restrict background whitelist." into nyc-dev 2016-02-27 00:21:58 +00:00
Muyuan Li
187b9b9e5b Merge "Allows components to register shortcut key." into nyc-dev 2016-02-26 22:40:36 +00:00
Jean-Michel Trivi
768d81374b Merge "Audio record notification: report audio device information" into nyc-dev 2016-02-26 22:37:34 +00:00
Muyuan Li
94ce94e960 Allows components to register shortcut key.
The registered shortcut will be called from PhoneWindowManager,
before dispatching

Change-Id: If26128939b45a639c8895719a7a23ca433f39fd9
(cherry picked from commit 4da863c5a8872dcabb179a978a2b2157d9081679)
2016-02-26 22:30:34 +00:00
Sandra Kwan
6fe181abd2 Merge "AccountManager: fix residue data when authenticator is uninstalled." into nyc-dev 2016-02-26 21:51:49 +00:00
Felipe Leme
a9505cc39b Add pre-defined apps to the restrict background whitelist.
System config can defined apps to be automatically whitelisted for
restricted background data, but the user can remove the whitelist.

Implementation-wise, NPMS now keeps a list of
<revoked-restrict-background> UIDs in the netpolicy.xml file, and when
it starts it compares the UIDs returned by SystemConfig against this
list, and only whitelist them if they are not revoked. The
revoked-restrict-background is then updated as users change the
whitelist status of UIDs.

BUG: 27366993

Change-Id: I427024fd058924fc9831e409da6636e1bf8e4219
2016-02-26 13:37:21 -08:00
Wale Ogunwale
503d1ccce9 Merge "Clear starting window request if remove is requested before it is added" into nyc-dev 2016-02-26 21:22:11 +00:00
Julia Reynolds
01e81117a9 Merge "Api review: NotificationManager" into nyc-dev 2016-02-26 20:56:27 +00:00
Jorim Jaggi
a8914a0096 Merge "App transition delay tracking" into nyc-dev 2016-02-26 20:51:40 +00:00
Julia Reynolds
0edb50c4bf Api review: NotificationManager
Bug: 27365672
Change-Id: Ic0fd82fb9442d10d6b308182a3859497aa882d07
2016-02-26 15:44:41 -05:00
Jorim Jaggi
275561a746 App transition delay tracking
Add TRON logging for all kinds aspects when we execute an app transition.

Bug: 27295491
Change-Id: Icb0cbdb92d4d5fbfedadd40a017a50eb217058aa
2016-02-26 14:15:00 -05:00
Jean-Michel Trivi
8ab728093e Audio record notification: report audio device information
Support querying the AudioDeviceInfo in AudioRecordConfiguration.
When AudioService (through RecordingActivityMonitor) receives
  a recording event on an existing session, report it as an
  update if the recording configuration has changed.

Bug 22876530

Change-Id: I1b72c08aa0589077fe8ad254087965e6384ce50a
2016-02-26 11:11:30 -08:00
Sandra Kwan
1c9026de57 AccountManager: fix residue data when authenticator is uninstalled.
Bug: 20447341
Change-Id: Ie7bbc0300e1f902f18a826ef45b9cbae445651ec
2016-02-26 10:46:32 -08:00
Dianne Hackborn
77ca74d941 Merge "Work on issue #26390161: Throttle syncs/jobs when system is low on RAM" into nyc-dev 2016-02-26 18:44:55 +00:00
Wale Ogunwale
f40c11b11f Clear starting window request if remove is requested before it is added
It is possible the add starting window to be scheduled and a remove request
come in before it is actually added. In this case we want to prevent the
addition of the starting window by clearing the AppWindowToken.startingData.

Bug: 26659857
Change-Id: I3ef6ea81d555e81b62e894003aadcc51d281b1ad
2016-02-26 08:25:25 -08:00
Julia Reynolds
f0f629ffe4 Introduce IMPORTANCE_MIN.
Allow HUNs for >= IMPORTANCE_HIGH.
Allow full screen intents for IMPORTANCE_MAX.

Bug: 22960980
Bug: 26918284
Change-Id: Id4d2b90ea2e21563dbc716db411060d826e73699
2016-02-26 10:54:08 -05:00
Andy Hung
7b98e9a7e5 Make master mono controlled through settings
Bug: 15283594
Change-Id: I94a84a3ad3bbb0c1179726a4ecc68b7df033af58
2016-02-25 18:34:50 -08:00
Jim Miller
76e2334270 Merge "Fix permission check in hasEnrolledFingerprints()" into nyc-dev 2016-02-26 01:12:49 +00:00
Chris Tate
5a85aff8a0 Merge "Tidy up stale lock wallpaper state in set-both operation" into nyc-dev 2016-02-26 01:11:36 +00:00
Jim Miller
1fd298bdcb Fix permission check in hasEnrolledFingerprints()
Fixes bug 27350799

Change-Id: Icd00985b5ad9a8159733e9180c79f646b275b60d
2016-02-25 17:11:33 -08:00
Christopher Tate
db27b844f4 Tidy up stale lock wallpaper state in set-both operation
Also fix bug that was failing to remember the lock-only wallpaper, and
along the way make the disk write a single large block operation instead
of a number of small writes.

Bug 27353079

Change-Id: Ib1351e509af95905dced41e69c6e13dcce839511
2016-02-25 16:47:04 -08:00
Jeff Sharkey
58bd7cf54b Merge "Accept non-EA jobs while user is locked." into nyc-dev 2016-02-26 00:15:46 +00:00
Jeff Sharkey
751b5cc547 Merge "configfs is special; don't delete dir contents." into nyc-dev 2016-02-26 00:12:45 +00:00
Jeff Sharkey
12c0da4189 Accept non-EA jobs while user is locked.
We'll keep them around in the pending queue until the user is
unlocked, at which point we'll consider running them.

Bug: 27358148
Change-Id: I2eb538a89206d4caac620b3b4e989b011b309201
2016-02-25 17:10:52 -07:00
Jeff Sharkey
800efcc7f5 configfs is special; don't delete dir contents.
Bug: 27342722
Change-Id: I63e8316a6a6260869b4fdd94fde59b5ec3d7b30a
2016-02-25 17:08:14 -07:00
Lifu Tang
d6492a1c76 Merge "Removed clock type from GnssClock" into nyc-dev 2016-02-25 23:59:45 +00:00
Lifu Tang
38bce7925c Removed clock type from GnssClock
Bug: 27341583
Change-Id: I5ffd891737c3ddf83d9c6a78aa36c94858591199
2016-02-25 15:46:41 -08:00
Phil Weaver
8ca583b29f Merge "Accessibility to toggle multiwindow mode" into nyc-dev 2016-02-25 23:16:52 +00:00
Phil Weaver
315c34e7d6 Accessibility to toggle multiwindow mode
Encapsulating the logic to toggle multiwindow mode from recents,
and plumbing it through to accessibility global actions. Sending
accessibility events when windows bounds change. Exposing the
dock divider window type to accessibility services.

Bug: 27250995
Change-Id: Ib7491f1f853dc7f01bf5c5a4ac1f914f55d0608a
2016-02-25 15:13:11 -08:00
Simranjit Kohli
27d0e1fd66 Revert "[Fix extra data in cache]"
This reverts commit a666d74d4bc7e1298314c516d1309571fb87c212.

Bug: 27314050
Change-Id: I1562c51751f983a49a11e1d37d936974e17388ef
2016-02-25 13:20:16 -08:00