Commit Graph

7324 Commits

Author SHA1 Message Date
Joshua Mccloskey
bb4e9c467f Merge changes from topic "revert-20334932-revert-20298870-cherrypick-require-screen-on-to-auth-bx2kw8azs3-LDXGTDLPPR-POOWBPUIXB"
* changes:
  Fix keyguard logic for listening to sfps
  Revert^2 "Implement SFPS “require screen on to auth”"
2022-11-02 14:33:16 +00:00
Joshua Mccloskey
1eaa038b62 Revert^2 "Implement SFPS “require screen on to auth”"
8ce8db3891

Change-Id: I4aa716fb5b288ef6f92a5c403a1fd5e586e889d0
2022-11-01 16:45:02 +00:00
Michał Brzeziński
891aeaaa40 Merge "Revert "Implement SFPS “require screen on to auth”"" 2022-11-01 13:36:10 +00:00
Michał Brzeziński
8ce8db3891 Revert "Implement SFPS “require screen on to auth”"
Revert "Implement SFPS “require screen on to auth”"

Revert submission 20298870-cherrypick-require-screen-on-to-auth-bx2kw8azs3

Reason for revert: broken KeyguardUpdateMonitorTest
Bug: 256762678
Reverted Changes:
Id58879642:Implement SFPS “require screen on to auth”
Ibc55dfa66:Implement SFPS “require screen on to auth”

Change-Id: I2b946ff3c318007080c4c79bcd64feec6fd1bcf4
2022-11-01 11:28:37 +00:00
Joshua Mccloskey
0324799200 Merge "Implement SFPS “require screen on to auth”" 2022-11-01 04:55:03 +00:00
Grace Cheng
9e07dafc6b Implement SFPS “require screen on to auth”
Creates new setting on SFPS to require screen on before unlocking a
device. Also sets up toggles for this setting at the end of fingerprint
enrollment and on the fingerprint settings page, and adds test to verify
expected behavior.

Test: atest KeyguardUpdateMonitorTest#testStartsListeningForSfps_whenKeyguardIsVisible_ifRequireScreenOnToAuthEnabled
Fixes: 249169615
Fixes: 245343077
Fixes: 248530806
Change-Id: Ibc55dfa6667ec281add11a2665fceb073974ccb0
2022-10-28 01:40:37 +00:00
Song Chun Fan
7b1ce311f4 Merge "[SettingsProvider] workaround for DevicePolicyResourcesManager" 2022-10-27 23:11:03 +00:00
Songchun Fan
b127850fda [SettingsProvider] workaround for DevicePolicyResourcesManager
DevicePolicyResourcesManager.getString() was added in T and called in
many places inside system server. However, it uses
DeviceConfig.getBoolean to determine if a feature is enabled or not. In
the places where it is called from inside system server,
`clearCallingIdentity` was not always called, which can result in
DeviceConfig.getBoolean throwing SecurityException due to mismatched
AttributionSource (calling uid is the caller from the binder client,
while the context is "android" which should have calling uid 0). Context
is "android" because it is inside the system server where the
DevicePolicyManager instance is created. This bug might lead to
unexpected behavior such as packages failing to be uninstalled by admin.

The easiest fix is to place a bypass in SettingsProvider and manually clear
the calling uid there. This fix also allows for the cleanest backporting as
it can be cherry-picked into T without touching all the places where
DevicePolicyResourcesManager.getString() is called in the system server.

BUG: 252663068
Test: manual
Change-Id: I37a6ceb29575593018b93093562c85d49770a43c
2022-10-27 20:38:43 +00:00
Rhed Jao
0a607d25a1 Ensure input methods setting keys unreadable to downloaded apps
ENABLED_INPUT_METHODS and DISABLED_SYSTEM_INPUT_METHODS reveals
a list of input methods apps, which violates the rules of package
visibility. This cl restrict the setting key to be readable for
apps targeting in T and below.

Bug: 253164661
Test: atest AccessibilitySoftKeyboardTest
Test: atest CarRotaryImeTest
Change-Id: I48aa7b05cd0dbde70fc6d53eee455959264a6867
2022-10-26 17:37:24 +08:00
Iavor-Valentin Iftime
83fbf2407d Merge "Add RECEIVE_EXPLICIT_USER_INTERACTION_AUDIO AppOp" 2022-10-24 17:57:06 +00:00
Valentin Iftime
8f7ee077c8 Add RECEIVE_EXPLICIT_USER_INTERACTION_AUDIO AppOp
New AppOp to be used for near-field file-based audio transfer
  (ie. TV Remote Service) to allow audio recording
  regardless of sensor privacy state, because it is considered
 an intentional user interaction: hold-to-talk

 And new Global Settings and SensorPrivacyManager APIs for the
 opt-out toggle - as agreed with PWG.

