Commit Graph

3291 Commits

Author SHA1 Message Date
Julia Reynolds
a11d0b18ec Api review feedback.
Change-Id: I4628fcec43ec5dbacd208401d9ace2dbe658da64
Fixes: 35812235
Fixes: 35812334
Fixes: 35812179
Test: make
2017-02-28 17:59:31 +00:00
Amin Shaikh
d3c8193093 Setting for RecommendedNetworkEvaluator cache TTL
Bug: 19948759
Bug: 33694078
Test: runtest frameworks-core
Change-Id: Ic1820dc3d70170e6b7c740696abf87d284c6e2ea
2017-02-27 17:03:10 -08:00
Jack Yu
a585180c75 Merge "Added a settings for CMAS message broadcast" 2017-02-25 00:11:12 +00:00
Jack Yu
3902857290 Added a settings for CMAS message broadcast
This is for sl4a automation to receive CMAS messages
broadcasdt. The automation should inject the settings
through 'adb settings'.

Test: manual
bug: 34393649
Change-Id: Ic29be11b641f185219146d7fbb05561f5907ea76
2017-02-24 12:18:46 -08:00
TreeHugger Robot
798cccb659 Merge "Don't copy ringtones when profile sync goes off" 2017-02-23 04:21:39 +00:00
Robin Lee
7af9a74431 Don't copy ringtones when profile sync goes off
Experimentally, it makes more sense to more people to have the parent
setting as an overlay not a concrete thing.

Test: make cts -j30 && cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test 'com.android.cts.devicepolicy.ManagedProfileTest#testRingtoneSyncAutoDisableRingtone' </dev/null 2>&1
Bug: 34730524
Change-Id: I5f804713def9e54921b90e4f5cea742ba8aaa685
2017-02-23 02:47:24 +00:00
TreeHugger Robot
0e9acb53bd Merge "Add "Use open Wi-Fi automatically" setting." 2017-02-23 02:37:26 +00:00
Daniel Nishi
5840f4238f Merge "Add a flag to enable/disable the cache quota calc." 2017-02-22 23:39:34 +00:00
Sudheer Shanka
f764962b0d Merge "Revert "Ensure network connectivity on app start."" 2017-02-22 22:47:56 +00:00
Amin Shaikh
bc9a8e6f5b Add "Use open Wi-Fi automatically" setting.
- Add constant in NetworkScoreManager for the meta-data key required
for NetworkRecommendationProviders to specify which package provides
this feature.
- Add Setting to specify which package is enabled for providing this
feature.

Bug: 34773276
Test: make
Change-Id: I3f8209c21b8b219c242650f97ba407b5985a5250
2017-02-22 14:23:50 -08:00
Sudheer Shanka
c9d9407e8e Revert "Ensure network connectivity on app start."
This reverts commit 27e6931583.

Change-Id: I4c41ce7c1839d3b91931bc8a8f117f32bf6cd381
2017-02-22 22:13:55 +00:00
TreeHugger Robot
9857ab99e4 Merge "Unhide root MIME type." 2017-02-22 19:45:48 +00:00
Daniel Nishi
0f703e64e3 Add a flag to enable/disable the cache quota calc.
Bug: 34770259
Test: ServicesTests
Change-Id: I74155203c4802b1a3b89117859002bf40b1ca435
2017-02-22 11:24:10 -08:00
TreeHugger Robot
fb924fa981 Merge "Fix 'Modifying dpm.setSecureSetting call for install_non_market_apps'" 2017-02-22 05:37:37 +00:00
Suprabh Shukla
0b1356ff1f Fix 'Modifying dpm.setSecureSetting call for install_non_market_apps'
The previous change was reverted as it broke work profile provisioning.
Clearing binder calling identity before calling into settings provider
should fix the issue.

Test: runtest managed-provisioning
Test: runtest -x services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
Test: Manually tested that work profile is inflated with expected values
of install_non_market_apps

Bug: 33947615
Bug: 35590590

Change-Id: I3c31a73fef0c25c0e682e18f637272adad39b28d
2017-02-21 18:36:28 -08:00
Phil Weaver
385912ee2d Deprecate "speak passwords" setting.
This will now be controlled by individual accessibility services.
We'll provide the password information to them, and they can
present or hide the information as it makes sense for their users.

Password information was anyway provided when a headset was
connected.

Bug: 28139568
Test: Manually verified that TalkBack now speaks passwords on the
lock screen and in text views. Since I'm removing functionality
that didn't have tests, it's tricky to have specific tests.
Change-Id: Ic3c724ccce5762ee9dcd9e7dcbd4eae6734dd05e
2017-02-21 15:24:54 -08:00
Garfield Tan
a7e852ef7b Unhide root MIME type.
Caller can then call setDataAndType(Uri, String) to indicate it's
passing a root URI for a performance shortcut.

