27010 Commits

Author SHA1 Message Date
Jim Miller
b1c6208c27 Merge "Limit number of fingerprint templates that can be enrolled per device user" into mnc-dev 2015-06-16 03:48:58 +00:00
Jim Miller
599ef0e3cd Limit number of fingerprint templates that can be enrolled per device user
This change places an upper limit on the number of fingerprint templates that
can be enrolled per account.  This is done primarily for performance reasons, but
may also be imposed by hardware and Trusted Execution Environment (TEE) reasons.

Fixes bug 20731847

Change-Id: I5bc337698bef682cdf67940906d24842e1dffc28
2015-06-15 20:42:54 -07:00
Christopher Tate
60177af86a Merge "Clean up app-link verification policy" into mnc-dev 2015-06-16 01:10:48 +00:00
Makoto Onuki
e43bf4bb45 Merge "Allow killApplicationWithAppId() on secondary users" into mnc-dev 2015-06-16 00:51:36 +00:00
Adam Lesinski
d5e5151f6c Merge "Bluetooth energy: fix overflow in calculation" into mnc-dev 2015-06-16 00:46:09 +00:00
Makoto Onuki
fa24bd8ab6 Allow killApplicationWithAppId() on secondary users
Bug 20949609

Change-Id: If0e766aeb3e8b4aa6aebed3b75bcedd75251e382
2015-06-15 17:32:00 -07:00
Adam Lesinski
8a35137388 Bluetooth energy: fix overflow in calculation
Use longs instead of ints, because the energy values can get pretty
high.

Change-Id: I43e696ad9e5965c2e616b11920db5bfae5db1671
2015-06-15 17:19:07 -07:00
Christopher Tate
72c10a25f0 Clean up app-link verification policy
If an app claims to be the official auto-verified app for any domain
and thus the automatic handler for ACTION_VIEW / {http,https}://...
intents naming that domain, then we require that it verify as the
official app for *all* domains it purports to handle, even if the
other domains are not flagged for verify.

Bug 21335460

Change-Id: I3fdd8620defa31aea36ce738fa63ac94fc53c5f7
2015-06-15 15:56:59 -07:00
Dianne Hackborn
1958e5e787 Fix issue #21813831: Need API for asking to be added to power whitelist
Add the API.  Clean up a few related things.

Change-Id: I190adad1812f36f6095b98a1001fedb94874e8b5
2015-06-15 11:53:59 -07:00
Christopher Tate
f63655e49f Merge "Use HTTPS when fetching app link verification resources" into mnc-dev 2015-06-15 17:56:19 +00:00
Paul Jensen
8a6025fdaf Merge "Remove most sleep() calls from ConnectivityServiceTest" into mnc-dev 2015-06-15 13:35:48 +00:00
Chris Wren
b3c8564314 Merge "remove setLatestEventInfo from USB" into mnc-dev 2015-06-15 12:23:26 +00:00
Svet Ganov
a5c852e03a Merge "Clear runtime permissions on package data reset." into mnc-dev 2015-06-14 03:22:09 +00:00
Svet Ganov
2a30be1900 Clear runtime permissions on package data reset.
bug:21817488

Change-Id: I7c51fee5206e3bcb79951f237a71862f0752a709
2015-06-13 20:20:18 -07:00
Nick Kralevich
31b9c1721f Merge "UsbDeviceManager: Modify default function handling" into mnc-dev 2015-06-13 03:12:49 +00:00
Nick Kralevich
43965fe5ce UsbDeviceManager: Modify default function handling
When adb is enabled, there's no need to also enable MTP mode.
ADB mode enabled is sufficient to get connect messages from
the kernel driver.

This change modifies getDefaultFunctions() to return adb mode
if adb is enabled, but mtp when it's not enabled. Also stop
using "none" mode as the default. "none" should only be used
when toggling the driver.

Bug: 21429947
Change-Id: I767491417c6c69a120fcf4f3d6ec0c73311a1a60
2015-06-12 17:21:25 -07:00
Makoto Onuki
80b34d7b9d Merge "Add StorageEventListener.onDiskDestroyed()" into mnc-dev 2015-06-12 23:56:10 +00:00
Amith Yamasani
480d6eb953 Merge "Fix negative inactiveTime on creating a new user" into mnc-dev 2015-06-12 23:38:26 +00:00
Amith Yamasani
d82dbb3ffe Fix negative inactiveTime on creating a new user
Initialize the beginIdleTime to 0 rather than current time.

