Commit Graph

1507 Commits

Author SHA1 Message Date
Hai Zhang
af8a6c724f Merge "Add OWNERS for SettingsProvider."
am: 18bece7b32

Change-Id: Ibe8ff7bdba7a886bd8b91155ae56f087a836981f
2019-10-24 14:45:53 -07:00
Hai Zhang
a06f938f66 Add OWNERS for SettingsProvider.
Test: presubmit
Change-Id: I83862af2283b899a99fb313ba2118da45b2d4a1f
2019-10-24 10:51:56 -07:00
Ruslan Tkhakokhov
b5616f115f Merge "Several preferences lost during P->Q B&R" into qt-r1-dev
am: 10eaa7adda

Change-Id: I5587461a9aa1b8d1df942d113a77a4f647aa0da0
2019-07-26 08:07:48 -07:00
Ruslan Tkhakokhov
55c4a59219 Several preferences lost during P->Q B&R
SettingsBackupAgentduring restore doesn't account for the fact that some settings that were store in Global on source have been moved from to Secure. Fix it.

Bug: 137948683
Test: 1. Do cloud B&R P->Q and ensure settings are restored
      2. atest SettingsBackupTest

Change-Id: Iefe451a7b3dd0ea1d4cb95a56a71cc3341b65d7c
2019-07-24 21:26:58 +01:00
Beverly
5f70f7b861 Merge "Add gesture touch counts" into qt-r1-dev
am: 8607680ee7

Change-Id: I2436437e4e8fefbc514d20a3d7f8d04559e03416
2019-07-02 11:41:05 -07:00
Beverly
e6727ee6da Add gesture touch counts
Test: manual
Bug: 136229528
Change-Id: I805dfbba821c798c59c0d232e60f41890bc9b20d
2019-06-28 14:23:58 -04:00
Eric Laurent
39749b093e Merge "audioservice: special mute behavior for BT SCO volume" into qt-dev
am: 98edda5b5e

Change-Id: I235ecd52a1eaa3ccba063282fa5cb2dd5e68ecff
2019-06-21 10:34:57 -07:00
Eric Laurent
02153e697d audioservice: special mute behavior for BT SCO volume
Allow muting BT SCO volume only from explicit mute request and not
when stream volume index is set to 0. This is to match BT requirement
that the valid SCO volume range is 0 to 15 and let the headset deal with
actual attenuation for index 0.
If explicitly muted via adjustStreamVolume() from an app with permission
MODIFY_PHONE_STATE, then we set the audio policy stream volume to 0 and
effectively mute RX path.

Also change default value of Settings.System.MUTE_STREAMS_AFFECTED
to include AudioManager.STREAM_BLUETOOTH_SCO.

Bug: 111195322
Test: test volume changes in call over BT SCO
Change-Id: I3b6560bbd1bcbb01a29aa746f23bae74329a1fa7
2019-06-20 19:28:06 -07:00
Yiwei Zhang
95cca4b36a Merge "Game Driver: Add settings global for prerelease driver opt in option" into qt-dev
am: ca354f308d

Change-Id: If7ecfd4d0f6e0c0289bb205bca7e370b57bdbcd4
2019-06-12 18:05:21 -07:00
Yiwei Zhang
4836fb16c9 Game Driver: Add settings global for prerelease driver opt in option
Bug: 134881329
Test: build, flash and boot
Change-Id: I8c3ba687f3c85f3fe093cdf7086adf9b8109713d
2019-06-09 15:23:17 -07:00
Linus Tufvesson
fff8fe61ab Merge "Notify all running users of DeviceConfig changes" into qt-dev
am: b26792a2ca

Change-Id: I8a4cb135c18d586cff44de782560336328905a0a
2019-05-31 02:28:28 -07:00
Linus Tufvesson
93c3855a38 Notify all running users of DeviceConfig changes
Test: adb shell pm create-user dude
      adb shell am switch-user 10
      atest CtsDeviceConfigTestCases

Bug: 133793612
Change-Id: If614c4a6fea92d858994b113fcdf0f537a94a054
2019-05-30 15:46:47 +00:00
Hyunyoung Song
7a46c4eb0f Merge "Add navigation mode to Settings.Secure" into qt-dev
am: eada1380b1

