Commit Graph

18793 Commits

Author SHA1 Message Date
Robin Lee
12c4d4132f DO NOT MERGE Stop work challenge freeform bypass am: 0737c2b4c2 am: ec5ceae174
am: 32daa7a95c

Change-Id: I8580890ee0fcd6b1fb80352b4437d2a1379dfaee
2016-09-07 22:29:13 +00:00
Robin Lee
32daa7a95c DO NOT MERGE Stop work challenge freeform bypass am: 0737c2b4c2
am: ec5ceae174

Change-Id: Ic4bbce08944881f0d20a08c1ebb4db5531208f23
2016-09-07 22:23:10 +00:00
Robin Lee
ec5ceae174 DO NOT MERGE Stop work challenge freeform bypass
am: 0737c2b4c2

Change-Id: Ia76391f710e42e9634010bd211a0370230b318e3
2016-09-07 22:15:28 +00:00
Wale Ogunwale
3709ceaf45 Moved activity to stopped state if relaunched while device is asleep
am: 3e99736b61

Change-Id: I38552093c320d5c4ff74e615ae8b9959f306cd82
2016-09-07 22:01:11 +00:00
Wale Ogunwale
3e99736b61 Moved activity to stopped state if relaunched while device is asleep
- If an activity is done relaunching and the device is sleeping or
shutting down, go ahead and force the activity to sleep which will
transition it into the stopped state. We do this after the activity
is relaunched as activities can currently only relaunch into the
resumed or paused state both of which are visible state.
However, the activity should be in the stopped state while the device
is sleeping.
- Also removed previous fix for b/28518380 that prevents activities from
relaunching due to configuration changes while the device is sleeping.
We need to allow relaunches due to configuration changes while the device
is sleeping so the things are responsive when you wake-up the device.
And, it is no longer a big deal since we are transitioning the activity
to the stop state when the relaunch is complete.

Bug: 30253333
Bug: 28518380
Change-Id: I5313c13a13c2d2f9bb43831797918d9e67a30cda
2016-09-07 13:16:57 -07:00
Jorim Jaggi
6e690e32a0 Quicker exit animation for bottom dock on Keyguard
am: 48832811b0

Change-Id: Ifd3603c9c41fb475730521452a0326b453e2ce8d
2016-09-06 22:01:33 +00:00
TreeHugger Robot
1191fee634 Merge "Quicker exit animation for bottom dock on Keyguard" into nyc-mr1-dev 2016-09-06 21:52:51 +00:00
Jorim Jaggi
48832811b0 Quicker exit animation for bottom dock on Keyguard
Change-Id: I9d07dc6ce7e2aec36bf797bd4041701315e71e0e
Fixes: 31274209
2016-09-06 12:38:23 -07:00
Jorim Jaggi
fd33b0194a Only show optimizing storage dialog if dex opt dialog was shown
am: 2578beccbe

Change-Id: Ib30ce359a188980dcfa7ff8716ce6660a620626b
2016-09-04 01:46:13 +00:00
TreeHugger Robot
dc77fbca27 Merge changes I955f9dfa,Ibfbb9d67 into nyc-mr1-dev
* changes:
  Only show optimizing storage dialog if dex opt dialog was shown
  Only do slow unlock transition if real home is not running
2016-09-04 01:39:32 +00:00
Svetoslav Ganov
8b26f5ee31 Fix NPE
am: 4b81252610

Change-Id: Iacf933a5c137cde4ca8215588be2dd6583641cc3
2016-09-03 00:11:14 +00:00
Svetoslav Ganov
4b81252610 Fix NPE
bug:30150688

Change-Id: I2ae0cb76b2f6f0b47241bccc6922f1034183cc75
2016-09-03 00:01:50 +00:00
Svetoslav Ganov
dea62c6f58 Prevent apps to overlay other apps via toast windows
am: aa07653d2e

Change-Id: I309615a989eade43401b086da42ff6522d000b68
2016-09-02 23:36:59 +00:00
Svetoslav Ganov
cbfd373d72 Merge "Prevent apps to overlay other apps via toast windows" into nyc-mr1-dev 2016-09-02 23:28:26 +00:00
Winson
f4806c80ca Fixing issue with old tasks being visible in Overview
am: b258f6a4bd