Bug: 21699099
Change-Id: Ib94a9198c4e80aea5d9de68c5cf5d6f8cfc79e0a
2015-06-12 16:35:17 -07:00
Adam Lesinski
cd9d7b7b07 Merge "App Standby: Convert constants to Settings.Global" into mnc-dev 2015-06-12 23:20:28 +00:00
Jeff Sharkey
1d04e6a6cd Merge "More useful extras in disk/volume broadcasts." into mnc-dev 2015-06-12 23:19:34 +00:00
Adam Lesinski
a6232df053 App Standby: Convert constants to Settings.Global
Use settings instead of hardcoded constants, and listen for their changes.

Bug:21640379
Change-Id: Id8305bb234f93f7c64c1a5e82e26b31504624324
2015-06-12 16:19:07 -07:00
Jeff Sharkey
c7acac6798 More useful extras in disk/volume broadcasts.
Change-Id: I594166cff332aaf72b2b6357ac6ed3e6e42cbc49
2015-06-12 16:16:56 -07:00
Adam Lesinski
a109cc1b6d Merge "BatteryStats: Wifi energy data is sometimes wrong" into mnc-dev 2015-06-12 23:16:10 +00:00
Makoto Onuki
9dc575d63c Add StorageEventListener.onDiskDestroyed()
Bug 21336042

Change-Id: I226cf205191dd302ff8d5156f9ae0fe8fc5b2c2b
2015-06-12 16:11:46 -07:00
dcashman
1a3048f367 Merge "Don't use upgrade-key-sets check when scanning during boot." into mnc-dev 2015-06-12 22:22:00 +00:00
Adam Lesinski
f4013aa4f7 BatteryStats: Wifi energy data is sometimes wrong
Wifi energy data sometimes reports negative values. The bug
is filed, but in the meanwhile, batterystats calculations
are way off due to strange values.

Now we ignore invalid data, and sample again later.
Bug:21613534

Change-Id: I3c5c1385e15d85346e6fd3a2737cb58ca706ab74
2015-06-12 15:18:06 -07:00
Stefan Kuhne
11e6fcb5a8 Merge "Removing screen artifacts afer orientation change in sleep mode" into mnc-dev 2015-06-12 21:54:25 +00:00
Mike Lockwood
d5ca05c3dd Merge "MidiDeviceServer: Fix race condition in setting device server's mDeviceInfo" into mnc-dev 2015-06-12 21:51:39 +00:00
Eric Laurent
7413ab6731 Merge "audioservice: remove BT SCO device when service is disconnected" into mnc-dev 2015-06-12 21:42:55 +00:00
Jeff Sharkey
8dd7ad7429 Merge "Send along the disk ID that we just scanned." into mnc-dev 2015-06-12 21:40:35 +00:00
Jeff Sharkey
e9b64f9735 Send along the disk ID that we just scanned.
Change-Id: I33f1a5363ed171f715b2f6c5690fcee586a8a58c
2015-06-12 14:38:50 -07:00
Eric Laurent
98859b256e audioservice: remove BT SCO device when service is disconnected
Bug: 21727956.
Change-Id: I9dd68ad83583cdbe7454724098c89daf70bee726
2015-06-12 14:35:59 -07:00
Stefan Kuhne
9326dc1407 Removing screen artifacts afer orientation change in sleep mode
Avoiding screen artifacts upon rotation change in sleep mode. This will
be done by postponing orientation changes until the entire UI got drawn.

