Commit Graph

3221 Commits

Author SHA1 Message Date
Chad Brubaker
bb656a2dbe Allow ephemeral apps to access SOUND_EFFECTS_ENABLED
Test: Manual
Change-Id: I9e574f35b5f007cf62665a60f075fc8ee5096158
2017-01-30 10:28:43 -08:00
Dianne Hackborn
c5d458930c Merge "Add some new experiment constants for activity and power manager." 2017-01-25 21:12:12 +00:00
TreeHugger Robot
142cbdd474 Merge "Expose intents for launching channel settings." 2017-01-25 19:20:21 +00:00
Julia Reynolds
9ba0c613a5 Expose intents for launching channel settings.
Test: manual
Change-Id: I86e12b0ed6b60660b9f6bd1015c186897418560e
2017-01-25 12:43:13 -05:00
Dianne Hackborn
0ef403e53e Add some new experiment constants for activity and power manager.
Activity manager now has constants, starting with two: bg check
and process limit.

Power manager now has constants, starting with one: controlling
disabling of wake locks from cached processes.

Test: manual

Change-Id: I05db42e2104e9d31584f85251412df2d5efb34b6
2017-01-24 18:23:45 -08:00
TreeHugger Robot
b878348382 Merge "Don't mark query+cancellationSignal final." 2017-01-24 23:26:24 +00:00
TreeHugger Robot
13c8c869d2 Merge "Enabled backup/restore of Wifi Wakeup and Network Recommendations Settings." 2017-01-24 22:36:44 +00:00
Steve McKay
0bb25299ca Don't mark query+cancellationSignal final.
Bug: 34517733
Test: None.
Change-Id: Iff281c676b928859c0e2e975d9f0cfabb36479d9
2017-01-24 13:46:15 -08:00
TreeHugger Robot
d3902a342e Merge "Introduce Fonts Content Provider" 2017-01-24 21:17:11 +00:00
Stephen Chen
42f5f29439 Enabled backup/restore of Wifi Wakeup and Network Recommendations Settings.
Bug: 34430370
Test: make
Change-Id: I8838eace4cac6a02d580d73a5700ca4e3f368bf6
2017-01-24 13:01:07 -08:00
Clara Bayarri
b0812a3049 Introduce Fonts Content Provider
This change exposes to developers the ability to request fonts
from a provider via Typeface.

Until further security is implemented, only system apps can
provide fonts.

Test: See topic for CTS change
Change-Id: Ic7d5e2648340ee561f4d4c2d73a673748d2af076
2017-01-24 19:32:09 +00:00
Android Build Merger (Role)
589d3673dc Merge "Fix typo in the IS_OMPT_VOICEMAIL field. am: 57365441d4 am: e696c3d911" 2017-01-24 18:43:27 +00:00
Ta-wei Yen
ea0a8bddec Fix typo in the IS_OMPT_VOICEMAIL field. am: 57365441d4
am: e696c3d911

Change-Id: I380e1a15f1c13009b876dd0347ef811cd3f70aed
2017-01-24 18:42:46 +00:00
TreeHugger Robot
d2b93464da Merge "Adding AppOps setting for entering PiP when hidden." 2017-01-24 18:38:54 +00:00
Winson Chung
59fda9e217 Adding AppOps setting for entering PiP when hidden.
- In O, apps can request to enter picture-in-picture when the user
  effectively leaves their activity for another task by default. To
  prevent this from being abused, we need to add a setting for the
  user to disable this behavior per-package in the system level.
  When disabled, any activity from that package will only be able
  to enter picture-in-picture when it is visible and resumed.

Bug: 34520451
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testAppOpsDenyPipOnPause
Change-Id: Ib3a993e99ffb071706c6b7d3fb1c882b74acc5d7
Signed-off-by: Winson Chung <winsonc@google.com>
2017-01-24 09:15:01 -08:00
Ta-wei Yen
e696c3d911 Fix typo in the IS_OMPT_VOICEMAIL field.
am: 57365441d4

Change-Id: I060ed862bd929875848753d77e6fc3ff8a48e32c
2017-01-24 02:18:26 +00:00
Andrew Sapperstein
e33525615e Add Settings.Global configs to high temp warning.
Test: manual
Bug: 34480261
Change-Id: Icfd08c1c7dae456920b3978918ee01469e1dec95
2017-01-23 16:43:35 -08:00
Ta-wei Yen
57365441d4 Fix typo in the IS_OMPT_VOICEMAIL field.
This cause the voicemail content provider to crash on query.

Bug: 34610526
Change-Id: I561ae6616fe66ea49630fa6c4eb9280fdc24b153
Fixes: 34610526
Test: VoicemailContentProviderTest
2017-01-23 12:50:35 -08:00
Soonil Nagarkar
086ab84878 Merge "Add background location throttling to LocationManagerService" 2017-01-23 20:42:49 +00:00
Amin Shaikh
17a040d48e Merge "Add Setting for curating saved open networks." am: b3b665de22 am: 2aec2f7a9c
am: 835db7f6b6