Test: It builds.
Bug: 34944388
Change-Id: I4de49171b822d19f1794c7c413078a78396a7c03
2017-02-21 13:04:09 -08:00
Jeff Sharkey
830d4b422d Merge "Clear cache space when allocating bytes." 2017-02-21 20:56:59 +00:00
Jeff Sharkey
d5d5e926eb Clear cache space when allocating bytes.
Fleshes out remainder of allocation implementation, where we offer
to clear cached data to satisfy the allocation request.  To prevent
abuse, we never let apps allocate into either the minimum cache space
or low storage space.

Clean up quota APIs to require the caller to pass in the path they're
interested in, and we resolve the underlying filesystem for them.

Defines settings that can be used to tweak the minimum cache space.

Test: builds, boots
Bug: 34690590
Change-Id: I85bc07399f91ee4aa568a8a54c615646bf748ad4
2017-02-21 11:50:55 -07:00
Victor Chang
5663e05109 Revert "Modifying dpm.setSecureSetting call for install_non_market_apps"
This reverts commit 2e7d6d64b9.

Bug: 35590590
Fix: 35590106
Test: runtest managed-provisioning
Test: manual verified that work profile can be inflated
Change-Id: Ie780b94053e65bca2f96b32055937c0c9e8beae8
2017-02-20 17:00:58 +00:00
TreeHugger Robot
dd903d4f0e Merge "Modifying dpm.setSecureSetting call for install_non_market_apps" 2017-02-17 23:05:48 +00:00
Suprabh Shukla
2e7d6d64b9 Modifying dpm.setSecureSetting call for install_non_market_apps
Starting from O, install_non_market_apps is deprecated and will not be
checked by the package installer. Device admin apps should be using the
user restriction instead.
Since on managed profiles, the default value blocked install from
unknown sources, the system will set the user restriction on behalf of
the profile owners (if the profile has one).
For non-managed profiles, the user had access to the settings to change
the value of install_non_market_apps. So going forward, any request to
change it's value by dpm#setSecureSetting in such users is going to be
ignored.

Test: Manually tested that:
1. For a profile with PO, when install_non_market_apps was set to 0,
user restriction is set on upgrade
2. For a profile with PO, when install_non_market_apps was set to 1,
user restriction is not set on upgrade
3. After upgrade, newly created managed profiles with PO have user
restriction set

Bug: 33947615
Change-Id: I063e9ee608b52086ffdf8ed2b24e2928574c58cd
2017-02-17 13:25:14 -08:00
TreeHugger Robot
8c9a6b0089 Merge "Revert "Revert "Per user setting for instant app""" 2017-02-17 20:46:12 +00:00
Santos Cordon
a093a89b17 Merge "Back up VR screen brightness setting." 2017-02-17 19:23:13 +00:00
Santos Cordon
bd9dd552e4 Back up VR screen brightness setting.
'adb help backup' to see how to do backup/restore to a file.

Verified value did not backup prior to change and that it did afterward.

Bug: 34437367
Testing: Set to 30%, do backup, set to 100%, do restore, should be 30%.

Change-Id: I43ce31bf50bc4608e8ce9b87ea0bdb83bac52e61
2017-02-17 03:11:19 +00:00
TreeHugger Robot
d2bd42e736 Merge "Add Secure setting for the assist gesture." 2017-02-17 02:12:58 +00:00
Todd Kennedy
be0b8896d1 Revert "Revert "Per user setting for instant app""
This reverts commit be9ffa15af.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Ib21321cf157a79890de487060a093840f7182047
2017-02-16 12:43:37 -08:00
Winson Chung
28217a4ca2 Ensuring that there are per-user last stack active times.
- This fixes an issue where the last stack active time would be clobbered
  when switching between users.  With the policy in the phone/stack
  recents, this is fine, but with the grid recents, it no longer only
  applies when out of the historical window, so it is always wrong (it
  would normally be wrong if switching back from another user after the
  historical time of six hours).

  This CL will migrate the last stack active time to a per-user secure
  setting, which will be used going forward.

Bug: 35375206
Test: On the Ryu, launch some tasks, switch users, launch more tasks, and
      return to the original user

Change-Id: I9941526de5d1dd52d1f9003e795995389064b19d
2017-02-15 13:46:52 -08:00
TreeHugger Robot
c3f157492d Merge "Fix colon-separated string lists" 2017-02-14 20:25:25 +00:00
Phil Weaver
806456f097 Fix colon-separated string lists
The first item in such lists was improperly generated and
included type information.

Bug: 35209951
Test: Looked at enabled_accessibility_services after performing
accessibility shortcut

Change-Id: I715ea6276a23e421e4c0611a4b66af5566db90bc
2017-02-14 09:18:03 -08:00
Ricky Wai
89c376ed66 Merge "Change "Long pressing work mode in quick settings" to managed profile settings" 2017-02-14 11:14:12 +00:00
Philip Quinn
c4cc308c85 Add Secure setting for the assist gesture.
Test: make
Change-Id: I21c88c0b91043db3de46830044c434a21a0e6cc0
2017-02-13 20:18:16 -08:00
Sudheer Shanka
27e6931583 Ensure network connectivity on app start.
Bug: 27803922
Test: cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests
Change-Id: Ifd7a52924cd6bbc809c9a3f92d52fe2df09b7fe2
2017-02-13 17:17:41 -08:00
Daniel Nishi
e767e087d5 Merge "Add storage management days to retain to settings for backup." 2017-02-10 17:50:22 +00:00
Makoto Onuki
b23cd8ece5 Merge "Stop using IntentService and use async receiver (2/2 - contract)" 2017-02-10 16:27:52 +00:00
Julia Reynolds
71b60b86e3 Merge "Let apps link to noti settings and vice versa." 2017-02-10 16:05:10 +00:00
Makoto Onuki
b63830a724 Stop using IntentService and use async receiver (2/2 - contract)
Also:
- Set FLAG_RECEIVER_INCLUDE_BACKGROUND for ACTION_EVENT_REMINDER
- Remove the wake lock; with goAsync() now it's not needed.

