245211 Commits

Author SHA1 Message Date
TreeHugger Robot
48ee87d4a7 Merge "Allow apps with CREATE_USERS permission to create restricted users." into nyc-dev 2016-06-16 22:30:20 +00:00
Christopher Tate
cffb19c812 Don\\\'t trust callers to supply app info to bindBackupAgent() am: c58054f25f am: cd777e95a7
am: ec6c3f7a32

Change-Id: Idc2b6c712078493b4186edad750d8d5beab58adf
2016-06-16 22:30:17 +00:00
Christopher Tate
6633a4fee4 DO NOT MERGE: Don\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283
am: f615799ef2

Change-Id: Ibc84666aa491986fe861b82400affde1675e632d
2016-06-16 22:27:18 +00:00
Christopher Tate
ec6c3f7a32 Don\\'t trust callers to supply app info to bindBackupAgent() am: c58054f25f
am: cd777e95a7

Change-Id: I199f1354df85fcda372002887eafc1e6fb9b19d8
2016-06-16 22:27:04 +00:00
Christopher Tate
cd777e95a7 Don\'t trust callers to supply app info to bindBackupAgent()
am: c58054f25f

Change-Id: I3b0bd91c38b5f13770f09f39c2eea78b63c29d7c
2016-06-16 22:21:37 +00:00
Christopher Tate
f615799ef2 DO NOT MERGE: Don\'t trust callers to supply app info to bindBackupAgent()
am: d85a4ed283

Change-Id: Ib1f01d4d10c82acb9f03aab4fe81d43d85d4a899
2016-06-16 22:21:25 +00:00
Fyodor Kupolov
ec30ca35aa Call AppOpsService from the handler thread
Otherwise it may cause deadlocks, for instance if
updateUserRestrictionsInternalLR is called with AMS lock held.

Bug: 28888422
Change-Id: I455c7392f206ff0bb6c99ec5c4a531921a115070
2016-06-16 15:09:29 -07:00
Shreyas Basarge
bd4c3ea7ae Fix for the missing sync bug
Cancel a job before re-scheduling it to avoid
the situation where a job could still be in
JobScheduler's pending queue.

Retry a sync even if it has specified the
do_not_retry extra if the sync failed due
to SyncAlreadyInProgress.

Bug: 27532761
Change-Id: Ia5d2b31fa4e44560a3f170a2bdbf53151bff7a20
2016-06-16 23:01:59 +01:00
TreeHugger Robot
f6e3c9a553 Merge "Don't re-launch activities while the device is sleeping" into nyc-dev 2016-06-16 21:32:27 +00:00
Andrii Kulian
320c15e1b2 Merge "Bring task to front when we can't move to adjacent stack" into nyc-dev 2016-06-16 21:30:22 +00:00
Yorke Lee
f33af2285b Merge "Limit global drags to apps targeting SDK 24 and above" into nyc-dev 2016-06-16 21:16:13 +00:00
Andrew Solovay
8316b81cd0 docs: DP4 release notes: add Android Auto known issue
See first comment for doc stage location.

Change-Id: I424195565860af0439a9bf7fefb3286e82cc98da
2016-06-16 14:12:33 -07:00
Gina Dimino
d06520a488 Merge "Docs: Suppress errors in SystemApi Build Bug: 28427390" into nyc-dev 2016-06-16 21:02:14 +00:00
TreeHugger Robot
5a3a66a253 Merge "docs: Minor update to DP4 release notes" into nyc-dev 2016-06-16 20:47:04 +00:00
Yigit Boyar
05eaab6a1e Docs: Completed updates to the Data Binding docs
Bug: 28987432

Change-Id: I29d630618f9fff20e3c266f9b8ff59629fc607be
2016-06-16 13:42:47 -07:00
Adrian Roos
b27d7a5e2e Remove RemoteInput on lockscreen setting
Bug: 29370898
Change-Id: I8686c2266f13e7e131c2330673ec98c26037edaa
2016-06-16 13:29:36 -07:00
Yujie Qin
e09415344d Merge "Report error correctly for the implementation of StreamInterface::GetData()" into nyc-dev 2016-06-16 19:48:19 +00:00
Wale Ogunwale
0619545be9 Don't re-launch activities while the device is sleeping
- Don't ensure configuration for top running activity that is in the
stopped state if the configuration change while the device is sleeping
as we don't want to relaunch activities in this state.
- Don't make activities visible while the device is sleeping and the
activity isn't in voice interaction mode. Making it visible can also
lead to the activity been relaunched due to configuration changing.