Bug: 235618473
Test: manual

Change-Id: I95cdf8fa362b937609bdf834a82b05ec8375ac26
2022-10-24 17:52:49 +00:00
Reema Bajwa
fb71b9bc66 Merge "Add new setting key for credential manager Test: built locally Bug: 250713478" 2022-10-21 17:07:50 +00:00
Reema Bajwa
a8611b6af2 Add new setting key for credential manager
Test: built locally
Bug: 250713478

Change-Id: Icdaf9135f274b0b5dce24b5ec7a25aa09ba8c7ae
2022-10-21 17:05:30 +00:00
Matthew Small
6779234178 Merge "Adding new setting to communicate BTHM state to KeyGuard." 2022-10-17 16:04:53 +00:00
Lauren Winston
eebf4335d3 Revert "Add secure settings key for software cursor."
This reverts commit fb43f54289.

Reason for revert: Software Cursor not launching in Android U

Test: manual
Change-Id: I3f27b7d8958f455a580758192794308d5f91d152
2022-10-13 17:30:26 +00:00
Jack Yu
59ca6fcb88 Fixed equals and hashCode
1. Used Android Studio to auto generate the equals
   and hashCode method.
2. e-order the field to match the database column order.
3. Better readability for toString().

Bug: 239607619
Test: atest SubscriptionDatabaseManagerTest
Change-Id: Ibc80d41f3019a4ebb012358f3369d69222925214
2022-10-11 19:00:26 +00:00
Matthew Small
7568883122 Adding new setting to communicate BTHM state to KeyGuard.
Bug: 246457861
Defer-CP-To-TM: 246457861
Test: Manual
Change-Id: Ic91861a985a85f0593f98e89f246752bcd70a237
(cherry picked from commit 56695a3d79a18e13e942d11f0a3d8b5fbd31542b)
2022-10-11 05:29:51 +00:00
Lauren Winston
d769064638 Revert "Add Settings.Secure values for Software Cursor settings for hiding"
This reverts commit 36e81f298f.

Reason for revert: Software Cursor will not be launching in Android U
Test: manual

Change-Id: Ibf70015d294e03aa74d839c0caa64bf3542b341f
2022-10-07 04:16:54 +00:00
Vikram Gaur
332aabed24 Merge "Add Remote Key Provisioning Daemon native namespace for feature flags." am: c11d99f05d am: ef3d90f72a am: ff32e4aac2 am: bd71ce6537 am: a4702c3eb1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2239018

Change-Id: I5bd858a9130a5707b06ef90699bf4006fc588883
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-05 16:59:02 +00:00
Vikram Gaur
a4702c3eb1 Merge "Add Remote Key Provisioning Daemon native namespace for feature flags." am: c11d99f05d am: ef3d90f72a am: ff32e4aac2 am: bd71ce6537
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2239018

Change-Id: I66061035b75fab12147355912138b0f3b1219669
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-05 03:05:32 +00:00
menghanli
93b08a4435 Provide ability to link to color motion page
Bug: 249430287
Test: manual test
Change-Id: I52fb4b3c8725278292954c776fe09ff3f7fcd8cb
2022-10-05 00:22:13 +00:00
Menghan Li
d8d61664c2 Merge "Provide ability to link to text reading page" 2022-10-05 00:21:35 +00:00
Vikram Gaur
9f11b323be Add Remote Key Provisioning Daemon native namespace for feature flags.
Change-Id: I9afbdc2fa3a4b6ea47cfe5320eab8f6492269ca2
Test: TreeHugger
2022-10-03 17:11:27 +00:00
Toshiki Kikuchi
a312815b61 Add arc_app_compat namespace to DeviceConfig
Bug: 241988199
Test: m
Change-Id: I40f33f34101eaa468f3a2e1049d4da17b80201a1
2022-10-03 07:40:53 +00:00
menghanli
b0aac0055a Provide ability to link to text reading page
Bug: 249430287
Test: manual test
Change-Id: Ib49e7e67055a1316badf6d02abb15bf970b12bfa
2022-09-28 14:43:28 +08:00
Ling Ma
640da900a1 Add new column enabled_mobile_data_policies to siminfo table
Add new column enabled_mobile_data_policies and copy the legacy data_enabled_override_rules to the new column. Future
read/write will only apply to the new column, and the legacy column will not be synced.

