Commit Graph

7338 Commits

Author SHA1 Message Date
Arc Wang
fe0d4a560d Merge "Update java doc of ACTION_SETTINGS_EMBED_DEEP_LINK_ACTIVITY" into tm-qpr-dev am: 30b008595d am: 92af24c6bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20427787

Change-Id: I67d430e6f773e15cf26b3307fb53418a558d2029
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 05:06:58 +00:00
Arc Wang
92af24c6bf Merge "Update java doc of ACTION_SETTINGS_EMBED_DEEP_LINK_ACTIVITY" into tm-qpr-dev am: 30b008595d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20427787

Change-Id: I53c5282fc8a6f76fd5d30d003ad81e9866754434
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 04:35:28 +00:00
Arc Wang
e1a4a12316 Update java doc of ACTION_SETTINGS_EMBED_DEEP_LINK_ACTIVITY
To ensure developers know that the Intent only supports
on some devices.

Bug: 258549553
Test: NA
Change-Id: I09da4a4f319aa240a574552fb0deb954772acb83
2022-11-14 04:02:59 +00:00
Ankita Vyas
c8cc5b8fb3 Merge "Add intent for allowing apps to open cloned apps settings." 2022-11-12 11:06:47 +00:00
“Ankita
3d6b1d272b Add intent for allowing apps to open cloned apps settings.
Bug: 249916503
Test: builds
Change-Id: Ibf097202c2db4528d16a4d5d1dc295184f8e4054
2022-11-10 06:46:23 +00:00
Florian Mayer
cc2ac7cb9a Add constant for intent to open MemtagPage
Bug: 258070068
Change-Id: Iea62c6c58c0c8579540649886577856667627585
2022-11-08 14:35:24 -08:00
Grace Cheng
7acebc1828 Implement SFPS “require screen on to auth” am: 584c7743be
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20215114

Change-Id: Ic160e12766b4be4721db1d158ae3eb4f36df88b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 02:39:08 +00:00
Joshua Mccloskey
568ad42e86 Merge changes from topic "require-screen-on-to-auth" into tm-qpr-dev
* changes:
  Fix keyguard logic for listening to sfps
  Implement SFPS “require screen on to auth”
2022-11-03 01:56:52 +00:00
Grace Cheng
584c7743be 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
Merged-In: I4aa716fb5b288ef6f92a5c403a1fd5e586e889d0
2022-11-02 14:34:31 +00:00
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
Song Chun Fan
d958bbffff Merge "[SettingsProvider] workaround for DevicePolicyResourcesManager" into tm-qpr-dev am: 053dd71dfd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20302671

Change-Id: I62b3084f9172f8e7b1023767197e3978ab435935
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 22:19:27 +00:00
Ian Elliott
ddb69487bf Merge changes from topic "UpstreamAngleSwitch" am: 9e7649d5e7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2269789

Change-Id: I996dcbe91f44d75e7e0efd5b29e4174b8d1d154f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 04:07:58 +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
Songchun Fan
3b873ef5c2 [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
Merged-In: I37a6ceb29575593018b93093562c85d49770a43c
Change-Id: I37a6ceb29575593018b93093562c85d49770a43c
(cherry picked from commit b127850fda)
2022-10-27 23:12:15 +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
Ian Elliott
ce7b086cba Add 2 ANGLE deferlist settings
These will be used by the ANGLE Developer Options GUI to process the
deferlist

Test: logcat + various flash/wipe + system-driver scenarios
Bug: 224558229
Change-Id: I47f940612f8be0c83f0be04c2cc1af7908e37382
Merged-In: I47f940612f8be0c83f0be04c2cc1af7908e37382
2022-10-27 00:20:39 +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
Xin Li
a94d90e35d Merge tm-qpr-dev-plus-aosp-without-vendor@9129937
Bug: 248070379
Merged-In: I9a53541e98c0ba596b288ae92fe75f3279aac9cb
Change-Id: I9b1190b0b25e15258fafae83c9d77123e935f96f
2022-10-06 22:37:55 -07: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