Change-Id: I2744f94b7a4e25bba5726e1d6b097dbc19040789
2019-05-26 00:41:25 -07:00
Hyunyoung Song
83972396f2 Add navigation mode to Settings.Secure
Bug: 132443163
Test: builds
Change-Id: I90c3fd843dc111ca6fcd7f618f01c321fd055f83
2019-05-25 21:22:00 -07:00
Edgar Wang
2f4cba2683 Merge "Add Aware Lock Settings" into qt-dev
am: a491cc4cd0

Change-Id: I7dd3de25fe1f1bd681cdfefd33bc9b134937827d
2019-05-21 10:42:14 -07:00
Edgar Wang
4870e4b034 Add Aware Lock Settings
Bug: 132106801
Test: rebuild & manual
Change-Id: I9c0efdd195b367b0744685e5d001ff4e23b55408
2019-05-15 19:14:43 +08:00
Mady Mellor
01a1a8928a Merge "Change bubbles to be off by default" into qt-dev
am: 5bc29e371c

Change-Id: I2ff392c807a5e7b3a75b80183d6b0a7bee1e3011
2019-05-13 11:37:37 -07:00
Mady Mellor
95e879aaf1 Change bubbles to be off by default
Test: in the other CL
Bug: 131845765
Change-Id: I23e48ace13dbc628f45b41adcf3bffdd5cfdccb6
2019-05-13 16:22:30 +00:00
Edgar Wang
975b0db0cb Merge "Set the default value for Secure Settings: SKIP_GESTURE & SILENCE_GESTURE" into qt-dev
am: fa3034615f

Change-Id: I6cf12e05fd6fa7faff872fa208ac6dc9535011a1
2019-05-09 04:12:00 -07:00
Edgar Wang
dabc41e734 Set the default value for Secure Settings: SKIP_GESTURE & SILENCE_GESTURE
Bug: 131127449
Test: rebuild & manual test
Change-Id: I57ca610937a52419a6782d9bfa2a05a3daf27bb1
2019-05-07 18:53:31 +08:00
Anton Hansson
74aa846e75 Merge "Update path to audio files" into qt-dev
am: e0b7cce0c7

Change-Id: I58eed72f840b6b9548b171ad908c532cd3aff9df
2019-05-06 12:26:18 -07:00
JeiFeng Lee
eaec50becf Update path to audio files
The path to these audio files was changed in r.android.com/862589.
Update the configuration to read from the new path, too.

Bug: 131864467
Test: hear sound when locking/unlocking aosp_blueline
Change-Id: Ie0d69de6333a08d3e645829e13a707f83cb05e01
2019-05-03 15:00:39 +01:00
Kweku Adams
039b72df1f Merge "Creating separate flags for Time/QuotaControllers." into qt-dev
am: 956b55a733

Change-Id: I856fbbdbc4b744d437a4cb6efb794d2f0d2f1978
2019-05-01 09:30:04 -07:00
Kweku Adams
4e774a37db Creating separate flags for Time/QuotaControllers.
TimeController and QuotaController flags don't have to be changed
atomically with other JobScheduler constants, so it's best to have them
be separate. I think it's best to have the QuotaController constant
change be atomic, which is why the flag is set up as a key/value pair.

Bug: 120793892
Test: atest android.provider.SettingsBackupTest
Test: atest com.android.server.job.controllers.ConnectivityControllerTest
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: atest com.android.server.job.controllers.StateControllerTest
Test: atest com.android.server.job.controllers.TimeControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: I5bf20c37ea87a58bbcf4326f8e81cd6bea0a7c08
2019-04-30 19:14:03 -07:00
Edgar Wang
3350d71536 Merge "Set the default value for Secure Settings: AWARE_ENABLED" into qt-dev
am: b962712dd9

Change-Id: I67c0afd97cc4dc1b0d05405395c1b96d1045d5a7
2019-04-29 20:08:27 -07:00
Winson Chung
684846f26a Merge "Only migrate 2-button setting if set" into qt-dev
am: 571ab06ec0