Note the the right configuration will be applied to the activity the next
time we try to make it visible. The re-launch will happen then.

Bug: 28518380
Change-Id: Ic22193db645dec358065cb05e7f1afc6fc8ac49f
2016-06-16 12:39:11 -07:00
Adrian Roos
db81dd9d2e Merge "Fix unresponsive brightness slider after font size change" into nyc-dev 2016-06-16 19:25:49 +00:00
TreeHugger Robot
60585e6c54 Merge "Include cause when reporting errors." into nyc-dev 2016-06-16 19:14:06 +00:00
TreeHugger Robot
47c3afa10b Merge "Check extra type before blindingly casting to Parcelable." into nyc-dev 2016-06-16 18:47:51 +00:00
Dianne Hackborn
47cfac6803 Merge "Fix issue #29371078: Foreground jobs should not count..." into nyc-dev 2016-06-16 18:39:03 +00:00
Andrii Kulian
ad6f2e580f Bring task to front when we can't move to adjacent stack
If task was requested to move to adjacent stack with mLaunchStackId set
and FLAG_ACTIVITY_LAUNCH_ADJACENT not set - we don't move it from its
current stack. If the task was covered with other task(s) it wouldn't
be brought to front.
This CL checks if mLaunchStackId is provided and is a valid stack for this
task, then we move it to front of current stack as a safer option.

Bug: 29103549
Change-Id: I3065960f082cfbf9a5b43c6e83b5cebe3dd69df6
2016-06-16 11:31:19 -07:00
Andrew Solovay
02e2cb979e docs: Minor update to DP4 release notes
Added a new section from Dirk, with a couple of gotchas for people
updating from API level ≤22 to 24.

See first comment for doc stage location.

Change-Id: I237e9efac75b9c1e0fbeecf362dbc0de7c958c60
2016-06-16 11:15:39 -07:00
Steve McKay
56d950c5e6 Include cause when reporting errors.
Bug: 29191892
Change-Id: I5f904da3a8564ec68ca634c28e3eda7f496a5c1c
2016-06-16 10:41:50 -07:00
Gustav Sennton
e25c8532b6 Merge "Support using uninstalled WebView packages as WebView implementation." into nyc-dev 2016-06-16 17:40:10 +00:00
Felipe Leme
75aa534d3a Check extra type before blindingly casting to Parcelable.
BUG: 29402928
Change-Id: If1729b8a4fcde724372b0a23cfae723a5d9b4faa
2016-06-16 10:25:06 -07:00
Sudheer Shanka
cd50529e6f Reduce shell power over user management.
Remove MANAGE_USERS permission from shell and whitelist it for
some specific functionality.

Bug: 29189712
Change-Id: Ifb37448c091af91991964511e3efb1bb4dea1ff3
2016-06-16 10:17:02 -07:00
Alan Viverette
7df9b45bfe Notify user when application does not support current display zoom
Bug: 29322470
Change-Id: Id33215f6b0b20b332c3c9101aedf9de0261ee5ea
2016-06-16 12:47:58 -04:00
Sudheer Shanka
bf0a9a7445 Add pm operation to set user restrictions.
Bug: 29189712
Change-Id: I6fdb3b68dfe3f51119e5ce8008880fc7d9c793df
2016-06-16 09:43:29 -07:00
Yorke Lee
0e85247195 Limit global drags to apps targeting SDK 24 and above
Bug: 29127791

Change-Id: Ib5f85a207bdb79eeac0418fda78e452d225761bc
2016-06-16 09:35:40 -07:00
Todd Kennedy
32d67fab83 Merge "Make sure we're locked" into nyc-dev 2016-06-16 16:22:54 +00:00
Sudheer Shanka
53d414745c Allow apps with CREATE_USERS permission to create restricted users.
Bug: 29189712
Change-Id: I0f2677adddb22c11cb5a3e38763b0967d9cbd541
2016-06-16 09:11:08 -07:00
Amith Yamasani
f11a574027 Clean up ex-users in lock settings db
Just in case a userid was not properly cleaned
when the user was removed, make sure it is
cleaned up when a new user takes up the same
userid. This prevents inconsistent lockscreen
state and avoids a crash in Settings when trying
to set a password for the new user.

