Commit Graph

2644 Commits

Author SHA1 Message Date
Les Lee
d5d44ca6a5 Merge "wifi: Fix unnecessary notification after restoring config from cloud." into tm-dev am: f2bd49af42 am: f2b0f97075
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18231924

Change-Id: I152497dd50f4f11789bfab5522461a08d81ede15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 02:44:28 +00:00
Les Lee
f2bd49af42 Merge "wifi: Fix unnecessary notification after restoring config from cloud." into tm-dev 2022-05-12 02:19:42 +00:00
Les Lee
bcbd0955bc wifi: Fix unnecessary notification after restoring config from cloud.
There are some configurations which are generated by frameworks.
When restoring configuration from cloud, the restored config didn't
include those configurations. It causes the configuration mismatch and
show notification "configuration have changed".
It should bypass them to avoid showing notification.

Bug: 230411358
Test: manual test
Change-Id: Icc58aa05f47a91fb150664e7247281dd77d3dbd8
2022-05-10 16:33:12 +08:00
Julia Reynolds
729eee42e5 Merge "Remove notification permission feature flag" into tm-dev am: af7982277b am: 1c7aab6735
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18164160

Change-Id: Ie439e1d17ace323879e1c7fa2ceeb0be866954ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-09 21:21:09 +00:00
Julia Reynolds
af7982277b Merge "Remove notification permission feature flag" into tm-dev 2022-05-09 20:16:09 +00:00
Beverly Tai
8fb9cff35d Merge "Add additional toggleable active unlock settings" into tm-dev am: 0dd4d73142 am: 60903c5876
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18173162

Change-Id: Ibdbcb2ade800c49481d67251a582051954e57480
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-07 02:26:37 +00:00
Beverly
ba0f3d6da2 Add additional toggleable active unlock settings
Test: manual
Test: atest ActiveUnlockConfigTest
Fixes: 231391317
Fixes: 231390692
Fixes: 231390433
Change-Id: Icaf4c1e568e84ecf4d571537f30f7f9b0efb3e0c
2022-05-06 18:04:56 +00:00
TreeHugger Robot
5b3c330195 Merge "Implement backup & restore for the device state based auto rotation setting" into tm-qpr-dev 2022-05-06 14:00:47 +00:00
Christian Göllner
c562b38cdc Implement backup & restore for the device state based auto rotation setting
- Adds the setting to DeviceSpecificSettings so that it is only restored on the same device
- Prevents the non-device state based setting to be restored if device stated based settings are enabled

Fixes: 196933725
Test: atest SettingsHelperTest
Change-Id: I58163cb70e8136104370ae7c1cdaaa8b7124b853
2022-05-06 12:06:35 +00:00
Julia Reynolds
0be19ec3c5 Remove notification permission feature flag
And the related obsolete code.

Test: SystemUITests, framework services tests, NotificationManagerTest
Fixes: 231344755
Change-Id: Id14941f82305b0216f2a12221d4195f8afcc65ab
2022-05-04 17:59:02 -04:00
TreeHugger Robot
e7d7bb51bb Merge "Revert "Revert "[SettingsProvider] enforce permission on openFile""" into tm-dev am: d42fff5d21 am: 00871b04b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18090063

Change-Id: Id6445124166e6cf33b6742d24937c7e4380bf4b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 02:14:39 +00:00
TreeHugger Robot
d42fff5d21 Merge "Revert "Revert "[SettingsProvider] enforce permission on openFile""" into tm-dev 2022-05-04 01:59:50 +00:00
Vadim Caen
d6518e5a53 Add developer option for back animation DO NOT MERGE am: 94f506aa2a am: d67d675344
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17619727

Change-Id: I6e59464cb0974b9dbce2b9de49aefa4e1fa7c135
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-03 14:43:48 +00:00
Vadim Caen
d67d675344 Add developer option for back animation DO NOT MERGE am: 94f506aa2a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17619727

Change-Id: I18501722cd0083971ee9d6134900f7f0e36f299f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-03 14:17:39 +00:00
Vadim Caen
064b49a1a1 Merge "Add developer option for back animation DO NOT MERGE" into tm-dev 2022-05-03 14:13:57 +00:00
TreeHugger Robot
a3030c3f19 Merge "Add ActiveUnlock Settings" into tm-dev am: e6c8903e65 am: 775f991976
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18030064

Change-Id: I0e7f95e5b69e5900c7639da0904e8639eec6a60f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 22:38:01 +00:00
Victor Chang
ec2cf2a54d Merge "Revert "[SettingsProvider] enforce permission on openFile"" into tm-dev am: ca88bd0806 am: 9b1837e8ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18083376