Change-Id: I90c8f91cfe29fe2dbb63abab95bf9404fcee63fc
2019-04-29 16:01:32 -07:00
TreeHugger Robot
b962712dd9 Merge "Set the default value for Secure Settings: AWARE_ENABLED" into qt-dev 2019-04-26 17:12:28 +00:00
Winson Chung
571ab06ec0 Merge "Only migrate 2-button setting if set" into qt-dev 2019-04-25 20:28:09 +00:00
Winson Chung
3d5d3b30e3 Only migrate 2-button setting if set
- We have only shipped configurations with:
  default=3 button + setting to opt in
  default=2 button + no setting to opt out

  So to prevent migrating in the case where a user has restored from
  a device (1) to a device (2) where the setting may be false (but
  previously showed 2 button nav), we only migrate the nav bar mode
  to the 2 button overlay whenever the setting is set. This means
  that the user will fallback to the device default nav bar mode
  which corresponds to the previous default modes for each device.
- Also remove temporary nav bar mode migration for dogfood users

Bug: 128548249
Test: Migrate from P to Q with swipe up setting set to false

Change-Id: I7218eeb13fec50b2fe3e89f75ef0d2d4ab67aff1
2019-04-25 17:42:08 +00:00
Yao Chen
589738054e Merge "Fix SettingsProto corruption" into qt-dev
am: ffd354d6a4

Change-Id: Ic60a1b9805c214454e558b729606f861e56d5a87
2019-04-24 19:26:32 -07:00
TreeHugger Robot
ffd354d6a4 Merge "Fix SettingsProto corruption" into qt-dev 2019-04-24 22:48:14 +00:00
Yao Chen
599a40be13 Fix SettingsProto corruption
Bug: 130235331
Test: adb shell dumpsys settings --proto
Change-Id: Id725c2a968593b923059da69c49c59908780df8a
2019-04-24 14:16:56 -07:00
Hyunyoung Song
b033545b2f Merge "3->1 binder calls to OverlayManager for Navbar settings" into qt-dev
am: c51ef32c2b

Change-Id: I4307434d56d5776bccb7ba977e3dde5883b55c8e
2019-04-23 14:21:00 -07:00
Hyunyoung Song
65c58f6783 3->1 binder calls to OverlayManager for Navbar settings
Bug: 131112014
Test: builds
Change-Id: I2518ccd28493ef82793c9af192e72ee6521e6fd6
2019-04-23 11:33:58 -07:00
Edgar Wang
eb8bddb12c Set the default value for Secure Settings: AWARE_ENABLED
Bug: 130909059
Test: rebuild & manual test

Change-Id: I892c42953a86348786c3baedc5223d02be9f4578
2019-04-22 22:18:32 +08:00
Neil Fuller
3447fb456f Switch to HexEncoding from ByteStringUtils
Migration in preparation for deletion of ByteStringUtils.

Bug: 124232146
Test: build only
Merged-In: I07983ca596443a3e00616b63355c6504376f3e7c
Change-Id: I07983ca596443a3e00616b63355c6504376f3e7c
2019-04-09 20:25:11 +01:00
Svet Ganov
d8eb8b2690 Restricted permission mechanism - framework
This change adds a mechanism for restricting permissions (only runtime
for now), so that an app cannot hold the permission if it is not white
listed. The whitelisting can happen at install or at any later point.

There are three whitelists: system: OS managed with default grants
and role holders being on it; upgrade: only OS puts on this list
apps when upgrading from a pre to post restriction permission database
version and OS and installer on record can remove; installer: only
the installer on record can add and remove (and the system of course).

Added a permission policy service that sits on top of permissions
and app ops and is responsible to sync between permissions and app
ops when there is an interdependecy in any direction.

Added versioning to the runtime permissions database to allow operations
that need to be done once on upgrade such as adding all permissions held
by apps pre upgrade to the upgrade whitelist if the new permisison version
inctroduces a new restricted permission. The upgrade logic is in the
permission controller and we will eventually put the default grants there.

NOTE: This change is reacting to a VP feedback for how we would handle
SMS/CallLog restriction as we pivoted from role based approach to roles
for things the user would understand plus whitelist for everything else.
This would also help us roll out softly the storage permisison as there
is too much churm coming from developer feedback.

Exempt-From-Owner-Approval: trivial change due to APi adjustment

Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest
Test: atest CtsPermissionTestCases
Test: atest CtsPermission2TestCases
Test: atest RoleManagerTestCases

bug:124769181

Change-Id: Ic48e3c728387ecf02f89d517ba1fe785ab9c75fd
2019-04-07 22:39:54 -07:00
Cody Northrop
236b283b4e Merge "ANGLE: Allow libs from debug package" 2019-04-02 13:47:30 +00:00
Cody Northrop
dc2fd94628 ANGLE: Allow libs from debug package
Add a new setting that allows a developer to specify where
to load ANGLE libraries from, rather than the default location.
This is only allowed for apps that are dumpable, i.e. can have
libraries injected.  That includes debuggable, profileable,
and root.

