Commit Graph

9252 Commits

Author SHA1 Message Date
Andrew Scull
3f81f4edaf Explain the IAE thrown by resetPassword.
DevicePolicyManager.resetPassword can throw an IllegalArgumentException
which is now documented.

Bug: 30105812
Change-Id: Ied02a0586ad62cca636c46da4faa16df64e17e5a
2016-08-08 14:03:01 +00:00
Christopher Tate
776a0890f6 Fix "adb backup -shared" am: 60af594c3e am: f300d9760b
am: 0ddcc58272

Change-Id: I8f291b75698c4acbfc667ce227a1e95e5b2aa50a
2016-08-05 18:22:03 +00:00
Christopher Tate
0ddcc58272 Fix "adb backup -shared" am: 60af594c3e
am: f300d9760b

Change-Id: Ic8f59fe5cc4223b101117373e8aa9429621ca0b2
2016-08-05 18:16:47 +00:00
Christopher Tate
f300d9760b Fix "adb backup -shared"
am: 60af594c3e

Change-Id: I47df84d251e67bc54a5f5c40cfaab65813f170a5
2016-08-05 18:10:33 +00:00
Todd Kennedy
8d69e9c93b Move EphemeralResolverService am: 31b95e0265 am: fa67fad84e
am: 8c073e0aad

Change-Id: I2fb2add1e4431c2c802430990f99807934878e84
2016-08-05 17:58:25 +00:00
Todd Kennedy
8c073e0aad Move EphemeralResolverService am: 31b95e0265
am: fa67fad84e

Change-Id: Ieabd373b5557e03c6a189f070c8f79998e7a5a0a
2016-08-05 17:52:00 +00:00
Todd Kennedy
fa67fad84e Move EphemeralResolverService
am: 31b95e0265

Change-Id: I16533b342433fc1042e0d78e1be8e43a431031a6
2016-08-05 17:47:17 +00:00
Todd Kennedy
31b95e0265 Move EphemeralResolverService
It should not have been under com.android.internal

Fixes: 30673742
Change-Id: I2277aa4a4799fa59bf68af7c4cfcb4e1216aeb8d
2016-08-05 07:17:52 -07:00
Christopher Tate
60af594c3e Fix "adb backup -shared"
An accidental side-effect of introducing the XML content file and its
domain semantic checking was that the shared-storage domain got
dropped on the floor.  Now the mechanism understands what it means
again.

Bug 29999884

Change-Id: I22b99c96869683d1a92430f237dda54b170b8f60
2016-08-04 17:23:20 -07:00
Makoto Onuki
a28418bfe4 ShortcutManager: Update foreground check. am: 33525d2f1a am: 386fd915fc
am: d7f86b7115

Change-Id: I4ebd4315910b35849e970319fa1e265e5b79a4b8
2016-08-04 19:47:25 +00:00
Makoto Onuki
d7f86b7115 ShortcutManager: Update foreground check. am: 33525d2f1a
am: 386fd915fc

Change-Id: Ib8c6d82fdc0218e46d30a4e85b23624882d63b1e
2016-08-04 19:41:07 +00:00
Makoto Onuki
386fd915fc ShortcutManager: Update foreground check.
am: 33525d2f1a

Change-Id: I08769ba85f38c6768515450696d49a9755c698fb
2016-08-04 19:35:41 +00:00
Chris Wren
836569cbcf only rate limit notification updates am: a61f179c3d am: aefa21b65e
am: 064d019bd0

Change-Id: I87fde03094acd30df18755186229e034cf09993f
2016-08-04 18:57:42 +00:00
Chris Wren
064d019bd0 only rate limit notification updates am: a61f179c3d
am: aefa21b65e

Change-Id: I9ac96d81c273139d08481185b829189ac01cac4d
2016-08-04 18:50:52 +00:00
Chris Wren
a61f179c3d only rate limit notification updates
Updates to progress bars are the main culprit in system
performance events caused by apps spamming the notification
service. Rate-limiting only updates allows us to set a lower
threshold wihtout the owrry of mistakenly dropping bursts of
notifications being quickly posted after a network sync.

Also reduce logspam caused by the rate-limit events.

Bug: 30132961
Change-Id: I49acda6a2831204da45e899ddd3d62d571d7174b
2016-08-04 17:04:02 +00:00
Adam Lesinski
88971b8a01 ResourcesManager: Return null on failure to create Resources am: 53fafdfbe7 am: dc477a9e6c
am: cf42572c3c

Change-Id: Ife13753fd7f7a19495d4ea7d7cda7c18ba5db7fc
2016-08-04 00:44:13 +00:00
Adam Lesinski
cf42572c3c ResourcesManager: Return null on failure to create Resources am: 53fafdfbe7
am: dc477a9e6c

Change-Id: I6eee09bf6911b0e885a833feb864f9bbcb053b84
2016-08-04 00:28:18 +00:00
Adam Lesinski
dc477a9e6c ResourcesManager: Return null on failure to create Resources
am: 53fafdfbe7