Change-Id: I5a8e3a4fc0198dbb7bf88e2bbcf0152b0b82a7fc
2017-01-21 05:38:45 +00:00
Amin Shaikh
835db7f6b6 Merge "Add Setting for curating saved open networks." am: b3b665de22
am: 2aec2f7a9c

Change-Id: If61be9f8e71bb89a8714c3f4a5eb10b04982cdf7
2017-01-21 05:34:12 +00:00
Amin Shaikh
2aec2f7a9c Merge "Add Setting for curating saved open networks."
am: b3b665de22

Change-Id: I3c65f39dc4f38f1c6c00a240f519cb0b0cf1a916
2017-01-21 05:27:06 +00:00
Amin Shaikh
8533622ae7 Add Setting for curating saved open networks.
Bug: 34392914
Test: make
Change-Id: Icd17753af6b0efdb35d1060b16029a53fdf4e605
Merged-In: Icd17753af6b0efdb35d1060b16029a53fdf4e605
2017-01-20 18:31:56 -08:00
TreeHugger Robot
885019151d Merge "Add Setting for curating saved open networks." 2017-01-21 02:27:30 +00:00
Chad Brubaker
6ba5dccd50 Merge "Add ephemeral whitelist for SettingsProvider" 2017-01-20 22:06:58 +00:00
Chad Brubaker
97bccee6d6 Add ephemeral whitelist for SettingsProvider
Currently the list is small, only whats required to launch a basic
ephemeral app. It will expand in followup CLs.

Note that the goal of this is not to completely shut down all ways that
an ephemeral app could learn the value (or part of) of a setting not in
the set. The goal is to limit the raw access to settings to a small set that
includes settings that ephemeral apps should have access to directly
System APIs that are exposed to ephemeral apps may allow for
ephemeral apps to learn the value of settings not in the directly
exposed set and that is OK and _not_ a security issue.

This contains a hack to support code in system system server that in
the process of a binder transaction reads a setting using a
ContentReceiver with a system package name. This was previously not an
issue but causes an exception to be thrown from getCallingPackage which
reading a setting now calls.

Bug: 33349998
Test: Boots, functions as normal for regular apps.
Test: cts-tradefed run cts -m CtsProviderTestCases -t
android.provider.cts.SettingsTest

Change-Id: Icc839b0d98c725d23cdd395e8cb76a7b293f8767
2017-01-20 11:03:53 -08:00
Ta-wei Yen
2d7a496e0a Add voicemail backup/restore columns am: f48d5ce630
am: 1f296f7793

Change-Id: I38e6e33438500a0815bb1b87dc21617213f42637
2017-01-20 18:44:39 +00:00
Ta-wei Yen
1f296f7793 Add voicemail backup/restore columns
am: f48d5ce630

Change-Id: I2dd76b4107b9e7c75595fa3c49dcda74cebd2a09
2017-01-20 18:38:23 +00:00
Ta-wei Yen
c1a1348b99 Merge "Add voicemail backup/restore columns" into nyc-mr2-dev 2017-01-20 18:31:45 +00:00
Suprabh Shukla
2f34b1a678 Adding app op and intent action for external sources
Added an app op to control which package and uid can install apps on the
device and an intent action to launch the settings fragment.

Test: Will include in follow up CL, tracked in b/33792674

Bug: 31002700
Change-Id: Ic073495759d9867f8001a6c712e402398c53dfc9
2017-01-20 02:39:08 -08:00
Ta-wei Yen
f48d5ce630 Add voicemail backup/restore columns
BACKED_UP and RESTORED are required for dialer voicemail backup/restore
feature for N MR2. As there are no API bump the fields will be hidden
in NMR2. These fields will be made public in O.

ARCHIVED and IS_OMTP_VOICEMAIL is not used for NMR2, but added in
advance to avoid multiple database upgrades.

IS_OMTP_VOICEMAIL will be used in O to dedupe multiple apps implementing
VisualVoicemailService. All voicemail inserted by the service should
set this field to 1. The UI should only display voicemails with this
field set to 1 when the source_package is also the current active
VisualVoicemailService, as other sources represents the same source of
truth(the carrier) but is outdated.

For example, the query should be
WHERE (is_omtp_voicemail == 0) OR 
(is_omtp_voicemail == 1 AND source_package = "current.vvm.package")

Test: VoicemailProviderTest
Bug: 34463609
Change-Id: I0f3e58fabff2102adf5bc29d81dac46c7e71d410
2017-01-20 02:26:04 +00:00
Amin Shaikh
0027121964 Add Setting for curating saved open networks.
Bug: 34392914
Test: make
Change-Id: Icd17753af6b0efdb35d1060b16029a53fdf4e605
2017-01-19 17:51:22 -08:00
Jeremy Joslin
9971919b64 New setting for recommendation request timeout. am: 44e2b84b27 am: 820ad03ba8
am: 00ccf31dbd