Change-Id: I84bcd30e77aa5b677cbc8ddfc66d1cd4cbdae1af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 22:34:07 +00:00
Vadim Caen
94f506aa2a Add developer option for back animation DO NOT MERGE
Bug: 228936326
Test: BackAnimationControllerTest#animationDisabledFromSettings
Change-Id: I857a480e7375cada9171712d737162c7876c087e
Merged-In: Ie7a3acc5674080a22ccdcd0fe31a158a30ee9040
2022-05-02 17:15:06 +02:00
Songchun Fan
3b7e688d78 Revert "Revert "[SettingsProvider] enforce permission on openFile""
Prevent third-party apps to write to ring tone files without permission.

This reverts commit 3726d5247a.

Reason for revert: use appops manager's permission check method

BUG: 222687217
Test: atest android.appsecurity.cts.ExternalStorageHostTest#testExternalStorageReadDefaultUris
Change-Id: I5121bb7975e7a3893eefbf2ddbe6c9c6a82c6c74
2022-04-29 21:44:16 +00:00
Julia Reynolds
f04fcf89e2 Merge "Move REVIEW_PERMISSIONS_NOTIFICATION_STATE to Global from Secure" into tm-dev am: 9caec02cb7 am: b6ca97cef9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17872747

Change-Id: I0de54d65dffb664099f3f94c4e09752a5c72d694
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 21:07:49 +00:00
Songchun Fan
194a013806 Merge "[SettingsProvider] enforce permission on openFile" into tm-dev am: 0cb62fa9c7 am: 3309354b1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17970005

Change-Id: Ie399693c6c0027e1c5933bc4d1f8889b38f9bdb5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 18:03:03 +00:00
TreeHugger Robot
e6c8903e65 Merge "Add ActiveUnlock Settings" into tm-dev 2022-04-29 17:02:57 +00:00
Victor Chang
ca88bd0806 Merge "Revert "[SettingsProvider] enforce permission on openFile"" into tm-dev 2022-04-29 12:05:08 +00:00
Songchun Fan
3726d5247a Revert "[SettingsProvider] enforce permission on openFile"
This reverts commit 5b50cebd18.

Reason for revert: should check appops permission instead because the permission is granted upon user approval

Bug: 230791848

Change-Id: Icc86eb38372753a5f6aa8b91918ecb4b120c1fa8
2022-04-29 12:04:22 +00:00
Julia Reynolds
9caec02cb7 Merge "Move REVIEW_PERMISSIONS_NOTIFICATION_STATE to Global from Secure" into tm-dev 2022-04-29 05:11:26 +00:00
Beverly
1dbc30a437 Add ActiveUnlock Settings
Test: manual
Bug: 230512326
Change-Id: Idbf2662a822f66947d0fc39a174b72987c100079
2022-04-28 18:48:22 +00:00
Songchun Fan
5b50cebd18 [SettingsProvider] enforce permission on openFile
Prevent third-party apps to write to ring tone files without permission.

BUG: 222687217
Test: manual debug app
Test: will add a CTS
Change-Id: I759b9674172e2bdb518c1dccfff0f20047343bf0
2022-04-27 23:37:12 +00:00
Yuri Lin
56774980c4 Move REVIEW_PERMISSIONS_NOTIFICATION_STATE to Global from Secure
This setting is going to be global across the device rather than per-user.

Bug: 225373531
Test: manual
Change-Id: Ibabad2192e50d8f495f9e9fcbc12ba93156bc3fa
2022-04-27 14:31:30 +00:00
Sudheer Shanka
87fab15ac0 Merge changes I8aca6ac9,I995f7c6e into tm-dev am: 8a4c3cc16a am: f11dab52fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17799744

Change-Id: Ic05a232aa76cc37abb48c9adfffd2b6625bbf368
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-19 03:28:00 +00:00
Sudheer Shanka
664ded5de3 Migrate NETWORK_ACCESS_TIMEOUT flag to DeviceConfig.
Bug: 226299593
Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: I8aca6ac906657cf82742fdc5c32dcd9715cd8353
2022-04-18 08:21:18 +00:00
Kedar Chitnis
c60e7c4119 Guest mode updates to resolve privacy concerns in guest mode
- Add API in IUserManager to allow setting ephemeral user flag
- Implement and export this API in UserManagerService and UserManager
- Set guest as ephermal by default when createGuest in UserManager is called
- Handle guest user switching in UserSwitcherController for the case
  of dynamic change of ephemeral state
- Add persistant notification when in guest mode to indicate
  - if guest session is new or previously used.
  - if guest session will be cleared on exit or not
- Add buttons in persistant notification to reset or exit guest
- Add flags to enable/disable this feature

Bug: 214031645
Screenshots: go/ephemeral-guest-b-214031645-ux
Test: Manual test using sunfish, atest SystemUITests, atest SettingsRoboTests

Relands ag/16545010 after resolving post submit issues

