summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue #25289999: Lower device idle alarm limit to 10 mins.Dianne Hackborn2015-10-271-1/+1
| | | | | | | | | This helps with some cases where perisistent network connections need a more frequent keep alive signal. Actually make it 9 minutes to ensure that things needing a 10 minute cycle will execute within that time. Change-Id: Ife8c7b7f7f82b108d5a6c1624bd6115e6087c3be
* Merge "Prevent recents from coming up when in SUW" into mnc-dr-devPuneet Kumar2015-10-241-1/+1
|\
| * Prevent recents from coming up when in SUWMichael Wright2015-10-241-1/+1
| | | | | | | | | | Bug: 25229538 Change-Id: I141c4eb928a5ce7f9858922862fe3dc1d3a33a90
* | Merge "DO NOT MERGE Fix issue #24118803: The screen doesn't turn off..." ↵Dianne Hackborn2015-10-231-2/+1
|\ \ | |/ |/| | | into mnc-dr-dev
| * DO NOT MERGE Fix issue #24118803: The screen doesn't turn off...Dianne Hackborn2015-10-221-2/+1
| | | | | | | | | | | | | | | | | | | | ...after more than 60 minutes left The sensing timeout alarm was being cancelled immediately after it was scheduled it. Now only cancel it when we are done sensing or have reset activity. Change-Id: Id0440cda7dd1b81bf871f16dfb015df6284cf6af
* | Don't resolve cross-profile app links without intent picker.Nicolas Prevot2015-10-221-7/+2
| | | | | | | | | | | | | | | | | | | | | | If ALLOW_CROSS_PROFILE_APP_LINKING has been set: If there is an app with status always across profiles, and some apps without status always in the current profile: show an intent picker instead of directly resolving across profiles. BUG:25109215 Change-Id: I74a67d231284ce912121ea0818109fbf904183e8
* | Merge "Reinstate CHANGE_NETWORK_STATE as a normal permission." into mnc-dr-devLorenzo Colitti2015-10-221-4/+1
|\ \ | |/ |/|
| * Reinstate CHANGE_NETWORK_STATE as a normal permission.Lorenzo Colitti2015-10-221-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a partial revert of http://ag/738523 , but not a full revert because M apps that have gone through the WRITE_SETTINGS route to obtain permission to change network state should continue to have permission to do so. Specifically: 1. Change the protection level of CHANGE_NETWORK_STATE back from "signature|preinstalled|appop|pre23" to "normal". This allows apps that declare CHANGE_NETWORK_STATE in their manifest to acquire it, even if they target the M SDK or above. 2. Change the ConnectivityManager permission checks so that they first check CHANGE_NETWORK_STATE, and then ask Settings if the app has the WRITE_SETTINGS runtime permission. 3. Slightly simplify the code in the Settings provider code that deals specifically with the ability to change network state. 4. Make the ConnectivityService permissions checks use the ConnectivityManager code to avoid code duplication. 5. Update the ConnectivityManager public Javadoc to list both CHANGE_NETWORK_STATE and WRITE_SETTINGS. Bug: 21588539 Bug: 23597341 Change-Id: Ic06a26517c95f9ad94183f6d126fd0de45de346e
* | Hopefully fix issue #25153459: Sandboxed_process1 thrashingDianne Hackborn2015-10-213-12/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a race where if you unbind to a service before its process has come up, we would leave the service record active and keep it running. Fix this by checking the service state after its process up and proceed to bring it down if it is no longer needed. Also added a similar check when restarting a service, just in case there are other ways we can get into this situation. And while I am at it, I tweaked the broadcast queue dump output a bit to hopefully make it a lot easier to figure out how long it is taking to process broadcasts. Change-Id: I46b98f1fe394ab8039ea4cc81fb5d3afb6391a31
* | Merge "Maintain shared user list on OTA" into mnc-dr-devTodd Kennedy2015-10-211-1/+12
|\ \
| * | Maintain shared user list on OTATodd Kennedy2015-10-211-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | When a package is removed during an OTA, we weren't removing it from the shared user list. This means anyone asking for the packages for a shared UID would continue to see the old package. Bug: 24906701 Change-Id: Ifb6d64195e6b8af7454e19591611af66a40cbd10
* | | Narrow permission re-granting to specific volume.Jeff Sharkey2015-10-211-10/+39
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When mounting a storage volume after an SDK upgrade, the platform grants install permissions requested by apps. This patch fixes a bug that was causing us to re-grant permissions for all installed apps; we now narrow the granting to just the storage volume of interest. Also fixes a bug where scanning of internal ASECs would bump the VersionInfo of the legacy apps-on-SD volume. There is still a bug here around internal ASECs not being considered for re-grants, but that needs to be fixed in a more invasive CL that creates a separate VersionInfo. In addition, internal ASECs (also known as forward locked apps) have been deprecated for some time. Bug: 24583803 Change-Id: I9115fd484ec083bc10a970f5f612860d5a53e520
* | Merge "Don't include password on default encryption command" into mnc-dr-devPaul Lawrence2015-10-211-2/+7
|\ \
| * | Don't include password on default encryption commandPaul Lawrence2015-09-091-2/+7
| | | | | | | | | | | | | | | Bug: 22989588 Change-Id: I6f5b84519cb357af8461257654e382980b874486
* | | Merge "Don't buzz when automatically connecting to captive portals" into ↵Lorenzo Colitti2015-10-211-1/+1
|\ \ \ | | |/ | |/| | | | mnc-dr-dev
| * | Don't buzz when automatically connecting to captive portalsLorenzo Colitti2015-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Play a sound and vibrate (by setting DEFAULT_ALL) only if the user manually selected the network. This applies to both captive portals and networks with no Internet access. Bug: 24126143 Change-Id: Idf075d5c85f9f4b07a3431a25d1a3f7089cf1ee2
* | | Merge "Correctly derive ABI for apps on adopted media." into mnc-dr-devJeff Sharkey2015-10-211-4/+4
|\ \ \
| * | | Correctly derive ABI for apps on adopted media.Jeff Sharkey2015-10-201-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a bug causing PackageManager to think apps on adopted media were actually in an ASEC, causing it to skip ABI derivation. This change fixes the issue by copying the volume UUID into place early in the scanning process. Also fixes two places where we had incorrectly been including apps on adopted media; switched them to check only for ASECs. Bug: 24583803 Change-Id: If66d1bce02824a4d8e22f741b04a2abda0378cfb
* | | | Merge "Catch exceptions thrown by pending activity launches." into mnc-dr-devRob Carr2015-10-201-2/+7
|\ \ \ \
| * | | | Catch exceptions thrown by pending activity launches.Robert Carr2015-10-201-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we perform pendign activity launches from the handler thread (as opposed to the a client binder thread), we must take care exceptions from such will not bring the system server down. Bug: 24983901 Change-Id: I0e75f6b51bf6172a8e1b9cccc5fffb9d50c63e30
* | | | | Merge "ignore initial request to disable iptable chain" into mnc-dr-devKevin Cernekee2015-10-202-6/+6
|\ \ \ \ \
| * | | | | ignore initial request to disable iptable chainXiaohui Chen2015-10-202-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iptable child chains are disabled by default. Ignore the initial disable request so netd won't throw errors when it cannot detach chains that do not exist. Bug: 22800189 Change-Id: I70b4b8b9e6a5dbffe32841941922b7fd92dcd3d6 Original-Change-Id: I9312dd558ba6d59dc6aa394afeb66a222daafcf9 [cernekee: backported from master branch]
* | | | | | DO NOT MERGE Race condition in JobServiceContextMatthew Williams2015-10-202-10/+33
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 23981171 JobServiceContext has a reference to the running job which 1) needs to be copied before providing access to outside callers 2) was not guarded by a lock in one case which might result in an NPE Change-Id: I7eb04052f3fe63e7b386c564a6bdebf9144e976a (cherry picked from commit 0cc7654e109d232e5d9a9de06482d8d349a21f28)
* | | | | DO NOT MERGE Sync extras bundle comparison can throw NPEMatthew Williams2015-10-202-2/+66
|/ / / / | | | | | | | | | | | | | | | | | | | | BUG: 23591205 Change-Id: Ic6404c0befe70c34b078e0eae6a627826173d82c (cherry picked from commit 9ad2c8403354a985258c098681067e74b9e2f638)
* | | | Merge "Add SystemUI component to watch for keyboard attachment." into mnc-dr-devMichael Wright2015-10-201-2/+11
|\ \ \ \
| * | | | Add SystemUI component to watch for keyboard attachment.Michael Wright2015-10-121-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new SystemUI component to watch for keyboard attachment / detachment. If the config specifies the name of a keyboard that is packaged with the device, then SystemUI will ask the user if they would like to enable BT (if disabled) and then attempt to pair to the device. Bug: 22876536 Change-Id: I786db35524d49706d5e61d8b8bc71194d50113f3
* | | | | DO NOT MERGE Sanity check loaded periodics and cap runtime.Matthew Williams2015-10-164-11/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 24900376 We've seen an issue where periodic run times can be massively inflated after loading from disk. As a safeguard, cap the period's loaded runtime to be [p, 2p] from the time of loading. Change-Id: Ie4464490c8d6702fee8efe9190c3da5dc5f013f6 (cherry picked from commit fa8e5084eed63ab8d92c71fcff656690a30293c3)
* | | | | DO NOT MERGE Change scheduling logic to run network jobs soonerMatthew Williams2015-10-151-2/+2
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 24385082 BUG: 23144425 BUG: 18117279 Run jobs with connectivity constraints as soon as the developer-allotted delay has expired, rather than waiting for the override deadline. This is more in tune with what developers expect, although it reduces the amount of batching the scheduler can theoretically do. This will also have the side effect of fixing several failing cts tests that started breaking b/c the signal to 'run connectivity jobs early' was removed in M and nothing was put in to replace it. Change-Id: I7e63c2b62f2882ee906f748445bbf10c32e19c5f (cherry picked from commit aa9843198dec910a581bdc509d3937a9ea6ceca9)
* | | | Merge "Fix issue #24571425: Device does not come out of idle mode for ↵Dianne Hackborn2015-10-151-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | maintenance" into mnc-dr-dev
| * | | | Fix issue #24571425: Device does not come out of idle mode for maintenanceDianne Hackborn2015-10-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't allow alarms to push the idle maintenance alarm later than it was set for. Change-Id: I947718ffc9d2b984a793d7e4f2d027d8ddeee41b
* | | | | Merge "WindowStateAnimation: Clear transformation clip rect." into mnc-dr-devRob Carr2015-10-151-1/+2
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | WindowStateAnimation: Clear transformation clip rect.Robert Carr2015-10-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure the clip rect taken from transformations is cleared when there is no transformation. Normally the failure to clear the clip would not cause a problem, as the final clip would be equal to the window size. However, in the event that the window scale goes on to change (WindowState::m(H/V)Scale that is) the clip will now be specified at the inappropriate scale (notice the way the clip must be divided by H/VScale as SurfaceFlinger will apply the surface transform to the clip). Bug:24298694 Change-Id: I4548e8ecea8d66d4942e99823653a7b05f87cea0 (cherry picked from commit 2f0fe62c5426533ccdf9ec7ef28027c367286979)
* | | | | Merge "Don't call StopRecognition when recognition was aborted." into mnc-dr-devChris Thornton2015-10-151-4/+11
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Don't call StopRecognition when recognition was aborted.Chris Thornton2015-10-071-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If recognition has been aborted, then the call to the sound trigger device stop recognition has already occurred. The sound trigger helper would then try to stop it again, which generates an error code for a stop without a corresponding start event. BUG=24677430 Change-Id: Ibf5d1da1a8eb06b677e428f047905d15fd5cf21f
* | | | | Merge "Don't crash if an invalid always-on VPN profile is configured." into ↵Erik Kline2015-10-141-0/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | mnc-dr-dev
| * | | | | Don't crash if an invalid always-on VPN profile is configured.Lorenzo Colitti2015-10-131-0/+5
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is currently being hit because Settings does not clear the always-on VPN configuration when the corresponding VPN profile is deleted. This will be fixed in Settings, but there's no harm in being robust to invalid configurations here. Bug: 23625458 Change-Id: Id185a54d5892339197cd40026df5174debd957cf
* | | | | Merge "Correctly reschedule failed periodic" into mnc-dr-devMatthew Williams2015-10-142-8/+17
|\ \ \ \ \
| * | | | | Correctly reschedule failed periodicMatthew Williams2015-10-072-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 24341715 Failed jobs are rescheduled with no override deadline to avoid running a failed job with unsatisfied constraints. A periodic job always has an override deadline and the periodic rescheduling code assumes this. Hence a periodic that failed until eventual success would be rescheduled in a bad state. Change-Id: Id110b3522df2003506a9efdde4e719e1b9932106 (cherry picked from commit 1bde39ad1424008917e1191565f81e0b4617f2fa)
* | | | | | Merge "Remove ColorFade resouces when screen off." into mnc-dr-devMichael Lentine2015-10-133-9/+39
|\ \ \ \ \ \
| * | | | | | Remove ColorFade resouces when screen off.Michael Lentine2015-10-133-9/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will not destroy the surface but will free up everything else used by ColorFade when the screen is turned off. When it is turned on the surface is dismissed. Bug: 24371570 Change-Id: Iba455cdf225a68b320896f8b35d1e873e694b1e3
* | | | | | | Merge "Shorten first boot time by filtering dexopted apps by LRU." into ↵Jeff Hao2015-10-131-35/+0
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | mnc-dr-dev
| * | | | | | | Shorten first boot time by filtering dexopted apps by LRU.Jeff Hao2015-10-131-35/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No longer dexopt all system apps and boot listener user apps. Bug: 23628238 Bug: https://code.google.com/p/android/issues/detail?id=186589 (cherry-picked from commit b84cb9e9719855d56ea74c2eb7afc49034c0e66f) Change-Id: Id1a1ca9f46777f9e62df3d4f25e98a2837fabf37
* | | | | | | | BLE-MIDI: change binding for BluetoothMidiServicePhil Burk2015-10-131-2/+15
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a remote call addBluetoothDevice() using AIDL. This was needed because onBind() is only called once. Bug: 23219556 Bug: 23760886 Change-Id: Id7554ca55d596352d11dbd6ae3e403138a29c864 Signed-off-by: Phil Burk <philburk@google.com> (cherry picked from commit 7cd06c0b9e087a555d2c5dd4cab5b7eac8497526)
* | | | | | | Merge "Unbind IME client when unsetting the current IME." into mnc-dr-devYohei Yukawa2015-10-131-9/+26
|\ \ \ \ \ \ \
| * | | | | | | Unbind IME client when unsetting the current IME.Yohei Yukawa2015-10-121-9/+26
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This follows up Ia70b870723acf647e0c27f24aff91b40d6f85543. In certain scenarios, only IMMS#mCurMethodId is cleared with null while IMMS#mCurClient is still pointing to the last application. This is problematic when IMMS#mCurClient matches SystemConfig#getFixedImeApps(), because it means that the current IME is to be fixed to null. With this CL, IMMS#unbindCurrentClientLocked() is always called every time when IMMS#mCurMethodId is cleared to null. Note that clearing IMMS#mCurMethodId to null is a kind of hard-reset, where unbinding IME client should make much sense in terms of robust and predictable state management. Bug: 18056075 Change-Id: I6c3186050592526fc95c5b27f18e2155acff5ebc (cherry picked from commit e13a20faccf6f33aa43c9c1fa4c4ec2a79b86cfb)
* | | | | | | Shared user retains permissions no longer used by any app on an app updateSvetoslav2015-10-121-2/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an app in a shared user uses permission A and B and these are granted to the shared user and now an app update is installed that only uses A, the shared user still ratains the B grant. A shared user should have only permissions declared as used by its currenlty installed apps. bug:24736912 Change-Id: Idea6c06bdc236fd481a860cddb379e6ce660ee87
* | | | | | | MidiService: update listener with current status when registeredPhil Burk2015-10-121-0/+21
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will give an app an opportunity to learn whether an input port is busy before the user tries to connect and then fails. Bug: 22825043 Change-Id: Ifede60f166dfe66ea15453044fce06f4a8452b18 Signed-off-by: Phil Burk <philburk@google.com> (cherry picked from commit b2355940e3e697deeecd1b6511cd5094f9dc553a)
* | | | | | Merge "Fix issue #23581553: Ignore Battery Optimization not work for ↵Dianne Hackborn2015-10-121-3/+20
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | re-install app" into mnc-dr-dev
| * | | | | | Fix issue #23581553: Ignore Battery Optimization not work for re-install appDianne Hackborn2015-10-121-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove from whitelist as appropriate. Also be sure we can find whitelisted apps even if they are not installed in the primary user. Change-Id: I3ed13dca99b3ba177af8f7bd26a75258df9b6949
* | | | | | | Use effectiveUid instead of callingUid to set lockTaskModeWale Ogunwale2015-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The callingUid can be different from that of the app been locked (e.g. was launched from launcher) there by leading to the app crashing when it tries to exit lockTaskMode. Bug: 24146132 Change-Id: I03346fabd1d7e61b29178220c72f747a0600f5ec