summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* am 2e700004: am d68b87cd: Recover apps with malformed certificates.Jeff Sharkey2014-11-122-3/+56
|\ | | | | | | | | * commit '2e7000040e3d836bb591e29515974817afc49488': Recover apps with malformed certificates.
| * am d68b87cd: Recover apps with malformed certificates.Jeff Sharkey2014-11-122-3/+56
| |\ | | | | | | | | | | | | * commit 'd68b87cdd402d46013170d9316a31c82be4e4816': Recover apps with malformed certificates.
| | * Recover apps with malformed certificates.Jeff Sharkey2014-11-122-3/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a window of time in Lollipop where we persisted certificates after they had passed through a decode/encode cycle. The well-written OpenSSL library was liberal when decoding (allowing slightly malformed certs to be parsed), but then strict when encoding, giving us different bytes for effectively the same certificate. A related libcore change (0c990ab4a90b8a5492a67b2b728ac9a4a1ccfa1b) now returns the original bytes verbatim, fixing both pre-Lollipop installs and installs after that change. This change recovers any apps that had been installed during the window of time described above by doing a one-time check to see if the certs are effectively equal. Bug: 18228011 Change-Id: Ib82bd6db718d0490d7a26c9c1014b7c8457a7f2d
* | | Merge "Don't unload the sound model on stopRecognition" into lmp-mr1-devSandeep Siddhartha2014-11-121-29/+18
|\ \ \
| * | | Don't unload the sound model on stopRecognitionSandeep Siddhartha2014-11-121-29/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helps us in majority of the scenarios where the sound model doesn't change across start/stop calls. Bug: 17954633 Change-Id: Ibff817bb69bc69d2bb3a2603460fed596688b892
* | | | Fix build breakage from missing close brace.Wale Ogunwale2014-11-121-4/+5
|/ / / | | | | | | | | | Change-Id: Ib0e58844b8b208d255ff8d9409d0e7c53f27378f
* | | Fixed constant window switching on lock screen with Swype KB.Wale Ogunwale2014-11-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We allow TYPE_INPUT_METHOD windows to show on the lock screen. These windows can attached other types of windows (For this case the Swype KB was attaching a PopupWinow which will be of TYPE_APPLICATION). This causes the popup window app token to be added to the list of apps to be hidden on the lock screen, thereby preventing the lock screen from been hidden, which then causes a layout cycle(s). Now, we remove app tokens for non-app windows from the hidden list in case it was added by any attached widow they migth have. Also, when we are updating window animations, set the hideWhenLocked flag for windows that are IME tragets so they don't go through unneeded cycles of having their visibility policy set to hide/show/hide/show/... Bug: 18021493 Change-Id: I3680256d41793f62def42fda00e26db1dcc990cc
* | | Improve lockscreen launch animationsJorim Jaggi2014-11-122-6/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a timeout so if WindowManager "forgets" to tell that the activity has drawn, we still unlock after 3 seconds, so the user is not completely stuck. - Use the screen height instead of the window height for the translation animation. - Don't run the animation if the attached window is not null. The animation from the attached window will influence the transformation as well, so there is no need to run an additional animation in this case (apps with SurfaceView's had broken unlock transitions because of this). - If the starting window needs to go away while the unlock transition is running, modify the existing animation such that it fades out in the same transition. Bug: 15991916 Change-Id: Ia5dfa31e1bc0d5745fe228e1daf08e268733b6f1
* | | Fix lockscreen launch animations once and for allJorim Jaggi2014-11-126-39/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In SysUI, make sure not to dismiss Keyguard multiple times when just waiting for a deferred dismissal, so WindowManager doesn't get multiple calls to keyguardGoingAway. Change heuristics how notifying Keyguard about activity drawn works. Always notify Keyguard after executing an app transition, and notify it also when not doing a transition after a startActivity call. For that to work, update AppWindowToken.startingDisplayed also when the window is displayed, but force hidden because of Keyguard. Further, handle the case correctly when a window gets added during the Keyguard exit animation by overriding the start time for the animation of that new window. Also don't apply a transition animation for a window when executing keyguard exit animation, so by removing a starting window we don't break this animation. Last but not least, tell Keyguard to start exiting immediately if animations for exiting are disabled, like when going to phone/camera on lockscreen. Before, we always had a delay of 1 second because we waited for the timeout. Bug: 1599196 Bug: 18272544 Change-Id: I596b2489f814b934abd256e16079d3d3f326e209
* | | Merge "Remove unused local field." into lmp-mr1-devNarayan Kamath2014-11-121-5/+0
|\ \ \
| * | | Remove unused local field.Narayan Kamath2014-11-101-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It's a source of confusion. bug: 18280671 Change-Id: Ibb387d76e18d71fc9e24afc72d93201a74fc03ae
* | | | Merge "Tell installd when boot completes." into lmp-mr1-devNarayan Kamath2014-11-123-3/+34
|\ \ \ \
| * | | | Tell installd when boot completes.Narayan Kamath2014-11-113-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | installd can then clear the ".booting" marker from the dalvik-cache (owned by root). This marker is used to detect boot loops. bug: 18280671 Change-Id: I878f1463c7f523892605c17b980a51ac3b6645e2
* | | | | Obliterate LockPatternUtilsCacheAdrian Roos2014-11-121-67/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is disabled dead code already and not useful anymore with the new caching in LockSettingsService. Bug: 18163444 Change-Id: Icc184e923e0fbeab31ed128336c01f835b24c6f2
* | | | | Properly destroy TrustAgentWrapper when not boundAdrian Roos2014-11-122-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixes a potential issue where refreshing agents for a user that no longer exists would result in a crash. Bug: 18318629 Change-Id: I3589ea7e0f2e63fca02daeecf3ca964a8a8e4b3b
* | | | | Merge "Update SubscriptionManager API as per API council." into lmp-mr1-devWink Saville2014-11-122-43/+182
|\ \ \ \ \
| * | | | | Update SubscriptionManager API as per API council.Wink Saville2014-11-112-43/+182
| |/ / / / | | | | | | | | | | | | | | | | | | | | bug: 17575308 Change-Id: Ib39a60e4f75981a466e9d606ec627756efad018d
* | | | | Show error dialogs over apps that dismiss keyguardCraig Mautner2014-11-117-21/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Error dialogs absorb all input to ensure that they are not missed. This can cause the screen to lock up if they are not displayed but are still absorbing touches. This was what was happening when there was an error dialog up at the same time as a phone call came in as in b/17648830. This fix recognizes when an app is dismissing the keyguard and forces any error dialogs to be shown over such an app. This also removes the private flags from the input system as they are no longer needed. Fixes bug 17648830. Change-Id: I5c98b8265a1448b445fdb2f745fc78892f8656a4
* | | | | Allow profile owners to set the unknown source settingAmith Yamasani2014-11-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows work profile MDM to enable unknown sources even if the user doesn't have UI for it. Installing an app from an unknown source will still prompt the user with the package installer dialog, so it's not like the MDM can now quietly install apps from non-market sources. Bug: 18316350 Change-Id: Ia8f4fe36f12a258aa888e085acc0b358925f4817
* | | | | Merge "Move device admin max screen off timeout to internal interface." into ↵Jeff Brown2014-11-112-34/+14
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | lmp-mr1-dev
| * | | | | Move device admin max screen off timeout to internal interface.Jeff Brown2014-11-062-34/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The setting was previously exposed in IPowerManager but it doesn't need to be there. Bug: 17656076 Change-Id: If3ed0cbe89f67c60aa00376be0c54b1bd9656144
* | | | | | Merge "If task isn't found in recents, look in the stacks." into lmp-mr1-devPrabhakar Thirumoorthy2014-11-112-4/+14
|\ \ \ \ \ \
| * | | | | | If task isn't found in recents, look in the stacks.Craig Mautner2014-11-112-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It may take an attach to move a task into the recents list. If the timing is right a task may not be in recents by the time we are removing it from the stacks due to a finish. In that case we should look in the stacks for the task as well as looking in recents. Fixes bug 18017409. Change-Id: Idcfe2e263c9d0fe9a063fdf22515ac4e7fe89ecb
* | | | | | | Merge "Fixed index out of bounds issue when removing windows." into lmp-mr1-devWale Ogunwale2014-11-111-4/+10
|\ \ \ \ \ \ \
| * | | | | | | Fixed index out of bounds issue when removing windows.Wale Ogunwale2014-11-101-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Child windows are also removed when WMS.removeWindowInnerLocked() is called to removed a window. This causes the number of windows to decrement by more than 1 which causes an out of bounds exception in AppWindowToken.removeAllWindows() which was expecting a decrement of 1. Changed code to only continue looping if the size of the Windows array is still greater than 0. Bug: 18202119 Change-Id: I6124717272c552ec98e89cbacaadcd964fdba02e
* | | | | | | | Zen: Exit downtime on next alarm (if mode=none).John Spurlock2014-11-112-14/+69
| |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 16373455 Change-Id: Ie5d878ea4f930556ed84225c21d7c6df61024fbc
* | | | | | | Add Activity API to get referrer information.Dianne Hackborn2014-11-113-20/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This expands the use of EXTRA_REFERRER to be relevant anywhere, allowing apps to supply referrer information if they want. However, if they don't explicitly supply it, then the platform now keeps track of package names that go with Intents when delivering them to apps, which it can be returned as the default value. The new method Activity.getReferrer() is used to retrieve this referrer information. It knows about EXTRA_REFERRER, it can return the default package name tracked internally, and it also can return a new EXTRA_REFERRER_NAME if that exists. The latter is needed because we can't use EXTRA_REFERRER in some cases since it is a Uri, and things like #Intent; URI extras can only generate primitive type extras. We really need to support this syntax for referrers, so we need to have this additional extra field as an option. When a referrer is to a native app, we are adopting the android-app scheme. Since we are doing this, Intent's URI creation and parsing now supports this scheme, and we improve its syntax to be able to build intents with custom actions and stuff, instead of being all hung up on custom schemes. While doing this, fixed a problem when parsing both intent: and new android-app: schemes with a selector portion, where we were not respecting any scheme that was specified. Change-Id: I06e55221e21a8156c1d6ac755a254fea386917a2
* | | | | | | Merge "Add LockSettingsStorage tests" into lmp-mr1-devAdrian Roos2014-11-102-2/+349
|\ \ \ \ \ \ \
| * | | | | | | Add LockSettingsStorage testsAdrian Roos2014-11-102-2/+349
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18163444 Change-Id: I563276e6d445d43d05bf0d3c633440a8e0109b69
* | | | | | | | Merge "Add caching to LockSettingsStorage" into lmp-mr1-devAdrian Roos2014-11-102-37/+224
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | / / / / / / | |/ / / / / / |/| | | | | |
| * | | | | | Add caching to LockSettingsStorageAdrian Roos2014-11-102-37/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18163444 Change-Id: I4caa80ca55efec761e965807ae793db41864321f
* | | | | | | Merge "Zen: Pull next-alarm tracking out into separate helper." into lmp-mr1-devJohn Spurlock2014-11-104-205/+340
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Zen: Pull next-alarm tracking out into separate helper.John Spurlock2014-11-104-205/+340
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In preparation for sharing with DowntimeConditionProvider. Bug: 16373455 Change-Id: If8d90187fa399935137c7ba6152925a9106a4596
* | | | | | Merge "Disable LockPatternUtilsCache" into lmp-mr1-devAdrian Roos2014-11-101-0/+3
|\ \ \ \ \ \
| * | | | | | Disable LockPatternUtilsCacheAdrian Roos2014-11-101-0/+3
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix a bug where hasPattern and hasPassword were not invalidated properly. Bug: 18163444 Change-Id: I5bd8cc4e7c0d00497ee7a42f3c34449aa3f95a6c
* | | | | | Merge "Fix inset hinting when adding window" into lmp-mr1-devDan Sandler2014-11-102-10/+12
|\ \ \ \ \ \
| * | | | | | Fix inset hinting when adding windowAdrian Roos2014-11-102-10/+12
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows with FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS were getting an incorrect content inset hint, because the hinting didn't see the adjusted systemUiVisibility. Also adds hinting for the stable insets. Bug: 17508238 Change-Id: If9647277feb6811b15665b801accd896c51dbd12
* | | | | | Merge "Fix NetworkMonitor logging to include NetID." into lmp-mr1-devPaul Jensen2014-11-101-0/+6
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Fix NetworkMonitor logging to include NetID.Paul Jensen2014-11-101-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was broken when NetID selection was moved to after NetworkAgentInfo construction time. NetworkMonitor inherits from StateMachine whose log tag is immutable after construction making it impossible to include the NetID. Instead define a simple log function in NetworkMonitor that includes correct NetID. This makes debugging via logs much easier and avoids ambiguities that can make logs useless. Change-Id: Ie72fc210b92bd425184d288b35ed476669e2e073
* | | | | | Merge "CEC: Send <Give System Audio Mode> regardless of TV's setting." into ↵Jungshik Jang2014-11-102-15/+10
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev
| * | | | | | CEC: Send <Give System Audio Mode> regardless of TV's setting.Jungshik Jang2014-11-072-15/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When TV is brought back out of standby, it should send <Give System Audio Mode> to audio receiver so that TV recovers system audio mode. Current implementation sends <Give System Audio Mode> only when setting is "ON". In order to fix this, this change sends <Give System Audio Mode> regardless of TV's setting and update system audio mode according to response of <Give System Audio Mode>. Bug: 18267467 Change-Id: I2c3c05347c6f2a7a3a5e3772e4e26c77156eb740
* | | | | | | Merge "Add dumpsys support for bluetooth" into lmp-mr1-devMike Lockwood2014-11-081-0/+21
|\ \ \ \ \ \ \
| * | | | | | | Add dumpsys support for bluetoothMike Lockwood2014-10-281-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18159457 Change-Id: I8d3f7084a7b089c111fd622ff526630bfdfa7300
* | | | | | | | Merge "UsageStatsService: Update file index to prevent double checkin" into ↵Adam Lesinski2014-11-082-14/+31
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev
| * | | | | | | | UsageStatsService: Update file index to prevent double checkinAdam Lesinski2014-11-072-14/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We seem to have renamed a file as checked-in twice, which means we checked it in twice and created a malformed name with the suffix "-c-c" instead of the correct suffix "-c". Bug:18280677 Change-Id: Ie3164010898a333e5d9b97151d285ea376de799e
* | | | | | | | | Merge "Inform PendingIntent sender if broadcast was not queued." into ↵Amith Yamasani2014-11-082-3/+5
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev
| * | | | | | | | | Inform PendingIntent sender if broadcast was not queued.Amith Yamasani2014-11-072-3/+5
| | |_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the broadcast could not be queued due to a stopped user, the party trying to send a PendingIntent should be notified right away. Otherwise, for instance, AlarmManager could be waiting forever to be called back after the broadcast is delivered. This is a potential fix for: Bug: 18290018 Change-Id: I07c0751e80f11e69dfa2be5c96a033aecb298b81
* | | | | | | | | Merge "Enable runtime turndown of backup/restore services" into lmp-mr1-devChristopher Tate2014-11-073-20/+348
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | |
| * | | | | | | | Enable runtime turndown of backup/restore servicesChristopher Tate2014-11-073-20/+348
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The heavy implementation of the backup manager service is now sitting behind a lightweight trampoline that actually provides the binder call interface. The indirection allows us now to tear down the implementation on the fly without breaking callers who have cached binder references to the backup services: these callers will simply see their future invocations failing benignly. In addition there is now an API for suitably privileged callers such as device policy management to effect this turndown. Finally, there is now a static system property, "ro.backup.disable", that a product can use to outright remove backup/restore operation from the system's operation. The public APIs will continue to be safely usable on such products but no data will be moved to or from the device. Bug 17367491 Change-Id: I8108e386ef3b5c967938fae483366d6978fe4e04
* | | | | | | | Merge "Material design for screen pinning cling" into lmp-mr1-devJason Monk2014-11-071-141/+0
|\ \ \ \ \ \ \ \