Revert "Revert "Guest mode updates to resolve privacy concerns in guest mode""
This reverts commit dd5c440802.

Change-Id: I46b8ab527bab8fe665114ed0fffbb06a59d49a77
Merged-In: I46b8ab527bab8fe665114ed0fffbb06a59d49a77
2022-04-14 09:47:35 +00:00
Lucas Silva
dec54533e2 Merge "Revert "Add setting for device docked screen timeout."" into tm-dev 2022-04-11 16:53:46 +00:00
Fan Zhang
28b7064845 Add config to fine tune emergency gesture min time
This is the minimum time user has to perform the gesture
for it to be considered valid.

Bug: 228395041
Test: atest
Change-Id: I7ce603e5530e13bf3552611c621a8e8b3cf5ab4c
2022-04-08 16:11:48 -07:00
Lucas Silva
384be43f9f Revert "Add setting for device docked screen timeout."
This reverts commit 3048dbaac5.

Reason for revert: abandoning this feature, no longer adding a separate timeout

Change-Id: Ic35b7b94b1e4a49c1fc56f29627577d2d9a40174
2022-04-08 14:52:32 +00:00
TreeHugger Robot
c1741343c2 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-03-28 18:18:14 +00:00
kholoud mohamed
cfe99b7774 Persist bypassDevicePolicyMmanagementRoleQualification in global setting
Bug: 226386138
Test: manual
Change-Id: I7db40e4e0bcde98d190e6d6e9e841355da506aed
2022-03-28 14:15:46 +00:00
Bill Yi
972c66dfbc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I374a737a5c2edd02ebd55ca9148dd6ae7a3e97b2
2022-03-26 00:07:33 +00:00
Jernej Virag
0a790557c0 Merge "Restore long press power behaviour setting" into tm-dev 2022-03-22 19:41:16 +00:00
Songchun Fan
043ff055e0 Merge "[SettingsProvider] fix timestamp format in dump" into tm-dev 2022-03-22 15:58:05 +00:00
Jernej Virag
1a85be89c7 Restore long press power behaviour setting
The LPP setting is a bit special - the behaviour is configured by the config.xml and can then be modified via user setting to invoke Assistant if available. When restoring this value we need to be careful to not clobber default config.xml device settings if the user can't change it later. We strongly prefer to rely on config.xml device value in any case.

Bug: 215540406
Test: atest SettingsProvider
Change-Id: I8898a52a5d28f0957f44f3075498b1139c8ce831
2022-03-22 15:53:40 +00:00
Vania Desmonda
b7f5e21e80 Merge "Add UI_NIGHT_MODE_CUSTOM_TYPE to SecureSettings backup." into tm-dev 2022-03-22 12:08:47 +00:00
Songchun Fan
ab9e6ed17f [SettingsProvider] fix timestamp format in dump
Changing from:
1970-01-03 19:31:20 update screen_brightness

To:
2022-03-21 21:01:19 update screen_brightness

BUG: 225956913
Test: manual
Change-Id: I27d19779a207d8479b3ff4ed1e6343799d017d30
2022-03-21 21:05:29 +00:00
Songchun Fan
acc2d12971 [SettingsProvider] remove excessive logs in test
BUG: 224425064
Test: n/a
Change-Id: I085ea5ea88363d30fc1aedc9c5d26a9c6d7da05b
2022-03-19 03:24:36 +00:00
Bill Yi
f7a6173d6a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2113b5eef5ea0401c6e976973ef1a34e0320bc34
2022-03-15 21:37:53 +00:00
Xinyi Zhou
8a7f011f14 Merge "Remove FAST_PAIR_SCAN_ENABLED" into tm-dev 2022-03-09 19:25:52 +00:00
Pat Manning
4936ff4bf3 Merge "Start/end the navbar proto tokens in the secure settings dump logic." into tm-dev 2022-03-08 17:05:15 +00:00
Pat Manning
c0925b5a43 Start/end the navbar proto tokens in the secure settings dump logic.
Test: atest com.android.server.cts.SettingsIncidentTest#testBasicStructure
Fix: 223214722
Change-Id: I84a15f562813e62bbb89cd417396dcca89381e4f
2022-03-08 10:32:15 +00:00
Taran Singh
e12374c01c Merge "Introduce Stylus handwriting developer option" into tm-dev 2022-03-04 18:21:20 +00:00
Xinyi Zhou
1c3bfb34f8 Remove FAST_PAIR_SCAN_ENABLED
Bug: 216590902
Test: Flashed and confirmed logs
Change-Id: Ic697259bac1e4358bff8f9544f6879e3a77c8846
2022-03-03 23:57:34 +00:00
Pat Manning
60b397e84a Merge "Refactor force visible nav bar into new secure setting." into tm-dev 2022-03-02 13:51:27 +00:00