Change-Id: I27ba3d057147b5200ac75b9f079d26423c9d0b05
2016-09-02 22:08:33 +00:00
Winson Chung
a8c0fe6606 Merge "Fixing issue with old tasks being visible in Overview" into nyc-mr1-dev 2016-09-02 21:49:13 +00:00
Svetoslav Ganov
aa07653d2e 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: Ia1dae626bd9e22541be46edb072aa288eb1ae414
2016-09-02 14:00:07 -07:00
Jorim Jaggi
2578beccbe Only show optimizing storage dialog if dex opt dialog was shown
This doesn't take long, so there is little reason to show it if
we didn't show the dex opt dialog.

Bug: 29643498
Change-Id: I955f9dfa233166a8a150deb2d115a591e6d82394
2016-09-01 18:44:53 -07:00
Svet Ganov
8b297cb1b1 White-list grandfathered sync adapters
am: 65712b0ad3

Change-Id: I0c7cb36d593687bd8c19dd91fa6fb641e8d21d61
2016-09-01 23:15:56 +00:00
Svet Ganov
65712b0ad3 White-list grandfathered sync adapters
Sync adapters were able to access the synced account without the accounts
permission which circumvents our permission model. Therefore, we require
sync adapters that don't have access to the account to get user consent.
This can be noisy, therefore we will white-list sync adapters installed
before we started checking for account access because they already know
the account (they run before) which is the genie is out of the bottle.

bug:31162498

Change-Id: I815e521778892ec592d53d086273743f1711bd17
2016-09-01 22:34:10 +00:00
Jorim Jaggi
d8f89315ac Also show attached windows during FLAG_SHOW_WHEN_LOCKED animations
am: 435f98de83

Change-Id: Ib4ba7aa2bc6b7989674b553a03aa4dc2379548a4
2016-09-01 05:30:12 +00:00
TreeHugger Robot
95c1cbeb50 Merge "Also show attached windows during FLAG_SHOW_WHEN_LOCKED animations" into nyc-mr1-dev 2016-09-01 04:16:54 +00:00
Todd Kennedy
af34fdbee8 Clear calling identity
am: c25fbdec41

Change-Id: Ife652c8496369be624c60f68a3b3fa2bdd112fe7
2016-09-01 00:46:24 +00:00
Chong Zhang
104a58b3c4 Do not log surface destroy by default
am: ad23b3fa11

Change-Id: I91303c5855ac0733a1de0c303236070d87089b85
2016-09-01 00:45:58 +00:00
TreeHugger Robot
072abeac57 Merge "Clear calling identity" into nyc-mr1-dev 2016-09-01 00:41:49 +00:00
TreeHugger Robot
dc02317d92 Merge "Do not log surface destroy by default" into nyc-mr1-dev 2016-09-01 00:39:36 +00:00
Pablo Ceballos
b7d3f5b63b Handle null Surface in createVirtualDisplay
am: eb3370d490

Change-Id: I8af2a4356c2ea857affb047c946a5656f6c144f6
2016-09-01 00:16:42 +00:00
Pablo Ceballos
9103680158 Merge "Handle null Surface in createVirtualDisplay" into nyc-mr1-dev 2016-09-01 00:06:33 +00:00
Sudheer Shanka
51b6b7d507 Allow package verifier and uninstaller to do silent uninstalls.
am: bf6154a5ba

Change-Id: Iab55e58e02a2088c541406bc0b71aa14df7b028e
2016-08-31 23:30:12 +00:00
Jeff Sharkey
b1123e7871 DO NOT MERGE. Block adoptable storage when using FBE.
am: 6ed7418228

Change-Id: I3880da0330ea3acc62655878df4876495e24a2a3
2016-08-31 23:30:05 +00:00
Sudheer Shanka
0b69970e36 Merge "Allow package verifier and uninstaller to do silent uninstalls." into nyc-mr1-dev 2016-08-31 23:23:47 +00:00
TreeHugger Robot
c081d2b870 Merge "DO NOT MERGE. Block adoptable storage when using FBE." into nyc-mr1-dev 2016-08-31 23:17:35 +00:00
Todd Kennedy
73a05d1865 throw if >1 verifier found
am: 5320ee42c6

Change-Id: Ie59f45fa660564ecf073bde4e750d65cf2752467
2016-08-31 23:10:11 +00:00
Chong Zhang
ad23b3fa11 Do not log surface destroy by default
Put it back under SHOW_TRANSACTIONS, this was for assist debugging
some early surface destroy issues but should be no longer needed.

Change-Id: I0806ac0ad2c9de3d0ccf9af995ced25c9a2f7668
2016-08-31 16:09:17 -07:00
Todd Kennedy
c25fbdec41 Clear calling identity
Before getting the package uid, need to clear the calling identity

