summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Add Validation logging.Robert Greenwalt2015-06-262-16/+55
| | | | | | | | Persist the last 20 lines of validation info for the last 10 networks. bug: 21599856 Change-Id: I8124480cc9181eea2adb7eb6eabcd07c9506b6d3
* Update surfaces secure flag on screen capture setting changeWale Ogunwale2015-06-232-0/+31
| | | | | | | | Also, added 'wm screen-capture [userId] [true|false]' command. Bug: 20934462 Change-Id: I14711003d7691fc4495428c12c9ff3457cd3773c
* Merge "add rank to notification visibility log" into mnc-devChris Wren2015-06-235-13/+23
|\
| * add rank to notification visibility logChris Wren2015-06-225-13/+23
| | | | | | | | | | | | | | | | Only sysui knows the true rank, since it can (and does) reorder things. The visibility logs are down in the service because it has other bits of data. Bug: 21395744 Change-Id: Ibf9479dc2306fb27fb5df3bf21e161478d36d587
* | Merge "Introduce Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN" into ↵Zoltan Szatmary-Ban2015-06-231-0/+1
|\ \ | | | | | | | | | mnc-dev
| * | Introduce Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWNZoltan Szatmary-Ban2015-06-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This setting controls whether WiFi configurations created by a Device Owner app should be locked down (that is, editable or removable only by the Device Owner). Bug: 21427528 Change-Id: I0f8fb72bf9da1597e08d3dfc631d37b6b4178ff5
* | | Merge "Revert "Remove not needed contacts related perissions."" into mnc-devBart Sears2015-06-231-7/+8
|\ \ \
| * | | Revert "Remove not needed contacts related perissions."Bart Sears2015-06-231-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broke the build, reverting. This reverts commit a2991da0d671adf511ccb884cf25bf1241303f92. Change-Id: I2bdfa70fbd8a6c03e48426f85eeb63896762d5da
* | | | Merge "Remove not needed contacts related perissions." into mnc-devSvet Ganov2015-06-231-8/+7
|\ \ \ \ | |/ / /
| * | | Remove not needed contacts related perissions.Svet Ganov2015-06-221-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing the read/write profile/social stream permissions as they are not needed anymore. These permissions are for accessing data nested in the conacts provider which is already guaded by the read/write contacts runtime permissions. The removed permissions would be in the contacts group which means they would not provide more protection compated to read/write contacts. Also removing the permissions voids the need for app op support for legacy apps. Removed deprecated APIs for social streams as these were deprecated and will go away in the next release. We want apps targeting M to not be able to compile if still suing these APIs to help with migration. Change-Id: I26ed9055847af7f92c78eb0f4ac8f9f1aa616fcd
* | | | Merge "Auto grant read external storage too - it is now dangerous." into mnc-devSvet Ganov2015-06-231-1/+1
|\ \ \ \
| * | | | Auto grant read external storage too - it is now dangerous.Svet Ganov2015-06-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We grant external storage permissions to some default handlers by default. Read external storage was promoted to runtime permission but was not granted as a part of the external storage group, i.e. with write external storage. bug:21980225 Change-Id: I1edd7ae13222f12c9a488efb1919f5cf96e4b69d
* | | | | Merge "Suppress pausing activities when screen off due to proximity." into ↵Jeff Brown2015-06-231-14/+24
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | mnc-dev
| * | | | | Suppress pausing activities when screen off due to proximity.Jeff Brown2015-06-221-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pausing and resuming the in-call activity may have the side-effect of releasing and reacquiring the proximity sensor wake lock which can cause the system to enter a loop. Although in general it might be a good idea to pause activities whenever you can't see them, it makes more sense to treat the proximity sensor as temporarily suppressing rather than fully pausing activities. Bug: 21932251 Change-Id: Ie072cbe5984bec08f2c60c64ed8cc144534982db
* | | | | | Merge "Back up / restore default app and intent filter verification state" ↵Christopher Tate2015-06-233-54/+337
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | into mnc-dev
| * | | | | | Back up / restore default app and intent filter verification stateChristopher Tate2015-06-223-54/+337
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For apps not present on device, the state inherited from the ancestral device is applied when the app is ultimately installed. Bug 20144515 Change-Id: Ie05b4f1751357fc62f14e259da174b8cf465e913
* | | | | | | Merge "Fix issue #21753257: Stability: startActivity asks to run as user ↵Dianne Hackborn2015-06-221-8/+14
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 0..." into mnc-dev
| * | | | | | | Fix issue #21753257: Stability: startActivity asks to run as user 0...Dianne Hackborn2015-06-221-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...but is calling from user 10 Change-Id: Ia4b8ace6ad140c1727fe944882e0d5b5c650260b
* | | | | | | | Merge "Let device owners handle onChoosePrivateKey" into mnc-devRobin Lee2015-06-221-4/+10
|\ \ \ \ \ \ \ \
| * | | | | | | | Let device owners handle onChoosePrivateKeyRobin Lee2015-06-221-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 21959745 Change-Id: Ifad3901015937d2ea700124bb5f61982cd580ad8
* | | | | | | | | Merge "Allow cross-profile app linking from work to personal." into mnc-devNicolas Prevot2015-06-222-11/+123
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Allow cross-profile app linking from work to personal.Nicolas Prevot2015-06-222-11/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the profile owner sets ALLOW_PARENT_APP_LINKING: ACTION_VIEW, scheme http/https intents sent from the work profile can be resolved by personal apps if they specify a host. BUG:21701782 Change-Id: I372e2405345539eac9d6b4fb08def6bf84da14a6
* | | | | | | | | | Merge "Cancel Syncs that aren't making progress." into mnc-devMatthew Williams2015-06-221-37/+139
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Cancel Syncs that aren't making progress.Matthew Williams2015-06-221-37/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 18266674 1) If a sync has up/downloaded less than 10bytes in 60 seconds it is considered to be making no progress and is summarily cancelled. 2) Apply a 30min hard time-out to initialization syncs. Note that there is little proof that cancelling a sync has an impact. All it results in is a Thread.interrupt on the sync thread, which the adapter must itself implement. To this effect this CL also updates the javadoc to make this clearer, and adds some (unimplemented) threats about killing the hosting process. Change-Id: I83c447648152ccbf76bb1fbd7e9216e01a37952f
* | | | | | | | | | | Merge "Fix privacy leaks in LocationManager" into mnc-devDavid Christie2015-06-221-10/+38
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / |/| | | | | | | | | |
| * | | | | | | | | | Fix privacy leaks in LocationManagerDavid Christie2015-06-221-10/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Register for listener for permission changes and stop request immediately if client loses permission. -Also remove permission requirement to remove geofences and clean up permission annotations. Bug: 21903866 Change-Id: I7e028b6b2ca5b21f25fcbba5de86dfb55caff872
* | | | | | | | | | | Merge "Forget private partition keys." into mnc-devJeff Sharkey2015-06-221-9/+35
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Forget private partition keys.Jeff Sharkey2015-06-221-9/+35
| | |_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we forget a private partition, ask vold to also forget the key for that partition GUID. This means we need to track both the filesystem UUID and the partition GUID for a private volume. Bug: 21782268 Change-Id: Icda1cbb65539d61dacc663428daf3d1a2e4c313e
* | | | | | | | | | | Merge "Volume: Force focused state to disambig multiple sliders." into mnc-devJohn Spurlock2015-06-221-6/+6
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Volume: Force focused state to disambig multiple sliders.John Spurlock2015-06-221-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And fix volume policy so that a focused slider at the top of the screen does not cause the window to pan. Bug: 21476764 Change-Id: I4a52270ca5ecf9b9bd6e787ef580ecbd32e62625
* | | | | | | | | | | | Merge "Fix race condition in PackageManager." into mnc-devoleksii stepanian2015-06-221-8/+14
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Fix race condition in PackageManager.oleksii stepanian2015-06-191-8/+14
| |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Google Play installs 2 apps concurrently (e.g. personal and work profile) PackageManager can hit a race condition when connection to media container has not yet been established but the MCS_BOUND event is triggered from MCS_UNBIND. Detailed step by step scenario: 1. package1 comes in 2. INIT_COPY (initiate bind, add pending install) 3. onServiceConnected triggers (MSC_BOUND) 4. MSC_BOUND, process pending package and schedule MSC_UNBIND 5. MSC_UNBIND is triggered once the package is verified 6. service is diconnected 7. package2 comes in 8. INIT_COPY (initiate bind, add pending install) 9. MSC_UNBIND scheduled at step 4 10. MSC_UNBIND sees that there is a pending package, schedules MSC_BIND 11. MSC_BIND arrives before service is connected and we fail. Solution: do not fail if we wait for connection. Bug: 21849046 Change-Id: I39928e1efc81ba64e45c622cc08cb786801d6569
* | | | | | | | | | | | Merge "Fix reporting of wakelocks to battery stats." into mnc-devJeff Brown2015-06-222-33/+66
|\ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ / / / | |/| | | | | | | | | |
| * | | | | | | | | | | Fix reporting of wakelocks to battery stats.Jeff Brown2015-06-192-33/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed certain wake lock types which were being incorrectly reported to BatteryStats as WAKE_TYPE_FULL due to incomplete decoding of the wake lock level. Bug: 21949905 Change-Id: Ie3abfc9f473ce721ad042d228175592c7b8ede33
* | | | | | | | | | | | Merge "Fix issue #21930140: Add config to turn off auto power features" into ↵Dianne Hackborn2015-06-222-23/+50
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dev
| * | | | | | | | | | | | Fix issue #21930140: Add config to turn off auto power featuresDianne Hackborn2015-06-222-23/+50
| | |_|/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doze and app standby are now off in the default platform config. The Google overlay turns them on. Other people can do that as well, if they are feeling like it. Change-Id: Ic8a87f696df94f2d8354fe0772d03b672f464e32
* | | | | | | | | | | | Merge "Wait for the capabilities callback before deciding FLP HAL version." ↵David Christie2015-06-221-4/+21
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mnc-dev
| * | | | | | | | | | | | Wait for the capabilities callback before deciding FLP HAL version.David Christie2015-06-191-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Some implementations require a modem handshake to determine FLP HAL version and can't do it upon initialization. Wait for a v2 callback before assuming that the HAL implementation is actually v2. Bug: 21958418 Change-Id: I7512d293f99363c63580c69d84f80da96a88dd2f
* | | | | | | | | | | | | Merge "Trace Process.killProcessGroup calls in server/am/" into mnc-devYusuke Sato2015-06-222-5/+14
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Trace Process.killProcessGroup calls in server/am/Yusuke Sato2015-06-172-5/+14
| | |_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to make it easier to find boot time regressions like 21813611 and 21861473. Process.killProcessGroup is a blocking call and usually takes about 50ms to finish on a recent device even when the process group contains only one process. Since Process.killProcessGroup tends to be called in a loop, the function can be a bottleneck. Bug: 21813611 Change-Id: I9c1727c0c0b321a30c96321198cc02f438496ded
* | | | | | | | | | | | Merge "Set DISABLED_UNTIL_USED for the correct user in IMMS." into mnc-devYohei Yukawa2015-06-221-5/+6
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Set DISABLED_UNTIL_USED for the correct user in IMMS.Yohei Yukawa2015-06-201-5/+6
| | |_|_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL makes If8ff1b2b95c36d33148def2ab87bd006aa520cc0 multi-user aware. It turns out that DISABLED_UNTIL_USED has not been correctly set to IMEs seen from secondary users because we have used IMMS#mContext.getPackageManager(), which always returns the PackageManager with the primary users' context, when specifying COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED. We should use IPackageManager instead as we have already done in many places of IMMS since Ib23849d352db33f0747aa9d5a178f00. Bug: 8148605 Bug: 8365223 Bug: 21953608 Change-Id: I4b9d6510bf965204bb1f68c8b527d1a4df23fac4
* | | | | | | | | | | | Fetch the Bluetooth name and address without enabling the whole stackPavlin Radoslavov2015-06-221-11/+15
| |_|_|/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After factory reset and first bootup, fetching the Bluetooth device name and address is now done without explicitly enabling/disabling the whole Bluetooth stack. Apparently, enabling/disabling the whole stack during th first bootup was somehow holding the kernel wakelock without releasing it. Also, disable debug log messages for class BluetoothManagerService. Bug: 21949364 Change-Id: Iffc14f7969d05c1456159d1f4246c53fb5df0f7a
* | | | | | | | | | | Merge "Don't prevent notification updates in DOS protection." into mnc-devVladimir Marko2015-06-221-13/+5
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Don't prevent notification updates in DOS protection.Vladimir Marko2015-06-171-13/+5
| | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NotificationManagerService limits the number of notifications per package+user to 50. Once that limit is reached, it will refuse new notifications. However, it was also erroneously refusing updates to existing notifications. Bug: 5821364 (cherry picked from commit d9f4c95b7de877e888d833d192b9ecbf7bd47f81) Change-Id: I9abc455ef3863730f8e42c8eecff4892cdbc7c1c
* | | | | | | | | | | TIF: Minor code improvementJae Seo2015-06-214-69/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removed unnecessary 'final' keywords for private methods - Removed unnecessary interface modifiers - Added a missing ‘final’ keyword - Simplified if statements - Removed Javadoc links pointing to itself - Removed redundant conditional expressions - Removed unnecessary return statements - Replaced explicit types with <> - Removed an unnecessary unboxing - Removed a redundant initializer - Fixed typos Change-Id: I1d137fda70192b33dd00e92ab01396519135ab39
* | | | | | | | | | | TIF: Use the right size for calls to toArray() instead of 0Jae Seo2015-06-212-4/+3
| |_|_|_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I645a09403b60545123627df7d0222ed34f084ffe
* | | | | | | | | | Do not thrown on error persisting runtime permissionsSvet Ganov2015-06-201-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:20752986 Change-Id: I49d7e30afd49d3dcb1bcffd2fd48e9460ed5147f
* | | | | | | | | | Ensure default permissions not dropped on data wipeSvet Ganov2015-06-201-0/+3
| |_|_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:21954760 Change-Id: I15de766012e66e171d2089af574687ad513a5d57
* | | | | | | | | Merge "Occasionally retest for captive portals once detected" into mnc-devPaul Jensen2015-06-201-0/+18
|\ \ \ \ \ \ \ \ \