38002 Commits

Author SHA1 Message Date
Erik Kline
c1bc0be161 Add simple NetdService util class
Hopefully we can avoid a small amount of repeated wrapper code.

Bug: 21859053
Bug: 28135208
Change-Id: I00f404f19c14a1726071e62e558f551dccf8b915
2016-08-25 16:25:39 +09:00
David Christie
7f95d80157 resolve merge conflicts of 8aaffd9 to nyc-dev am: 36246a43e5
am: ae6bd11a4b

Change-Id: I454888b9d50e829a9166414efa9e4914e2dc12c5
2016-08-25 01:31:25 +00:00
David Christie
ae6bd11a4b resolve merge conflicts of 8aaffd9 to nyc-dev
am: 36246a43e5

Change-Id: Ic91baff73ef9e5ffe304d10a5a55e8476dfcfecb
2016-08-25 01:25:30 +00:00
Fyodor Kupolov
7540b79fee Update services info before returning authenticators
am: 814464894c

Change-Id: I3d7eb42ef73ad77cb44c251a493ae967bcc0f651
2016-08-25 00:08:38 +00:00
David Christie
36246a43e5 resolve merge conflicts of 8aaffd9 to nyc-dev
Change-Id: I4b1603b4cb1cdfc01f4842b2facf8c31a687bbe5
2016-08-24 16:45:01 -07:00
TreeHugger Robot
333680114d Merge "use threadtime when collecting logcat" into nyc-mr1-dev 2016-08-24 23:11:04 +00:00
Fyodor Kupolov
814464894c Update services info before returning authenticators
Added RegisteredServicesCache.updateServices method which allows callers
to request an update to services for which package has been updated.

Added a call to updateServices in getAuthenticatorTypesInternal

Test: Manually tested update flow on test authenticator with an artificial
      delay in broadcast handling
Bug: 30979262
Change-Id: I499b2ee0be53fed01201c56068d929b6d621a78e
2016-08-24 22:47:38 +00:00
David Christie
8aaffd9ebf resolve merge conflicts of a2399b4 to mnc-dev am: 6195acc2b5 am: e24eb2dbb5
am: 362668b6f7

Change-Id: I019f76b45de78171ef888d2175dc9140be172784
2016-08-24 22:30:20 +00:00
David Christie
362668b6f7 resolve merge conflicts of a2399b4 to mnc-dev am: 6195acc2b5
am: e24eb2dbb5

Change-Id: Idb6cbe8c16877301aed50faed41fa0390db3cf10
2016-08-24 22:23:42 +00:00
David Christie
e24eb2dbb5 resolve merge conflicts of a2399b4 to mnc-dev
am: 6195acc2b5

Change-Id: I34c3133924af9906b88ebd5faf78e0c000aa05be
2016-08-24 22:16:07 +00:00
Svetoslav Ganov
7ee37f48dc Use correct UID checks and proper database lookup
bug:31056110
bug:31050549
bug:28163381

Change-Id: I726645ae0d2456a5b4d38005fe78523332758842
2016-08-24 14:53:18 -07:00
David Christie
6195acc2b5 resolve merge conflicts of a2399b4 to mnc-dev
Change-Id: Ifc9e13cdb047ef70799ba8b1b9e91357ef5f2d2a
2016-08-24 13:47:57 -07:00
Guang Zhu
d8ac1dd3ed use threadtime when collecting logcat
Bug: 31048686
Test: make droid

