9209 Commits

Author SHA1 Message Date
Svetoslav
f9f75771cc Grant default permissions if perms reset on upgrade.
Change-Id: I371e8eb42dc8e8953a184d29cc2a3bd2c361097e
2015-06-19 16:42:22 -07:00
Svet Ganov
1e575a0f32 Merge "Only grant runtime permissions to special components." into mnc-dev 2015-06-19 22:26:32 +00:00
Svet Ganov
adc1cf4604 Only grant runtime permissions to special components.
Now runtime permissions are granted only to components that are
part of the system or perform special system operations. For
exmple, the shell UID gets its runtime permissions granted by
default and the default phone app gets the phone permissions
granted by default.

bug:21764803

Change-Id: If8b8cadbd1980ffe7a6fc15bbb5f54a425f6e8f9
2015-06-19 15:17:56 -07:00
Amith Yamasani
b94761d0a4 Merge "App Standby : Association between content providers and their sync adapter" into mnc-dev 2015-06-19 22:08:13 +00:00
Amith Yamasani
37a40c24de App Standby : Association between content providers and their sync adapter
Set sync adapters to active if the associated content providers are used
at foreground process state.

Minimize how frequently published content providers are reported by
keeping track of last reported time.

Also cache sync adapters associated with an authority in SyncManager.

Bug: 21785111
Change-Id: Ic2c8cb6a27f005d1a1d0aad21d36b1510160753a
2015-06-19 15:04:58 -07:00
Wale Ogunwale
93297d2086 Merge "Apply the scale to surfaceinsets when computing crop region" into mnc-dev 2015-06-19 21:32:15 +00:00
Adrian Roos
4f43dc042b Assist disclosure
Add an animation that discloses delivery
of contextual data to the assist component.

Also fixes a bug where contextual data was
delivered to legacy assist activities even
though the user explicitly disabled context.

Bug: 21568059
Change-Id: I27dfaa36e2f677b0d73acfa4730f0f4ea3486919
2015-06-19 11:33:05 -07:00
David Srbecky
f32f7a3ffd Merge "Replace --include-cfi with --generate-debug-info." into mnc-dev 2015-06-19 18:26:42 +00:00
Oleksiy Vyalov
71f9ec2708 Merge "Resolve canonical package path before writing it to packages.list." into mnc-dev 2015-06-19 18:25:12 +00:00
Tony Mak
92dfab8d96 Merge "Clear granted permission when app is uninstalled by one of the multiple users" into mnc-dev 2015-06-19 16:57:41 +00:00
Tony Mak
8e33f63040 Clear granted permission when app is uninstalled by one of the multiple users
Bug: 21838358

Change-Id: Iccd46382c9468d0503da0bb49a49040ae712e2cc
2015-06-19 17:52:49 +01:00
Wale Ogunwale
8f4ccd6c96 Merge "Reduce log noise." into mnc-dev 2015-06-19 16:36:23 +00:00
Jason Monk
25d237b8ea Fix security whole in lock task
When flags NEW_TASK and CLEAR_TASK are set, the task gets reused
which causes the lock task to be ignored.  Add a special check
for this to be a lock task violation.

Bug: 20893212
Change-Id: Ibf3c71f40e197f0830410eb4e20429e901998378
2015-06-19 11:15:38 -04:00
Wale Ogunwale
08741e96ab Reduce log noise.
Bug: 21941219
Change-Id: Ic84719cf1b901c7e6befeca5c73685301e511db8
2015-06-19 08:05:24 -07:00
seunghyun85.lee
77963292a1 Apply the scale to surfaceinsets when computing crop region
While in computing surface crop region, magnification specs are
not applied to surface insets from LayoutParams.

So, in case magnification specs are set,
surface crop region should be calculated considering scale factor.

(For instance, using TouchZoom in Accessibility
at AppsPermissionActivity in market app)

Bug: 20863078
Change-Id: I9e7e21e502b29208f2856918d6fcda050f515595
Signed-off-by: Seunghyun Lee <seunghyun85.lee@lge.com>
2015-06-19 07:59:19 -07:00
Gustav Sennton
1b48a6430a Merge "Revert "Load WebView from one out of a list of packages."" into mnc-dev 2015-06-19 13:23:52 +00:00
Gustav Sennton
d973018221 Revert "Load WebView from one out of a list of packages."
This was not a clean revert!

This reverts commit 2ed6fee15c85ff991f64ecfa8c1c4738e0fdf9b6.
We essentially only revert the functionality for going through a list of
WebView package names and picking the first compatible one.
Except for that functionality we also fetched the name of the shared
library from a flag in WebView and made some minor refactoring in the
initial commit, these changes have been left alone in this revert.

Bug: 21893371
Change-Id: Idb2539dc33cc5f9e2894ecd665c23573c6cba9f3
2015-06-19 11:38:56 +01:00
Sudheer Shanka
a408061cc7 Merge "Use the intent filter icon in ResolveInfo for managed profile." into mnc-dev 2015-06-19 09:25:59 +00:00
Oleksiy Vyalov
466ecdbc1e Resolve canonical package path before writing it to packages.list.
Bug id - b/21028929