Test: Manual test with: adb shell am broadcast --receiver-include-background -a android.intent.action.EVENT_REMINDER -d content:
Bug 35207106

Change-Id: I9e456f473f13b71df6e0dd1a1abdb0df8c26e6c7
2017-02-09 17:07:06 -08:00
TreeHugger Robot
c6ba07d3b6 Merge "Remove downloads backup related Settings." 2017-02-09 22:33:52 +00:00
Jeremy Joslin
c9eb3c4651 Add a new setting to store the network recommendation app.
Test: manual
Bug: 35095406
Change-Id: I3d0b7f3b977c0862969d61a4e46f12151eb15417
2017-02-09 08:43:19 -08:00
Julia Reynolds
2619b5e663 Let apps link to noti settings and vice versa.
Test: manual
Change-Id: I3536099fdea1c7a8ddbe38b223fc99b9fef9197a
2017-02-09 10:09:24 -05:00
Daniel Nishi
c12a9bd148 Remove downloads backup related Settings.
Bug: 32338407
Test: Coretest doesn't fail
Change-Id: Idc28db30af9228e57c6bc775a15d703fbe25798a
2017-02-07 17:49:41 -08:00
Eugene Susla
444eb97c0c Merge "CompanionDeviceManager" 2017-02-06 22:19:54 +00:00
Eugene Susla
6ed45d8cd3 CompanionDeviceManager
This introduces an API for apps that support companion devices to provide a
more streamlined flow for pairing and setting up the device

Bug: 30932767
Test: Using a toy app, invoke the newly introduced API (CompanionDeviceManager),
 and go through the flow. Ensure filtering works, and device is returned to
 the calling app. Ensure the calling app can pair to the selected device.
Change-Id: I0aeb653afd65e4adead13ea9c7248ec20971b04a
2017-02-06 12:50:55 -08:00
Justin Klaassen
5483cea67a Remove experimental twilight-based automatic brightness
Bug: 31602449
Test: verified adaptive brightness no longer varies with twilight with
"brightness_use_twilight" set to "1".

Change-Id: I6b5f7310020b2128c2b292414a205b6052270a0a
2017-02-06 07:36:55 -08:00
Ricky Wai
38bb832e7d Change "Long pressing work mode in quick settings" to managed profile settings
Test: Long pressing work mode can go to managed profile settings now.

Bug: 34189626
Change-Id: Ic2260aa9dbf9e42f7e3c532aca329d2ba3cd1421
2017-02-01 16:21:53 +00:00
Lorenzo Colitti
2de4925f5c Add an API hint for metered multipath traffic.
This allows an application that knows how to provide seamless
network connectivity (e.g., using QUIC multipath) to find out if
doing so is desired.

Test: builds, boots, runtest frameworks-net passes.
Bug: 34630278
Change-Id: Ic7fd0b9e1cd879fdfaf84009d7125391895e9087
2017-02-01 17:02:29 +09:00
Makoto Onuki
465099ce2d Merge "API change for: Revive CONTACTS_DATABASE_CREATED, and..." 2017-02-01 01:04:07 +00:00
William Mee
9deb6b5a3a Merge "Added a new wifi_badging_thresholds setting to Settings.Global" 2017-01-31 16:54:48 +00:00
Svetoslav Ganov
096d304ae3 Add instant cookie APIs
This change adds APIs for instant apps to store cookie data
that is presisted across instant installs and across the
upgrade from an instant to a standard app. Standard apps
can use the cookie APIs but when they are uninstalled the
cookie is also deleted. The cookies are kept longer than
the instant apps as they are much smaller - 16KB by default.
We can change the cookie size via a system setting i.e.
after we ship we can increase size if needed.

We also add internal APIs to surface information about
installed and uninstalled instant apps which should be
used for showing them in the UI. For this puporse we store
the icon, permissions, and label of uninstalled apps. If
the app is re-installed we drop this meta-data but keep
the cookie around. If we have cookie data stored and the
signing cert of the app changes when it gets re-intalled
we wipe the cookie.

Test: CTS tests pass; hiddent APIs tested manually

Change-Id: If145c0440cc61a5303e2cbb70228d235d36037a5
2017-01-30 17:52:14 -08:00
TreeHugger Robot
ad3190becc Merge "Allow ephemeral apps to access SOUND_EFFECTS_ENABLED" 2017-01-30 20:43:18 +00:00