To use the new setting:

  adb shell settings put global angle_debug_package <package>

This allows a developer to build an APK directly from Chromium
and use it with a production build of Android. It will override
pre-installed system packages and updates.

Note: Use of ANGLE Developer Options UI will cease to function
until the debug package is uninstalled.

Bug: 80239516
Test: Apply setting, see new ANGLE used
Test: cts-tradefed run singleCommand cts -m CtsAngleIntegrationHostTestCases

Change-Id: Ib3b1fb52c0eb669e7ea931959a73aba2bd15bedf
2019-03-29 15:50:06 -06:00
Matt Pape
25c940d080 Fix SettingsProvider resets from Rescue Party.
Allow callers of isSystemPackage to make the check for uids that are not
their own.

Test: atest FrameworksCoreTests:SettingsProviderTest
Bug: 126249082
Change-Id: Ibef4e32aef23f42982256cdbb924e9cacb0ed1f8
2019-03-27 14:02:57 -07:00
Winson Chung
30115c998c Merge changes from topic "nav-bar-mode-fw-overlay"
* changes:
  Overlaying the nav bar frame dimens
  Check the overlay state for updating sysui
  Removing old resources
  Remove the swipe up setting from system
2019-03-25 16:58:11 +00:00
Stanislav Zholnin
5579950a80 Add READ_DEVICE_CONFIG permission check to DeviceConfig API.
Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksCoreTests:SettingsProviderTest
      atest SettingsProviderTest:DeviceConfigServiceTest

Bug:117663715
Change-Id: I04226876ddf910945bf343d25fa3dd04ba8eab31
2019-03-25 11:14:07 +00:00
Winson Chung
85e745929f Remove the swipe up setting from system
Bug: 127366543
Test: adb shell dumpsys setting

Change-Id: I3a1a716a73d91048886b67444b574abdfc61323e
2019-03-23 22:28:22 -07:00
Winson Chung
dece92b287 Merge "Add overlays for nav bar interaction mode." 2019-03-22 21:02:07 +00:00
Salvador Martinez
13bfe4a789 Merge "Update names of dynamic power saver mode APIs" 2019-03-22 20:52:13 +00:00
Winson Chung
d9f2fb36ce Add overlays for nav bar interaction mode.
- Add config for nav bar interaction mode
- Add overlay packages for overriding the nav bar interaction mode
- Migrate existing swipe up setting into the resource overlay
  P2 P->Q:
    def/off -> 3 button overlay enabled (from default)
    set on  -> 2 button overlay enabled (from setting)
  P3 (default on):
    def (setting not exposed) -> 2 button overlay enabled (from default)

Bug: 127366543
Test: adb shell cmd overlay dump

Change-Id: I75590f81d9dd6a017776e0a34c295575bfe1bf2a
2019-03-22 11:33:52 -07:00
Salvador Martinez
b85a9f8db4 Update names of dynamic power saver mode APIs
There was some confusion caused by the names so this CL
changes them to make the differentiation more clear hopefully.

Test: robotests pass, build runs, functionality of clients intact
Bug: 126944845
Change-Id: I626dd8e38c59fb5c061e4d0fdcf8c81701c459a3
2019-03-22 10:12:42 -07:00
TreeHugger Robot
2b11e525e3 Merge "Upgrade ring vibration level after OTA." 2019-03-22 00:49:19 +00:00
Stanislav Zholnin
3d1da05ce1 Modify DeviceConfigServiceTest to match actual DeviceConfig reset method behavior.
Test: atest SettingsProviderTest
Change-Id: I2c21f118e2822e2033b8e4394109242d4b1e1203
2019-03-21 10:59:09 +00:00
wilsonshih
5d999e265e Upgrade ring vibration level after OTA.
In Q we separate "ring vibration" from "ring and notification
vibration", when user upgrade from P to Q, the value should followed the
settings in P.

Bug: 127901773
Test: simulating upgrade device from P to Q, then check ring vibration
level is followed notification vibration level.
Test: flash Q Rom and check ring vibration is default value.

Change-Id: Id63e0a777be00c5c51dbeb43655c04ee9f66989d
2019-03-21 09:51:24 +08:00