26981 Commits

Author SHA1 Message Date
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
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
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
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
Chris Wren
1ce4b6d3c6 remove usage of deprecated method setLatestEventInfo
Bug: 18510449
Change-Id: I56a77991c729990e501f402e007dfa79ee57621e
2015-06-12 10:16:04 -04:00
Alex Chau
b24f01f473 Merge "Notification shown upon work profile deletion" into mnc-dev 2015-06-12 10:14:27 +00:00
Jeff Brown
c78f2ab0c4 Merge "Configure auto-rotation tilt tolerance in config.xml." into mnc-dev 2015-06-12 01:59:17 +00:00
Jeff Brown
e97c9a244b Configure auto-rotation tilt tolerance in config.xml.
This allows for the thresholds to be tuned differently for different
products as needed.

Bug: 18276856
Change-Id: I6c87e683dea6a17cf606203a894c8419e20d3658
2015-06-11 18:53:14 -07:00
Yohei Yukawa
f412c80919 Merge "Make VIMS.SettingsObserver multiuser-aware." into mnc-dev 2015-06-12 01:39:08 +00:00
Dianne Hackborn
ece0f4f519 Fix APIs.
Issue #21039494: API Review: android.os.PowerManager.isDeviceIdleMode()
Issue #21347000: API Review: android.content.IntentFilter
Issue #20654534: API Review: android.app.assist

Also allow use of ActivityManager.setWatchHeapLimit on any platform
build as long as the calling app is debuggable.

Change-Id: Ic597e596fa772fcdf2553b64f444b3d9269e8b92
2015-06-11 18:07:43 -07:00
Wei Wang
e4a744b626 Stops BLE scan when scan only mode is disabled.
Bug: 21791070
Change-Id: I1137190f01fb3790b7dfbc409429414da44abe58
2015-06-11 17:53:14 -07:00
Yohei Yukawa
a8a0ac6940 Merge "Do not access WindowManagerService#mCurrentUserId w/o lock." into mnc-dev 2015-06-12 00:39:30 +00:00
Yohei Yukawa
cf83fd2635 Merge "Make WindowManagerService.SettingsObserver multiuser-aware." into mnc-dev 2015-06-12 00:34:39 +00:00
Alex Klyubin
c37c7d9dbe Merge "Do not require USE_FINGERPRINT for getAuthenticatorId." into mnc-dev 2015-06-12 00:25:42 +00:00
Wale Ogunwale
af7289dfa3 Merge "Revert "Enabled WMS.DEBUG_STARTING_WINDOW"" into mnc-dev 2015-06-11 22:12:22 +00:00
Adam Lesinski
2e49bfa6f0 Merge "UsageStats: Change INTERACTION to SYSTEM_INTERACTION" into mnc-dev 2015-06-11 22:02:37 +00:00
Adam Lesinski
c8e8729244 UsageStats: Change INTERACTION to SYSTEM_INTERACTION
SYSTEM_INTERACTION events are signals to the system for a package's
implicit actions (service bound, etc).

These should not affect the API visible stats like lastTimeUsed, etc.
USER_INTERACTION is for user initiated actions (notification interaction, etc).

Bug:21761781
Change-Id: I4585cf35fbb158612a3c737710108bec34e89183
2015-06-11 22:01:45 +00:00
Wale Ogunwale
42892ec641 Merge "Prevent system uid component from running in an app process" into mnc-dev 2015-06-11 21:48:55 +00:00
Carlos Valdivia
b3c134e161 Merge "Revert "Revert "Permissions: Fix account related permissions.""" into mnc-dev 2015-06-11 21:18:03 +00:00
Carlos Valdivia
6eb73a5778 Revert "Revert "Permissions: Fix account related permissions.""
This reverts commit dcddc476651deb72a27798de56eef584e5be5d32.

Change-Id: Ie2402167fc7cd3d5e57bf2fba704fdf00cfcb4fe
2015-06-11 14:10:04 -07:00
Alex Klyubin
a99b8b5e3f Do not require USE_FINGERPRINT for getAuthenticatorId.
This removes the requirement to hold the USE_FINGERPRINT permission
to successfully invoke FingerprintManager.getAuthenticatorId().

This is needed because Android Keystore classes which run inside app
processes occasionally need to access this authenticator ID. The
access however is not necessarily triggered by the developer using
APIs to do with fingerprints. Thus, if an app does not hold the
USE_FINGERPRINT permission and uses Android Keystore API, it may
unexpectedly encounter a SecurityException.