Change-Id: I47c891d2c21c2ba95cc05d4972332ea128b2d444
2016-08-04 00:19:23 +00:00
TreeHugger Robot
1584d5d6e2 Merge "ResourcesManager: Return null on failure to create Resources" into nyc-mr1-dev 2016-08-04 00:08:21 +00:00
Makoto Onuki
33525d2f1a ShortcutManager: Update foreground check.
- When the cached UID state says a UID is in the background,
check with AM and get the latest state, since the state
might just have been changed.

Bug 30640208

Change-Id: If448f6f21f290fa0fc13550d9c740f56aa8bfce0
2016-08-03 16:36:38 -07:00
Adam Lesinski
53fafdfbe7 ResourcesManager: Return null on failure to create Resources
A lot of calling framework code expects a null value on failure,
and didn't catch the previous exception. There were some strange
corner cases where previously a null value was not checked for
in framework code, allowing the null Resources object to be
returned to the caller. Introducing an exception changed the
semantics and can crash certain apps.

Bug:30422475
Change-Id: I51d34ae43c9ec605a8790989c56cf85b815ff5b8
2016-08-03 14:44:52 -07:00
TreeHugger Robot
391dfcfa68 Merge "Revert "Add per-user versions of set{Component,Application}EnabledSetting."" 2016-08-02 23:56:55 +00:00
Sudheer Shanka
38c67d3c0f Revert "Add per-user versions of set{Component,Application}EnabledSetting."
This reverts commit 0e6bfff6c1.

Change-Id: I4eafa9fc052e9eba9e26fd32c09b5e759fe63b00
2016-08-02 22:13:17 +00:00
Svetoslav Ganov
e1c3ca5270 Revert "Prevent apps to overlay other apps via toast windows" am: 2fc661a453
am: 74b90c7d85

Change-Id: I6829cf6f04155a951bcfe79fcc13dbc2104a00ae
2016-08-02 02:17:56 +00:00
Svetoslav Ganov
74b90c7d85 Revert "Prevent apps to overlay other apps via toast windows"
am: 2fc661a453

Change-Id: I37bfb7dc01ad512f34332e83f6cc6be31d1feaab
2016-08-02 02:01:40 +00:00
Svetoslav Ganov
a2f247e6a6 Merge "Revert "Prevent apps to overlay other apps via toast windows"" into nyc-mr1-dev 2016-08-02 01:56:10 +00:00
Svetoslav Ganov
2fc661a453 Revert "Prevent apps to overlay other apps via toast windows"
bug:30150688

This reverts commit dc24f937b0.

Change-Id: Id7e8ddbf82ab426f55a5296791f1e8ebb61514bc
2016-08-02 01:55:01 +00:00
George Mount
921891518a Merge "Convert BackStackRecord Operations to ArrayList." 2016-08-01 21:44:52 +00:00
Svet Ganov
a0030632f8 Prevent apps to overlay other apps via toast windows am: dc24f937b0
am: fd8ffb62a9

Change-Id: I94077046a2f38a7cffce5cc73f805f671c35db23
2016-08-01 19:02:53 +00:00
Svet Ganov
fd8ffb62a9 Prevent apps to overlay other apps via toast windows
am: dc24f937b0

Change-Id: Ib3a97103f0f9aa980ab72412d4881d609178e641
2016-08-01 18:56:37 +00:00
Svetoslav Ganov
fea7cfce8b Merge "Prevent apps to overlay other apps via toast windows" into nyc-mr1-dev 2016-08-01 18:48:11 +00:00
Svet Ganov
dc24f937b0 Prevent apps to overlay other apps via toast windows
It was possible for apps to put toast type windows
that overlay other apps which toast winodws aren't
removed after a timeout.

Now for apps targeting SDK greater than N MR1 to add a
toast window one needs to have a special token. The token
is added by the notificatoion manager service only for
the lifetime of the shown toast and is then removed
including all windows associated with this token. This
prevents apps to add arbitrary toast windows.

Since legacy apps may rely on the ability to directly
add toasts we mitigate by allowing these apps to still
add such windows for unlimited duration if this app is
the currently focused one, i.e. the user interacts with
it then it can overlay itself, otherwise we make sure
these toast windows are removed after a timeout like
a toast would be.

We don't allow more that one toast window per UID being
added at a time which prevents 1) legacy apps to put the
same toast after a timeout to go around our new policy
of hiding toasts after a while; 2) modern apps to reuse
the passed token to add more than one window; Note that
the notification manager shows toasts one at a time.

bug:30150688

Change-Id: Icc8f8dbd060762ae1a7b1720e96c5afdb8aff3fd
2016-08-01 11:46:02 -07:00
Jorim Jaggi
5ecf859494 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800 am: 8d4f5f52a1 am: ffb289c7b3
am: f878d518c1