Change-Id: I82a7ba4f27017d3de29790cdbfab656ca9814cfb
(cherry picked from commit 4b42adf697c0ecde7ed18234109eb5430239fe54)
2015-06-18 20:08:37 -07:00
Adam Lesinski
8b156e37d5 Merge "BatteryStats: Update external stats individually." into mnc-dev 2015-06-19 01:22:53 +00:00
David Srbecky
065075e1f9 Replace --include-cfi with --generate-debug-info.
This follows a change in dex2oat.

(cherry picked from commit f39477b592e6e17fe41ace2e18602a69b2dd1619)

Bug: 21924613
Change-Id: I46b61298ca00bee2e83080456b180d63efd95b8f
2015-06-19 02:20:06 +01:00
Adam Lesinski
d2b9dcac7f Merge "BatteryStats: Log when WiFi idle time is too large" into mnc-dev 2015-06-19 01:17:08 +00:00
Adam Lesinski
a7c90c84e4 BatteryStats: Update external stats individually.
When wifi traffic causes a stats collection, we shouldn't care about
cpu or bluetooth updates.

Bug:21478443
Change-Id: I177dc0fc09951813cb4a702ad0e5d951d69f8c22
2015-06-18 18:13:36 -07:00
Christopher Tate
3233a0a65c Merge "Don't always dump domain/preferred state" into mnc-dev 2015-06-19 01:12:02 +00:00
Christopher Tate
9c896ab226 Don't always dump domain/preferred state
Change-Id: Ie0431b6c3cb1a9f372a142637359c42b182d4b1b
2015-06-18 18:09:42 -07:00
Adam Lesinski
bd6704fc4d BatteryStats: Log when WiFi idle time is too large
We have issues with bad data coming from the WiFi system, so
log when we have unreasonably large WiFi idle time.

Bug:21929173
Change-Id: I54b34c5efad14264306155c588f4c3b71cae35df
2015-06-18 18:06:40 -07:00
Dianne Hackborn
0348ba2e23 Merge "Fix issue #20494208: Go out of device idle when headset button is pressed" into mnc-dev 2015-06-19 01:01:38 +00:00
Adam Lesinski
00fac63575 Merge "BatteryStats: Fix regression in wakelock power distribution" into mnc-dev 2015-06-19 00:57:47 +00:00
Dianne Hackborn
b6683c4286 Fix issue #20494208: Go out of device idle when headset button is pressed
Rework how we record active transitions in battery stats to be
more general, and add an API that others can call in to
DeviceIdleController to request that we go out of idle mode.
use this for VOICE_SEARCH_HANDS_FREE.

Change-Id: Ie58de60e63036a4142881283835961fbcceec892
2015-06-18 17:40:33 -07:00
Fyodor Kupolov
e5bce22dc0 Merge "Defer writes to runtime-permissions.xml" into mnc-dev 2015-06-18 23:00:50 +00:00
Todd Kennedy
f29c4a07f4 Merge "Add getPackageImportance() system API" into mnc-dev 2015-06-18 22:37:40 +00:00
Todd Kennedy
69810483c7 Add getPackageImportance() system API
Callers must have the permission GET_PACKAGE_IMPORTANCE

Bug: 20642684
Change-Id: I6f3ef2ec810c884e0dee239e5909bcb314957302
2015-06-18 15:27:44 -07:00
Jeff Sharkey
c8a49a2b95 Merge "Write packages.list when granting permissions." into mnc-dev 2015-06-18 22:27:23 +00:00
Jeff Sharkey
b43ec54c23 Write packages.list when granting permissions.
Some permissions have the side effect of adding GIDs right now,
so we need to flush out packages.list.

Bug: 21874693
Change-Id: Ia4398c9f84cf7f151248f821b3fa2c12bdf91b80
2015-06-18 15:23:02 -07:00
John Spurlock
76ac323893 Merge "AudioService: Send the right stream to the volume UI on tablet changes." into mnc-dev 2015-06-18 21:05:23 +00:00
Dan Sandler
50ec9b1bd9 Merge "Patch up certain kinds of broken notifications." into mnc-dev 2015-06-18 20:26:49 +00:00
Jason Monk
3358eb084e Merge "Add way to get the network location provider package" into mnc-dev 2015-06-18 20:03:42 +00:00
Stefan Kuhne
0925136b22 Merge "Fixing voice panel centering issues in landscape on phone" into mnc-dev 2015-06-18 19:58:24 +00:00
John Spurlock
72966d6d83 AudioService: Send the right stream to the volume UI on tablet changes.
Bug: 21798314
Change-Id: Idd49eb9e1253a94e567866a38b664035aea3715b
2015-06-18 15:45:07 -04:00
Dan Sandler
4e78706f43 Patch up certain kinds of broken notifications.
Notifications in which the icon resource ID is changed after
Builder.build() is called (even, and particularly, as the
last step in the current implementation of
setLatestEventInfo()) were not having their icons properly
parceled. In these cases we now attempt to catch this at
parcel time and construct the necessary Icon object.