Change-Id: If14705a0e4c41dbd40ae90b46b37e5ad2b6e5c4b
2017-01-19 23:23:20 +00:00
Jeremy Joslin
00ccf31dbd New setting for recommendation request timeout. am: 44e2b84b27
am: 820ad03ba8

Change-Id: Ib4999e09073c74bb4594ce2e744032d3349dce94
2017-01-19 23:13:19 +00:00
Jeremy Joslin
820ad03ba8 New setting for recommendation request timeout.
am: 44e2b84b27

Change-Id: I8fd6e0c75d22d0f83db414a389c4d8caaf745469
2017-01-19 23:05:02 +00:00
Soonil Nagarkar
7decfb6b76 Add background location throttling to LocationManagerService
Test: manual tests
Change-Id: I27f060d2f5338a8750dcbe5cbe4cfadb4edb0464
2017-01-19 13:41:30 -08:00
Jeremy Joslin
44e2b84b27 New setting for recommendation request timeout.
Added a new global setting, NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS,
to control the maximum amount of time a recommendation request can
take.

Updated the NetworkScoreService to monitor the value and to update
its cached copy on observed changes.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34060959
Change-Id: I6ff80178440794e4a5da39ee7b5164621316e7bd
Merged-In: I7650ee024e53dbc856cf20d7520a6eb252c73bdf
2017-01-19 13:18:22 -08:00
Tomasz Mikolajewski
03e59f6e3f Merge "Add Web Links API to framework." 2017-01-19 05:26:11 +00:00
Tomasz Mikolajewski
cf31656cf4 Add Web Links API to framework.
Test: CTS in a separate CL.
Bug: 30152711
Change-Id: Ia256422d50110d6adcd1984f6481ab825dbf30b1
2017-01-19 11:50:46 +09:00
Phil Weaver
106fe73205 New accessibility shortcut.
Removing accessibility gesture from power dialog.

Adding new accessibility shortcut activated by holding both volume
buttons down. This shortcut is configurable by OEMs and users to
work with any installed accessibility service.

Bug: 30160335

Test: Added automated testing for the EnableAccessibilityController.
Manually toggled various services on and off.
Change-Id: I546bd29a2ab1ba64a0cbfd11e2004cdf85ee6cfd
2017-01-18 17:12:54 -08:00
Makoto Onuki
ca66f302a0 Merge "Add ProviderStatus.DATABASE_CREATION_TIMESTAMP" 2017-01-18 17:04:26 +00:00
Makoto Onuki
729a87b09e Add ProviderStatus.DATABASE_CREATION_TIMESTAMP
Bug 33390320
Test: Adding a constant only; "m -j32"

Change-Id: Ie601978afd1f6da0e3fecd50e64d8af1f84a94af
2017-01-17 16:07:22 -08:00
Jeremy Joslin
cb594f363d New setting for recommendation request timeout.
Added a new global setting, NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS,
to control the maximum amount of time a recommendation request can
take.

Updated the NetworkScoreService to monitor the value and to update
its cached copy on observed changes.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34060959
Change-Id: I7650ee024e53dbc856cf20d7520a6eb252c73bdf
2017-01-17 12:51:58 -08:00
TreeHugger Robot
7d13f29b12 Merge "Add constant for package verifier state." 2017-01-17 19:38:23 +00:00
Shahriyar Amini
9343f57d8e Add constant for package verifier state.
Add a constant to be used as the key to obtain package verifier state from
Settings.Secure.

Bug: 31002801
Test: runtest --path frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/SettingsProviderTest.java

Change-Id: I57b635e212dfb2906eb439afeca0647b4781c087
2017-01-13 11:57:27 -08:00
TreeHugger Robot
fac595ae56 Merge "Add activity action for Configure Wi-Fi settings." 2017-01-12 23:25:50 +00:00
TreeHugger Robot
07323a9824 Merge "Add structured sort data to ContentResolver.query." 2017-01-12 22:21:53 +00:00
Steve McKay
29c3f68cfa Add structured sort data to ContentResolver.query.
Update DocumentsProvider to override
    ContentProvider#query(Uri, String[], Bundle, CancellationSignal);
Added an otherwise unneeded import to pass doc check
    on DocumentsProvider.

Bug: 30927484
Change-Id: I295c21f53901d567455286f22439f21d22a8a25a
Test: Build and run. Test from DocsUi.
2017-01-11 15:01:50 -08:00
Santos Cordon
f85ab8306f Add Brightness setting for VR Mode.
am: d6a5660a2c

Change-Id: If371f485471eb1ab0a3e07964c197cb9b8ef1c9f
2017-01-11 03:12:05 +00:00
Santos Cordon
a00c235600 Merge "Add Brightness setting for VR Mode." into nyc-mr2-dev 2017-01-11 03:02:55 +00:00