Change-Id: I45a3a50685cceb2c59476a236cb883846ae0f51a
2016-07-29 16:07:35 +00:00
Jorim Jaggi
f878d518c1 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800 am: 8d4f5f52a1
am: ffb289c7b3

Change-Id: Ia0befac114b3e1f534c477300d5875c2c6f0e588
2016-07-28 20:13:44 +00:00
Jorim Jaggi
ffb289c7b3 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800
am: 8d4f5f52a1

Change-Id: I9b5c7d18520d57c355f3c8ea76e2dfc0e6d6ff39
2016-07-28 20:03:58 +00:00
TreeHugger Robot
ca5310dd5f Merge "Follow up for I420bee8a11d430b1e52ded050536e56a85a48800" into nyc-mr1-dev 2016-07-28 19:20:00 +00:00
Jorim Jaggi
8d4f5f52a1 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800
- Log when hasTopUi state changes
- Add hasTopUi to dumpstate
- Only allow persistent processes to honor this flag

Bug: 30292998
Change-Id: Ifb481c8d50b102ea4cac3078ea3eb39e45c08259
2016-07-27 11:35:05 +02:00
Christopher Tate
2329e7b20c Fix wallpaper restore from pre-N devices am: ebadfb17e7
am: ac2f0b2c51

Change-Id: I7b8c8eb3e880389d1f70fd15f9d82bd815f1be16
2016-07-27 01:36:17 +00:00
George Mount
7c129f5635 Check for target SDK version for out-of-order fragment creation.
am: 00b7846b1e

Change-Id: If8ff087abfccdf1ff5868c2d9bbffbbaf00a23d5
2016-07-27 01:18:17 +00:00
Christopher Tate
ac2f0b2c51 Fix wallpaper restore from pre-N devices
am: ebadfb17e7

Change-Id: I4f88e555929bd9e48983dce64dc66f9e7fd46dc9
2016-07-27 01:18:05 +00:00
Adam Powell
4e00581e6b Merge "Check for target SDK version for out-of-order fragment creation." into nyc-mr1-dev 2016-07-26 23:24:59 +00:00
George Mount
00b7846b1e Check for target SDK version for out-of-order fragment creation.
Bug 30230667

Ensure that pre-N applications initialize in the proper order,
but allow N and above applications to be created prior to
asking for a Transition.

Change-Id: I859f22a7c5518e4b496cbd7ee58ef1d3206a5c86
(cherry picked from commit 78d38fc839)
2016-07-26 14:59:23 -07:00
Adam Powell
f0f3f453d9 Merge "Check for target SDK version for out-of-order fragment creation." 2016-07-26 20:44:44 +00:00
Chad Brubaker
90f331adad Merge "Add asUser version of sendBroadcast(Intent, String, Bundle)" 2016-07-26 20:25:43 +00:00
Christopher Tate
ebadfb17e7 Fix wallpaper restore from pre-N devices
The previous path "worked" but left the wallpaper bookkeeping with
incorrect SELinux labeling, which led to cascade failures later on
when apps tried to set new system wallpaper imagery or read the
current image for the picker UI.

We now (a) explicitly label wallpaper files in all change cases,
(b) let the restored imagery flow through the full crop path, as
should have been done in the first place, and as a result (c) lift
the size restrictions on the source image, because now we are doing
a device-appropriate scaling operation on the image.

The "when to crop/scale" test has been slightly relaxed such that
a restored image of exactly the right size now longer triggers a
superfluous factor-1.0 scaling operation.

Bug 30361282

Change-Id: I9a305eea2227952493f64ab78862648cafb816ff
2016-07-25 18:11:47 -07:00
Chad Brubaker
52c8edc2d8 Add asUser version of sendBroadcast(Intent, String, Bundle)
Change-Id: Id87aa1123d6c0a8a036ed9430eee10357040321f
2016-07-25 14:30:26 -07:00
Jorim Jaggi
758f841d86 Move SysUI to top app scheduling if panel expanded am: f6782ee1c8
am: b712ee18b2

Change-Id: I71a73ff87c0f791316c9ac32e39d3bc54eeab37f
2016-07-22 23:07:09 +00:00
Jorim Jaggi
b712ee18b2 Move SysUI to top app scheduling if panel expanded
am: f6782ee1c8

Change-Id: I61d0afe8669a5d1155425883e79fe756abed7c58
2016-07-22 22:59:06 +00:00
Daniel Chapin
adc51e460c Merge "Move SysUI to top app scheduling if panel expanded" into nyc-mr1-dev 2016-07-22 22:49:37 +00:00
George Mount
78d38fc839 Check for target SDK version for out-of-order fragment creation.
Bug 30230667

Ensure that pre-N applications initialize in the proper order,
but allow N and above applications to be created prior to
asking for a Transition.

Change-Id: I859f22a7c5518e4b496cbd7ee58ef1d3206a5c86
2016-07-22 15:25:27 -07:00