Bug: 16849724
Change-Id: Ib1d818258d12f5c1909de4558af46aec27e29c75
2015-06-12 11:22:05 -10:00
Chris Wren
6d8e413a63 remove setLatestEventInfo from USB
Bug: 18510449
Change-Id: I6b9ccaa0537c8044c5fa900ae4ea68b2676e1365
2015-06-12 17:10:01 -04:00
Amith Yamasani
bc9b102453 Merge "Update network state of apps leaving the whitelist" into mnc-dev 2015-06-12 20:26:43 +00:00
Amith Yamasani
06f0806bd5 Update network state of apps leaving the whitelist
Bug: 21787562
Change-Id: I9f45acc58ba0b4b6cfed08aecbf081a5f57eb217
2015-06-12 13:23:33 -07:00
Christopher Tate
1c24a8cd31 Merge "If we're out of space, retry background dexopting later" into mnc-dev 2015-06-12 20:23:29 +00:00
Christopher Tate
2c9655b3d4 If we're out of space, retry background dexopting later
Give it 4 hours to give the user time to do stuff, then retry;
repeat until we have space to work in.

Bug 20468442

Change-Id: Id4b11abcc38a9e2a50a062f0067a13ce0ae831ad
2015-06-12 13:06:45 -07:00
Dianne Hackborn
e554cc9659 Merge "Implement some control over ALLOW_WHILE_IDLE alarms." into mnc-dev 2015-06-12 19:38:39 +00:00
Dianne Hackborn
3d1933c45f Implement some control over ALLOW_WHILE_IDLE alarms.
Since these alarms allow you to bypass the idle restrictions,
we don't want them to be so open-ended like other alarms.  This
implements a policy where the alarm manager will only deliver these
types of alarms every X minutes to each application.  For this
initial implementation, X is 1 minute under normal operation and
15 minutes when in idle mode.

To do this, I needed to introduce a new internal allow-while-idle
flag for system alarms, which applications can't get, and doesn't
have these new restrictions.

Also tweaked how the alarm manager handles the alarm window, so it
doesn't change if the alarm gets rescheduld; the window is now always
what as computed based on the time when the alarm was first
given to it.

Finally, fix TimeUtils to be able to correctly print times that
are > 999 days.

Change-Id: Ibad8c6a7c14b0624b54e82267be23224b4c31e84
2015-06-12 12:37:35 -07:00
Chris Wren
17de4b2a73 Merge "remove usage of deprecated method setLatestEventInfo" into mnc-dev 2015-06-12 19:28:54 +00:00
Christopher Tate
3c45863649 Use HTTPS when fetching app link verification resources
Bug 20016932

Change-Id: I30b4e052795551f3048b3adf29cd89ec0501fce8
2015-06-12 11:25:52 -07:00
dcashman
465ef5c439 Don't use upgrade-key-sets check when scanning during boot.
Apps may specify upgrade-key-sets which are different than their current signing
keys to prevent a future upgrade with the current set of keys.  Every package is
re-scanned on boot, however, so the existing application would violate its own
recorded upgrade-key-sets.  Change the key verification check to ignore
upgrade-key-sets on boot.  Also default to the same-sig checks if the
upgrade-key-set meta-data has been corrupted.

Bug: 21785716
Change-Id: I5c0c1e2017ec780a745a74488620bfe95b052269
2015-06-12 11:18:50 -07:00
Amith Yamasani
ffff74abb1 Merge "Report app standby state to batterystats" into mnc-dev 2015-06-12 17:52:55 +00:00
Wei Wang
ebf6fc60b5 Merge "Stops BLE scan when scan only mode is disabled." into mnc-dev 2015-06-12 17:20:34 +00:00
Dianne Hackborn
8a435ced67 Merge "Fix APIs." into mnc-dev 2015-06-12 16:34:38 +00:00
Amith Yamasani
6776849dc5 Report app standby state to batterystats
Also reduce idle checks to the target user if possible.
Optimized calls to some internal methods

Bug: 21639147
Change-Id: If1faf26f862e5c4ca905f2603a4ba52a8d1af954
2015-06-12 09:05:22 -07:00
Paul Jensen
0a2823e539 Remove most sleep() calls from ConnectivityServiceTest
Change-Id: I90d2f6811ed1cb84614101200ac377e920bd864a
2015-06-12 10:31:09 -04:00
Chris Wren
1ce4b6d3c6 remove usage of deprecated method setLatestEventInfo
Bug: 18510449
Change-Id: I56a77991c729990e501f402e007dfa79ee57621e
2015-06-12 10:16:04 -04:00