But wait! Parceling does not require a Context. So we don't
actually know which package to load the resource from.
Therefore we now allow an Icon to be constructed with an
empty ("") package name, which allows us to complete this
parceling task despite the fact that a Notification does not
know its own package name. (In case you attempt to load a
drawable for such an Icon, loadDrawable will spot the ""
package and instead substitute the Context from its
parameters to try to load the resource.)

As it happens, even though the Notification does not know
its own package name, BaseStatusBar does, because it was
provided at NM.notify() time and is therefore included in
the StatusBarNotification structure. So we can actually
patch up the Icon (if it is TYPE_RESOURCE) and be sure to
get the icon loaded out of the correct package.

While we've got the hood open, this change fixes a couple of
related problems:

  • Foreground service notifications synthetically
    constructed for naughty icon==0 notifications (which we
    are still allowing...FOR NOW) were losing the
    FLAG_FOREGROUND_SERVICE flag (because we're
    re-build()-ing them from scratch rather than rewriting
    the provided Notification object). Now we set the flag
    and hang onto the new notification for next time
    setForeground() is called.

  • We now allow media notifications to avoid getting bumped
    to the top of the notification list if they're
    PRIORITY_MIN. You might want to do that, I guess?

Bug: 21333763
Change-Id: Ia5d1f1acb594c7677bcc75ee3d624da4ffca671f
2015-06-18 15:12:44 -04:00
Adam Lesinski
72478f053f BatteryStats: Fix regression in wakelock power distribution
We used to give 50% of the cpu time of each app to any app holding a wakelock
while the screen is off.
Since we switched to the new kernel module for measuring app's cpu time, this distribution
was lost.

Bug:21876567
Change-Id: I42c294547f63d150d9929271ca0e27fedaaa9d77
2015-06-18 12:09:25 -07:00
Stefan Kuhne
2f280d0639 Fixing voice panel centering issues in landscape on phone
The new assist panel (long press on home) was not centered in landscape
mode on phones. This was caused by ignoring the stable insets in the
PhoneWindowManager.

bug: 21708971
Change-Id: I97a968a41c2966b09eba496fbe57c840affdf9ec
2015-06-18 08:44:04 -10:00
Craig Lafayette
b4c469095f Merge "Remove FRP wipe support for device initializers" into mnc-dev 2015-06-18 15:44:49 +00:00
Wale Ogunwale
77b093824f Merge "[ActivityManager] Fix index OOB when updating visible." into mnc-dev 2015-06-18 14:52:13 +00:00
Erik Kline
3d54e672a5 Merge "Carefully select which DNS servers to send to netd" into mnc-dev 2015-06-18 06:25:09 +00:00
Erik Kline
4136850b80 Carefully select which DNS servers to send to netd
Select only DNS servers that:
    - are reachable, according to routes in the LinkProperties, AND

    - have a "suitable" source address in the LinkProperites, meaning:
        - IPv4 DNS server:
            - only if LinkProperties has any IPv4 address
        - IPv6 link-local DNS server:
            - only if the server has a scopeId set
            - assume for now that LinkProperties has a suitable
              link-local address
        - IPv6 non-link-local DNS server:
            - only if LinkProperties has a global, preferred IPv6 address

Bug: 19470192
Bug: 20733156
Change-Id: Ibd95f3f7b33a4fb6c36d1cea4adb63c99068f657
2015-06-18 14:50:21 +09:00
Seigo Nonaka
d56ec1d444 Fix IME window flickering during rotation.
This was introduced by Ifd15736b163ab,
performLayoutAndPlaceSurfacesLocked is called even if
computeNewConfigurationLocked() returns non-null object.
This is simply by mistake and now computeNewConfigurationLocked
never returns null. The only case we need to care is that
mDisplayReady is false, but there is nothing to do with that state.

Thus simply removes if segments from computeNewConfiguration.

Bug: 20823978

Change-Id: I527dfeddffb8d928d578f8d60d64f98557aa3dcb
2015-06-18 12:22:36 +09:00
Seigo Nonaka
c73cd407f0 Merge "Allow apps to hide the soft keyboard even in a transient state." into mnc-dev 2015-06-18 03:10:23 +00:00
Pavlin Radoslavov
512fb0ca90 Sync the Bluetooth name and address from the Bluetooth Adapter
It looks like the synchronization of the Bluetooth name and address
from the Bluetooth Adapter has been removed by the following commit
without an explanation:

  Bluetooth LE background operation mode (2/2)

As a result, the BluetoothManagerService.mAddress was always null.

Bug: 20545952
Change-Id: I595f370e06e17b2c67ce511f793efdee7674598c
2015-06-18 00:10:34 +00:00
Dongwon Kang
c7c12e5639 Merge "Make MediaSessionService not blocked by AudioService." into mnc-dev 2015-06-17 23:51:23 +00:00