Change-Id: I55cd38b9cdc4224fcd319af706d421cdac062f83
2016-08-24 18:52:37 +00:00
Rubin Xu
4d826638ab Merge "Set DeviceLockedForUser state synchronously" into nyc-mr1-dev 2016-08-24 14:23:44 +00:00
Jaewan Kim
5e1476ecd7 MediaSessionService: Leave log for media key events
Bug: 30212915
Change-Id: I6eb523bbbce2292b6b51d538d82ef4d0a8ba23b3
2016-08-24 10:24:59 +09:00
TreeHugger Robot
f50ff35cea Merge "use directory timestamp during OTA" into nyc-mr1-dev 2016-08-24 00:09:20 +00:00
TreeHugger Robot
ee36020457 Merge "Improve logging for NightDisplayService/TwilightService" into nyc-mr1-dev 2016-08-24 00:04:42 +00:00
Makoto Onuki
8664df3d76 Merge "Backporting shortcut manager test utils to mr1" into nyc-mr1-dev 2016-08-23 23:44:06 +00:00
David Christie
a2399b45e2 resolve merge conflicts of 1081a15 to lmp-mr1-ub-dev
Change-Id: Ic44c577ef364bf81dd1e30b50c71718d4910eb10
2016-08-23 16:19:51 -07:00
Todd Kennedy
095d4125be use directory timestamp during OTA
Previously the timestamp was generated using the directory and not the
APK [see b/29575840 and b/29610181 as to why that's bad]. In MR1, the
timestamp was generated using the most recent time of any of the APK
files.

The timestamp discrepancy causes problems during OTA to N MR1. Most
apps are incorrectly marked as "changed" which means a full parse and
verification pass on all packages. This can be a very lengthy process.

Bug: 30930797
Change-Id: Iaef7b318e1c1effbd74d996f88cbf3d6e77736cd
Test: manually updated the platform and noticed that existing packages were marked as "not changed"
2016-08-23 15:47:02 -07:00
Justin Klaassen
ec8837ae26 Improve logging for NightDisplayService/TwilightService
Bug: 31037341
Change-Id: Id6e5ea55f2fed93f1afdd0f61028e3329c8a43c3
(cherry picked from commit 7fba39209065eeee8fc8e8e98c44c5fcc1ca275d)
2016-08-23 22:23:49 +00:00
Svetoslav Ganov
5cb2973495 Only sync adapters with access can see an account - framework
It was possible for a sync adapter without accounts access to
see the account which it is supposed to sync which can be used to
identify the user. This change ensures that only sync adapters
with account access can run (which results in seeing the account),
otherwise we involve the user to approve access only to this account.

A sync adapter can access an account if one of these is true:
 - it is signed as the authenticator for this account
 - has the GET_ACCOUNTS permission
 - has an auth token for the account
 - it is a preinstalled app (system or privileged)

The main thing we need to figure out is if the extra prompts
for giving access to a sync adapter to the account create too
much friction.

bug:28163381

Change-Id: Ie083bb681b5a2aed81ca5f6a062193a175fad77e
2016-08-23 21:43:27 +00:00
Amith Yamasani
50ff32c17f Merge "Don't complain about sender of MASTER_CLEAR" into nyc-mr1-dev 2016-08-23 21:19:05 +00:00
Makoto Onuki
85c10342c1 Merge "Do not scan system apps unless after OTA" into nyc-mr1-dev 2016-08-23 20:52:43 +00:00
Sudheer Shanka
0b3cf692f6 Merge "Add installer app check in PM.deletePackage." into nyc-mr1-dev 2016-08-23 19:40:00 +00:00
Amith Yamasani
d8a55f6dd8 Don't complain about sender of MASTER_CLEAR
Make an exception for MASTER_CLEAR broadcast when checking for
non-protected broadcasts being sent by system uid; Settings app in
this case.

Change-Id: I296404faf2be03601f8f937b96d3e2f70c0e816d
Fixes: 30891377
2016-08-23 12:26:25 -07:00
Robert Carr
066d94f6df Only allow focused window to select seamless rotation.
We require apps to opt in to seamless rotation. If a dialog or some such
has popped up above them, the dialog may not be prepared to rotate
seamlessly and we should just fall back to the old behavior for now.

Bug: 30968345
Change-Id: Ib9a7352ed84d41076bdd162bf38d151b053a307e
(cherry picked from commit 828ec3dc518bfeff9cb9205e40652419e9c59443)
2016-08-23 17:32:13 +00:00
TreeHugger Robot
374f9a690b Merge "AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set" into nyc-mr1-dev 2016-08-23 16:39:45 +00:00
Rubin Xu
6acd5e7361 Merge "Handle null packageName in PendingIntentRecord" into nyc-mr1-dev 2016-08-23 13:00:35 +00:00
Adrian Roos
6a7e08920c AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set
Change-Id: Ie6013013ff4e23e51e471e97d15e113cc759657e
Fixes: 30929056
2016-08-23 14:26:47 +02:00
Lorenzo Colitti
a6dcb89e6d Refactor NetworkNotificationManager.
am: 0b59906768

Change-Id: I0084400264ccfc352f50e58acda9b8e056dbf766
2016-08-23 09:37:52 +00:00
Lorenzo Colitti
622b5fbbf5 Move notification code out of ConnectivityService.
am: f3ae2eeae4

Change-Id: I06cf2f70bc466c7cf03db246ec49f728b6881300
2016-08-23 09:37:12 +00:00
Lorenzo Colitti
0b59906768 Refactor NetworkNotificationManager.
1. Move from deprecated network types to transport types.
2. Rename and simplify (by passing in a NetworkAgentInfo object)
   the call signature of the method that displays notifications.
3. Add a method to clear notification, and unindent lots of code.
4. Move the legacy DcTracker-issued notification code to
   NetworkNotificationManager.

Bug: 31025214
Change-Id: Ie49c60126d0ed5bac620bc47e84fe038791b2d6c
2016-08-23 17:57:46 +09:00
Lorenzo Colitti
f3ae2eeae4 Move notification code out of ConnectivityService.
Bug: 31025214
Change-Id: I4190be6b57f92298b79bea8868f1876ecbfd2d75
2016-08-23 15:31:59 +09:00
Makoto Onuki
a49bafad6b Backporting shortcut manager test utils to mr1
Bug 29612099

Change-Id: I33641b2c95f8fe859fa3256b491c039ab273fff5
2016-08-22 17:41:24 -07:00
Makoto Onuki
3366328245 Do not scan system apps unless after OTA
Bug 30956231

Change-Id: I4af34cdd39cfaf0b8712b9ded1ef119efa3e04b0
2016-08-22 17:38:46 -07:00
Jorim Jaggi
9d0879c6ac Change retail mode wallpaper (1/2)
am: 6c902d0453

Change-Id: I1ca69b6cc7450d7f7056e69e3cf7fab1ad2df624
2016-08-23 00:17:20 +00:00
Christopher Tate
100b610066 Fix wallpaper backup eligibility test
am: f7d1b5de6e

Change-Id: Ib0023f452284b2123df402c09731323b98886e81
2016-08-23 00:17:06 +00:00
Rob Carr
7ae506260e Merge "Only allow focused window to select seamless rotation." into nyc-mr1-dev 2016-08-22 23:53:04 +00:00
Dianne Hackborn
d6ece3e175 Merge "Fix issue #30929080: Default Assist app is set to None..." into nyc-mr1-dev 2016-08-22 23:22:59 +00:00
Todd Kennedy
ee2df0390e Merge "Allow permission group updates" into nyc-mr1-dev 2016-08-22 23:18:48 +00:00
Todd Kennedy
0060d6eda1 Merge "Don't call into pkg mgr svc w/ lock held" into nyc-mr1-dev 2016-08-22 23:17:22 +00:00
TreeHugger Robot
c7136b3b3c Merge "Change retail mode wallpaper (1/2)" into nyc-dr1-dev 2016-08-22 22:55:15 +00:00
Robert Carr
828ec3dc51 Only allow focused window to select seamless rotation.
We require apps to opt in to seamless rotation. If a dialog or some such
has popped up above them, the dialog may not be prepared to rotate
seamlessly and we should just fall back to the old behavior for now.

Bug: 30968345
Change-Id: Ib9a7352ed84d41076bdd162bf38d151b053a307e
2016-08-22 13:35:52 -07:00
Julius D'souza
3275a3a5a5 DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support
Bug: 18572096

Change-Id: Ie0ff1990b8f4a3d435328834871f04a6e2bd5e97
2016-08-22 11:40:03 -07:00
Chris Tate
56ce19099d Merge "Fix wallpaper backup eligibility test" into nyc-dr1-dev 2016-08-22 18:28:06 +00:00
TreeHugger Robot
f9f8e82045 Merge "Make sure surface control is really valid before giving it to client" into nyc-mr1-dev 2016-08-22 18:04:27 +00:00
Makoto Onuki
8b47748b9c Merge "Off-load unlocking users onto a worker thread" into nyc-mr1-dev 2016-08-22 17:15:03 +00:00
Chong Zhang
7581cddf25 Make sure surface control is really valid before giving it to client
Checking mSurfaceControl!=null is not enough to ensure the surface is
valid. tryStartExitingAnimation() could destroy/save the surface before
app is stopped, if it decided the surface is no longer needed.

Use WSA.hasSurface() to check if the surface control is really valid.

bug: 30766796
Change-Id: I7724f1929d4ebc3f9a7a3b19eec638d7a7d7b910
2016-08-22 09:44:35 -07:00
Adam Seaton
051d6b74eb Merge "DO NOT MERGE ANYWHERE (nyc-dr1-dev) Prevent FIFO threads from creating more FIFO threads." into nyc-dr1-dev 2016-08-22 04:39:01 +00:00