Bug: 244064524
Test: atest TelephonyManagerTest + TelephonyDatabaseHelperTest + TelephonyProviderTest + manual upgrade and observe user setting is preserved
Change-Id: I460c24909fb1eae689d02cedc76e24e87674a891
2022-09-22 21:21:56 -07:00
Jason Sun
4fd1467783 Merge "Auto enable new system trust agents" into tm-qpr-dev am: 73ce3e64f0 am: 84435238c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19824313

Change-Id: I9b40c9f7f4e3c15da877fbc592aa77d4cef6147a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-21 21:42:25 +00:00
Jason Sun
84435238c4 Merge "Auto enable new system trust agents" into tm-qpr-dev am: 73ce3e64f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19824313

Change-Id: I79539f4e42c07d9eb694389febb0b32c15a2b265
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-21 21:37:29 +00:00
Aishwarya Mallampati
747cef74d3 Add user handle in SimInfo database.
Bug: 247166170
Test: Basic testing,
       atest com.android.providers.telephony.TelephonyDatabaseHelperTest,
       atest com.android.providers.telephony.TelephonyProviderTest
Change-Id: I899a9ecb93f6f972aa12233fe4380e6d05405791
2022-09-20 23:04:13 +00:00
Jason Sun
73ce3e64f0 Merge "Auto enable new system trust agents" into tm-qpr-dev 2022-09-20 19:48:17 +00:00
Xinyi Zhou
0ef0048f71 Merge "Add NAMESPACE_NEARBY String" am: 4339e51473 am: 9bd0f75bf4 am: f58897e737 am: f4b45a5faa am: 74cc53ca0c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2219630

Change-Id: Ie01317938b694443e22655695f83a1d572f11d66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 16:07:44 +00:00
Xinyi Zhou
74cc53ca0c Merge "Add NAMESPACE_NEARBY String" am: 4339e51473 am: 9bd0f75bf4 am: f58897e737 am: f4b45a5faa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2219630

Change-Id: I9df2cd99dd2a382ebda09e5acadb825fcc415798
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 15:27:56 +00:00
TreeHugger Robot
8a8c52ff39 Merge "1/ Add @TestApi on Settings.Secure.BIOMETRIC_VIRTUAL_ENABLED" 2022-09-19 06:02:44 +00:00
George Chan
44a5976d81 Added transparency metadata feature flag.
This is for feature gating a feature expansion to App Info -> App Details to include MBAs on top of existing Playstore Apps.

Change-Id: I7b3e296c310f19a01bc83b129b95021e92df3abb
Bug: 244215932
2022-09-16 19:05:27 +00:00
Xinyi Zhou
96e7030189 Add NAMESPACE_NEARBY String
Bug: 203579197
Test: -m
Change-Id: Id28a76af6c23f85fc1d4c1e7320f533f5604930f
2022-09-15 22:46:12 -07:00
Sarp Misoglu
eea390a0e1 Add backup_and_restore namespace to DeviceConfig
Test: m
Bug: 210083465
Change-Id: I0e987e7478524a278d38839e8522245f0b96dd23
2022-09-15 08:46:07 +00:00
Jason Sun
fb3f361d54 Auto enable new system trust agents
Previously we only auto enable factory system trust agents when the
devices is booted for the first time. This change added logic to detect
newly installed/enabled trust agents, and enable them if appropriate.

Fixes: b/243705470
Test: atest FrameworksMockingServicesTests:TrustManagerServiceTest
Change-Id: I3c345a44cfcfccc6f7e2507ba37e378b6b16bd98
2022-09-13 20:44:25 +00:00
SongFerng Wang
2ef9f04680 Merge "[LE boradcast] save the data into ContentProvider" into tm-qpr-dev am: 86125487ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19834071

Change-Id: I5b1e341796db146ca44d7121ccb3a7f5be1e373c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 20:26:40 +00:00
TreeHugger Robot
e5038d35e6 Merge "Hide soft-keyboard when no editor is focused" 2022-09-13 10:38:39 +00:00
Ming-Shin Lu
a201f2123d Hide soft-keyboard when no editor is focused
In case seeing the unexpected fallback keyboard layout when focusing to
the window without an editor from the app has shown the IME.

Note that this behaviour change affects when the IME focus switching to
the next window with following configurations from an IME shown window:
  1) SOFT_INPUT_STATE_UNCHANGED state without an editor
  2) SOFT_INPUT_STATE_VISIBLE state without an editor
  3) SOFT_INPUT_STATE_ALWAYS_VISIBLE state without an editor

Also, we guarded this platform behavior with DeviceConfig platform flag
in input method manager namespace.