Change-Id: Id917288f5457baa7672d0355889a498bc9a92cb3
Fixes: 31058820
Test: cts-tradefed run commandAndExit cts --skip-connectivity-check --skip-device-info --disable-reboot -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testPackageInstallUserRestrictions
2016-08-31 15:59:51 -07:00
TreeHugger Robot
a1ce6ee444 Merge "throw if >1 verifier found" into nyc-mr1-dev 2016-08-31 22:57:01 +00:00
Pablo Ceballos
eb3370d490 Handle null Surface in createVirtualDisplay
One can pass a null Surface to createVirtualDisplay and then set the
Surface after creation. Properly handle the isSingleBuffered check for
this case.

Bug 31219726

Change-Id: I14ebaca58912fdb4989e0ba0f4c251df31e24617
2016-08-31 15:00:17 -07:00
Jeff Sharkey
6ed7418228 DO NOT MERGE. Block adoptable storage when using FBE.
For adoptable storage and FBE to coexist we need a new dm-biocrypt
kernel feature which isn't ready yet.  So for now, prevent devices
from being adopted on FBE devices.

Bug: 30770036
Test: none
Change-Id: I51d54d2a8976ed02a03b107545aa094cf68df5d0
(cherry picked from commit 3b7f4b69b7)
2016-08-31 21:42:39 +00:00
Adrian Roos
7634e5e52c Wallpaper: Fix letterboxing if wallpaper is scaled but not cropped am: 5c97ff23a3
am: 865f437e99

Change-Id: I2ea3832611f0e5a707b49be80e80b546d5636081
2016-08-31 20:42:44 +00:00
Adrian Roos
865f437e99 Wallpaper: Fix letterboxing if wallpaper is scaled but not cropped
am: 5c97ff23a3

Change-Id: I873b469fa9ca12e14f5465cd6af8d69c92176e43
2016-08-31 20:37:09 +00:00
Adrian Roos
5c97ff23a3 Wallpaper: Fix letterboxing if wallpaper is scaled but not cropped
Fixes a bug where the wrong part of an image was decoded if
the image needed to be scaled but not cropped.

Change-Id: I011e59d85b526097ef1daabd63805c7cdc74c17b
Fixes: 31112957
2016-08-31 19:14:04 +00:00
Felipe Leme
e20c47686b Remove wtf log when optional apps are not found.
am: 6fa02e95ba

Change-Id: Ie8359e68f31979c18b2dd2b0dbad627c2045a293
2016-08-31 17:59:30 +00:00
TreeHugger Robot
f29f973643 Merge "Remove wtf log when optional apps are not found." into nyc-mr1-dev 2016-08-31 17:54:25 +00:00
Amith Yamasani
f10d31f5d0 Call Debug.getPss without a lock held
am: 10e8f16add

Change-Id: I8b55ec20fb8cb99941783c88f0a6035e4dcb1e9b
2016-08-31 17:13:57 +00:00
Amith Yamasani
9edadbd87a Merge "Call Debug.getPss without a lock held" into nyc-mr1-dev 2016-08-31 17:09:18 +00:00
Felipe Leme
6fa02e95ba Remove wtf log when optional apps are not found.
Test: none
Change-Id: I9f94c2ab47eb78d05754c85aafc13e1e238ead04
Fixes: 31177447
2016-08-31 08:47:50 -07:00
Jorim Jaggi
435f98de83 Also show attached windows during FLAG_SHOW_WHEN_LOCKED animations
Since appShowWhenLocked is already null during the animation, we
also need to show the window if it's attached to a
FLAG_SHOW_WHEN_LOCKED window

Test: Test animation occluded -> lockscreen with an app that
has a SurfaceView
Fixes: 30829255

Change-Id: I0e0012bbe5679cd0894ce4d94902ff8b24823b51
2016-08-30 19:55:32 -07:00
Jorim Jaggi
c037bb26cb Fix bug that apps are not unminimizing if recent tasks are empty
am: 936aaeb878

Change-Id: I30d83528945b04fbb39ebf1ec4b98841a551930a
2016-08-31 00:17:49 +00:00
TreeHugger Robot
c8cccdcbd3 Merge "Fix bug that apps are not unminimizing if recent tasks are empty" into nyc-mr1-dev 2016-08-31 00:08:45 +00:00
Sudheer Shanka
bf6154a5ba Allow package verifier and uninstaller to do silent uninstalls.
Bug: 30280938
Bug: 31146793
Change-Id: I450340d9bafd3c1b7c1bfb8ae9281a23cb8a0b5e
2016-08-30 16:47:38 -07:00