Fixes: 29412112
Change-Id: Ic4f0efbb97786b0290c74325b28c9d74825e9e53
2016-06-16 08:31:56 -07:00
Victor Chang
6437205648 Merge "Fix that work apps settings page crash after changing work profile to use separated lock" into nyc-dev 2016-06-16 15:13:34 +00:00
Gustav Sennton
0df2c5566a Support using uninstalled WebView packages as WebView implementation.
A package can be uninstalled for the system user but still be installed
on the device. Currently, we do not use such a package as WebView
implementation which means we fall back to using the fallback WebView
package.
However, if the fallback package is not valid (because it needs to be
updated first) loading WebView will fail.

With this change we fetch allow the fetching of information from
packages that are uninstalled for the system user so that we can still
load WebView when the only valid WebView provider is uninstalled for the
system user.

Also listen to package additions/changes/removals for all users -
otherwise we won't notice when a package becomes replaced if it was
already uninstalled for the system user.

Bug: 29321185
Change-Id: Ia23c4493844877aea1b4eab7e666fd37540c4f97
2016-06-16 15:45:45 +01:00
Todd Kennedy
3d5604dc90 Make sure we're locked
Before calling a method ending with LPw, we need to have the mPackages lock.
Make sure we do that.

Also, ditch the iterator for traversing an ArraySet.

Bug: 29356333
Change-Id: I67df971f2961b577f31153cef46fb153458d6965
2016-06-16 07:08:09 -07:00
Tony Mak
63966b3e12 Allow stopping user to access AppWidgetService API
We now have isUserRunning && isUserKeyUnlockedisUserUnlocked instead of
having isUserUnlockingOrUnlocked. The difference is
we now allow stopping unlocked user to access the API.

Testing:
Write a simple widget which keep calling AppWidgetManager API in a loop.

1. In non-FBE mode, place the widget to launcher.
   Turn off work mode. No crash is observed.
2. Repeat 1 in FBE mode with separated work challenge.
3. Repeat 1 in FBE mode with no separated work challenge
4. Repeat 2 and reboot the device. Unlock work profile, widget is shown
5. Repeat 3, reboot device, widget is shown after rebot


Change-Id: I2fa9f602dcb0befff41fc6b145e9855e82d8d7a8
Fix: 29264823
2016-06-16 14:57:00 +01:00
Ricky Wai
43f6a45e7e Merge "Add permission checking on service calls in LockSettingsService" into nyc-dev 2016-06-16 10:33:23 +00:00
TreeHugger Robot
d58da1be76 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-06-16 10:21:19 +00:00
Robin Lee
3e343ffd91 Merge "Move 'is already always-on' check into Vpn.java" into nyc-dev 2016-06-16 10:06:11 +00:00
TreeHugger Robot
65266b99d2 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-06-16 09:58:56 +00:00
Yujie Qin
cad1666867 Report error correctly for the implementation of
StreamInterface::GetData()

Bug: 28889197
Change-Id: Id07755e1b3637f85b6176a59935ad3a5597cfb05
2016-06-16 11:42:41 +02:00
Bill Yi
ec038aa44a Import translations. DO NOT MERGE
Change-Id: I8186498fb657aa424eeb74f965fa44f7a053f65c
Auto-generated-cl: translation import
2016-06-16 01:42:16 -07:00
Bill Yi
ea1edaca72 Import translations. DO NOT MERGE
Change-Id: I3e3e3acf4c81fea5831768ccb73a313d16bab865
Auto-generated-cl: translation import
2016-06-15 21:49:11 -07:00
TreeHugger Robot
c1720dce1b Merge "Added dismiss, expand, and collapse accessibility actions" into nyc-dev 2016-06-16 04:19:48 +00:00
Ruben Brunk
d430f1a0be Remove coarse location pre-grant for preinstalled VrListenerServices.
Bug: 28919229
Change-Id: I97393308129c65ef2822014775d3e77e25dc21e6
2016-06-15 17:55:41 -07:00
Christopher Tate
e227ec61c2 Let bmgr inspect the set of whitelisted transports
Needed for compliance testing.

Bug 29072466

Change-Id: I025058ab9197f9e2db062bf0074e79f1cd04b443
2016-06-15 17:40:31 -07:00
Dianne Hackborn
7ab4025474 Fix issue #29371078: Foreground jobs should not count...
...as active for idle maintenance

Nor jobs of whitelisted apps.

Now they don't.

Also remove the no longer used "active download" tracking code.

Change-Id: I553197801f6eabaf15716f3201dd65257a0d4e94
2016-06-15 17:30:24 -07:00
Ruben Brunk
931a7c03e0 Merge "Fix VR transition for display on/off sequence." into nyc-dev 2016-06-16 00:29:32 +00:00