Fix: 240701729
Bug: 243897178
Test: manual as issue steps
  1) In Launcher, swiping up to enter all apps page.
  2) Tap the search bar to show IME
  3) Type "Keep" to show Keeps app's shortcut
  4) Tap Keeps app's shortcut
  5) Verify IME won't be shown on top of Keeps app's activity
     (As the app set SOFT_INPUT_STATE_UNCHANGED without focusing an
      editor by default)
Test: atest KeyboardVisbilityControltest#\
         ImeInvisible_softInputAdjustNothingFromImeShownApp
Change-Id: I0c502bec5c5e21dabde08d610a9a1969c1229b08
2022-09-13 10:33:40 +00:00
SongFerngWang
e747702879 [LE boradcast] save the data into ContentProvider
The settings and systemUI use the LocalBluetoothLeBroadcast and
they use different sharedPreferences since the context is different.
It causes the data are not consistent.

Solution: Add data into ContentProvider, and listen the data changed
by the ContentObserver.

Bug: 243107842
Test: build pass. manual test in local.
atest SettingsBackupTest
atest SettingsValidatorsTest

Change-Id: I5f8367f3eb8e2dafa2986004dd8540de41409192
Merged-In: I5f8367f3eb8e2dafa2986004dd8540de41409192
2022-09-12 17:19:39 +08:00
SongFerngWang
45af3be3a1 [LE boradcast] save the data into ContentProvider
The settings and systemUI use the LocalBluetoothLeBroadcast and
they use different sharedPreferences since the context is different.
It causes the data are not consistent.

Solution: Add data into ContentProvider, and listen the data changed
by the ContentObserver.

Bug: 243107842
Test: build pass. manual test in local.
atest SettingsBackupTest
atest SettingsValidatorsTest

Change-Id: I5f8367f3eb8e2dafa2986004dd8540de41409192
2022-09-12 17:05:35 +08:00
lbill
460f84f8c6 1/ Add @TestApi on Settings.Secure.BIOMETRIC_VIRTUAL_ENABLED
The e2e BiometricController need to access this field to enabled
Fingerprint Virtual HAL.

Test: atest sysui-biometrics-jank
Test: atest BiometricMicrobenchmark:BiometricPromptMicroBenchmark
Bug: 236074209
Change-Id: Iab85a16777b16ac4710521a6ba4bb32737157b2d
2022-09-12 06:07:03 +00:00
Lucas Silva
aa2f152da8 Merge "Cleanup dream complication setting to reflect single toggle users see in Settings." into tm-qpr-dev am: e16a86cf1c am: b0686e0194
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19699462

Change-Id: I13870fda358546ccd260d3829e12794f5eecf010
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 14:45:51 +00:00
Lucas Silva
b0686e0194 Merge "Cleanup dream complication setting to reflect single toggle users see in Settings." into tm-qpr-dev am: e16a86cf1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19699462

Change-Id: I95e0810838925833e869ed171bdafdd4b34dfe87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 14:16:59 +00:00
Lucas Silva
07cfa206f4 Cleanup dream complication setting to reflect single toggle users see in
Settings.

The original implementation was designed to allow users to individually
enable/disable certain complications. However, we have since decided to
simplify the complication controls around a single master toggle. This
fixes an issue where when new complications are added, we will no longer
switch the toggle to off in Settings.

Bug: 241469874
Test: atest ComplicationTypesUpdaterTest
Test: atest DreamBackendTest
Test: manually on device
Change-Id: I1bbfbbe2abd6398b74bcd0b9ba601583a1403bef
2022-08-23 12:06:04 -04:00
Michael Mikhail
bb3501c4e7 Merge "Add media on lock screen setting" into tm-qpr-dev am: c24db189bf am: 5228968a74
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19472070

Change-Id: I71156cec0a680d9403c3e5126ae188216f56fb20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 15:22:40 +00:00
Michael Mikhail
5228968a74 Merge "Add media on lock screen setting" into tm-qpr-dev am: c24db189bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19472070

Change-Id: I2bb99a98c7c683f86157e00553ecc47cf276f4f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 15:04:04 +00:00
Michael Mikhail
e9a364e665 Add media on lock screen setting
Add a new setting that controls whether media on lock screen is enabled,
disregarding the notifications status. The new setting is available
under media and privacy settings.

Bug: 229915240
Test: atest MediaHierarchyManagerTest
Test: atest KeyguardMediaControllerTest
Change-Id: I6adaa00ead1660488e4114d303c4394751ff87e8
2022-08-19 18:45:24 +00:00
Lauren Winston
b3403373ea Merge "Add Settings.Secure values for Software Cursor settings for hiding trigger hints and for shifting the trigger region when the keyboard is opened." 2022-08-19 17:14:51 +00:00