It's OK to provide access to authenticator ID without requiring
USE_FINGERPRINT permission because there are other ways to access
this ID without holding that permission, such as though hidden
KeyStore API.

Once Android Keystore code is restructured to no longer require
access to authenticator ID, this CL can be reverted.

Bug: 21030147
Change-Id: I9af29830abce34c46e29e5c1682cc3ab88c95c00
2015-06-11 13:41:04 -07:00
Mike Lockwood
acd4321872 MidiDeviceServer: Fix race condition in setting device server's mDeviceInfo
This made it unsafe to open ports on a device from the MidiManager onDeviceOpened callback

Bug: 21760692
Change-Id: I536acdf574a3ccecdb66a8fde87089538e8bb1ef
2015-06-11 13:28:36 -07:00
Adam Lesinski
df85c12ba5 Merge "Doze: Use Settings.Global.DEVICE_IDLE_CONSTANTS instead of hardcoded constants" into mnc-dev 2015-06-11 20:24:31 +00:00
Wale Ogunwale
44368567f8 Prevent system uid component from running in an app process
Bug: 21669445
Change-Id: I11d0bc5301d7e2a64972221f54f3cbd611f8e404
2015-06-11 13:04:20 -07:00
Carlos Valdivia
dcddc47665 Revert "Permissions: Fix account related permissions."
This reverts commit ffb46022b30dffdf1cc4cbd08d4bcbe51e1f8814.

Change-Id: I4c62b1b5a5bd4e2a5fac76244a16730526ed67fc
2015-06-11 20:04:04 +00:00
Adam Lesinski
31c05d1361 Doze: Use Settings.Global.DEVICE_IDLE_CONSTANTS instead of hardcoded constants
This will allow gservices to tweak the settings and experiment
with different values for various doze constants.

The values are encoded in a string as a key=value list. Ex:

inactive_to=5000,idle_factor=0.01

Bug:21640379
Change-Id: Ie98a0e4893f9b46a64d961d6c5c5169b8b8ad742
2015-06-11 12:30:47 -07:00
Carlos Valdivia
ffb46022b3 Permissions: Fix account related permissions.
Requires updating the docs in AccountManaager as well as the logic in
AccountManagerService.

MANAGE_ACCOUNTS, USE_CREDENTIALS, and AUTHENTCATE_ACCOUNTS are going
away. Where AUTHENTCATE_ACCOUNTS was required we now do signature
matching.

GET_ACCOUNTS is kept but has been grouped under contacts.

Bug: 20136477
Change-Id: Iabbb76dce8d1efc607c1f107911d7ddab598a481
2015-06-11 11:07:47 -07:00
Craig Lafayette
77b2d49abb Merge "Remove device initializer status messages" into mnc-dev 2015-06-11 17:45:03 +00:00
Benjamin Franz
d168d184c0 Merge "Align the behaviour of different lock task modes" into mnc-dev 2015-06-11 16:15:37 +00:00
Alex Chau
c51b72acc0 Notification shown upon work profile deletion
Bug: 18543323

Change-Id: Ibd9bd20637a7bd019e080da306a19c94d9e82576
2015-06-11 15:17:53 +01:00
Svetoslav
75a0ee081f Merge "Add system API to watch for permission changes" into mnc-dev 2015-06-11 08:02:06 +00:00
Svetoslav
f7c06eb03a Add system API to watch for permission changes
Change-Id: I1ce450a59fb326c14848f46732d877dea33f33c7
2015-06-10 21:24:13 -07:00
Yohei Yukawa
5f531f1f36 Make VIMS.SettingsObserver multiuser-aware.
VoiceInteractionManagerService.SettingsObserver has been used
to monitor per-user settings hence we have to take care of
multiuser scenario.

In the case of VoiceInteractionManagerService, monitoring
changes from all the users is OK because event handlers will
read settins from the current user anyway.

Bug: 21766395
Change-Id: I357fe2a7e2a5645355e696c6fbaae762f54ca029
2015-06-10 21:15:00 -07:00
Yohei Yukawa
92af789d85 Do not access WindowManagerService#mCurrentUserId w/o lock.
This CL is not directly related to Bug #21766030 but is a
kind of follow up CL for I1d93095965c852ff90d8c7cc031c4755856.

Basically we should not access WMS#mCurrentUserId w/o lock.

Bug: 21766030
Change-Id: Ib06ace0a0b84d527e0d7cbcc2a7cb39b27be3794
2015-06-10 20:02:14 -07:00