Commit Graph

7061 Commits

Author SHA1 Message Date
Kedar Chitnis
dd5c440802 Revert "Guest mode updates to resolve privacy concerns in guest mode"
Revert "Guest mode UX flow updates to user settings"

Revert submission 16545010-kedarc-ephemeral-guest

Reason for revert: A conflicting CL got merged after presubmits were triggerred, will rebase and push again
Reverted Changes:
I86a5a1571:Guest mode updates to resolve privacy concerns in ...
I7cf205883:Guest mode UX flow updates to user settings

Change-Id: I91093a241f31a82f427be24d03e6c922779ceed0
2022-03-24 12:45:25 +00:00
Kedar Chitnis
d96ba2dee5 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
Change-Id: I86a5a15715cc6dde0eae93d38cd1c5cef33d7c67
2022-03-24 04:28:45 +00:00
Haik Kalantarian
3253fe9bea Merge "Added globals for unlock/charging sound Settings" 2022-03-19 00:15:47 +00:00
Haik
4840c17bec Added globals for unlock/charging sound Settings
Bug: 225072997

Test: N/A
Change-Id: Ib3401d9fcdf606dcafc1560f0958f0fc945798c2
Pending-CP-To-TM: Ib3401d9fcdf606dcafc1560f0958f0fc945798c2
(cherry picked from commit 3bcc4e3827e8aa88d696aae22c35f80fe3bc434b)
2022-03-18 17:39:59 +00:00
Joe Bolinger
5c74fb6912 Merge "Update documentation for EXTRA_SUPERVISOR_RESTRICTED_SETTING_KEY." into tm-dev am: a90ee32654
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17241351

Change-Id: Id7d637b446272395dd24d6d748ccb021ca3d1830
2022-03-18 17:09:36 +00:00
Joe Bolinger
da7f7fe8e7 Update documentation for EXTRA_SUPERVISOR_RESTRICTED_SETTING_KEY.
Fix: 215434051
Test: N/A
Change-Id: I649c5c77fc6a328f7937e1d169976f9c950284f2
2022-03-17 19:40:26 +00:00
Ahaan Ugale
8f18e2d792 Merge "Use flag to control the restart period value." into tm-dev am: d252376ed4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17183529

Change-Id: I78e0ce2a9120840735c328c9f3261c5a34e98b78
2022-03-15 17:16:58 +00:00
Joanne Chung
46e6944804 Use flag to control the restart period value.
Bug: 224618257
Test: adb shell cmd device_config get/put voice_interaction \
restart_period_in_seconds works fine
Test: the value is expected by command: adb shell dumpsys \
voiceinteraction | grep RESTART_PERIOD_SECONDS

Change-Id: Icd8d19c2a482d0d6b9bf0432e2176ca10f3bd2eb
2022-03-15 12:10:14 +00:00
TreeHugger Robot
a307243888 Merge "ComponentAlias: Change device config namespace" into tm-dev am: 45b079a3c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17111872

Change-Id: I554382abd066aa504a3e5c73fdb68ffe2c6abf61
2022-03-11 00:48:37 +00:00
TreeHugger Robot
45b079a3c8 Merge "ComponentAlias: Change device config namespace" into tm-dev 2022-03-11 00:25:34 +00:00
Frank Wang
d444e7ba73 Merge "Add OnDevicePersonalization to DeviceConfig.java." into tm-dev am: 12fcbf70e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17145211

Change-Id: Ia0697327794acba0cb078c9dec226f3bc9e92985
2022-03-10 20:24:32 +00:00
Frank
9e289cab07 Add OnDevicePersonalization to DeviceConfig.java.
Test: TH
Bug: 218749359, 223666720
Change-Id: I232d36f7904f27a441b66acf5f833ca6cf1890cc
2022-03-10 08:55:50 +00:00
Xinyi Zhou
02256d2ece Merge "Remove FAST_PAIR_SCAN_ENABLED" into tm-dev am: 8a7f011f14
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17074568

Change-Id: I9b08b914c2c8b634966f72840de358a3f926fd3c
2022-03-09 19:34:14 +00:00
Xinyi Zhou
8a7f011f14 Merge "Remove FAST_PAIR_SCAN_ENABLED" into tm-dev 2022-03-09 19:25:52 +00:00
Lucas Silva
961f841c56 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-03-08 15:17:29 +00:00
Makoto Onuki
9b8d1d4b34 ComponentAlias: Change device config namespace
Now use the namespace "activity_manager_ca".

Reason: When the device boots up, phenotype will reset all the values
in "activity_manager". To avoid it, we use a different namespace.

Test: atest ComponentAliasTests ComponentAliasTests1 ComponentAliasTests2
Bug: 196254758

Change-Id: I540417a1e1b612424e8426981c1e02e1c68132f8
2022-03-07 16:21:39 -08:00
Prakriti Gupta
35663c3496 Merge "Add settings key for touch and hold watch face" 2022-03-07 17:53:53 +00:00
Prakriti Gupta
696aa29145 Add settings key for touch and hold watch face
Bug: 216332461, 222022449
Test: Unit test
Change-Id: Idcd5740583ca9fe4b711ef7a9466daa74047aea5
(cherry picked from commit 20b021ff3eb5c9c6de0ec061551c76f61e0a7a3e)
2022-03-07 10:40:42 +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
Binh Nguyen
47719703d6 Merge "Add DeviceConfig namespace for AdServices module" into tm-dev 2022-03-02 18:58:28 +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
Tom Hsu
dc231afd22 Merge "[Tethering] Add action of carrier unsupported dialog." am: 882c2864f3 am: 2d7c62078c am: ad1c6840bf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1993171

Change-Id: I2fc0ee76ee6b68edb8141f6f2ab55b101ee82c7f
2022-03-02 12:42:33 +00:00
Tom Hsu
ad1c6840bf Merge "[Tethering] Add action of carrier unsupported dialog." am: 882c2864f3 am: 2d7c62078c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1993171

Change-Id: I83eafe6a7fa55bbd1811345328a06c328bcb9378
2022-03-02 12:19:56 +00:00
Tom Hsu
2d7c62078c Merge "[Tethering] Add action of carrier unsupported dialog." am: 882c2864f3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1993171

Change-Id: I3eb65de95df14098d2b284c8d6a7bd9234a724f5
2022-03-02 11:59:46 +00:00
tom hsu
ad950aa3a2 [Tethering] Add action of carrier unsupported dialog.
Bug: 161206517
Test: local manual testing
Test: added cts test for new activity
Change-Id: I0223d262817088b4eb8b62612fbb51dcfb98f653
2022-03-01 20:58:58 +00:00
Taran Singh
ede3a97e6f Introduce Stylus handwriting developer option
Introduce stylus handwriting settings and check if its enabled before
calling IMM#startStylusHandwriting()

Bug: 219777744
Test: atest StylusHandwritingTest

Change-Id: Id58b2eb66a0a1178743d08921918f3d9d717546c
2022-02-28 17:15:53 +00:00
Presubmit Automerger Backend
ce1224aeb7 [automerge] Sysui changes to support vibrate icon setting 2p: 5b5a16e900
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16928919

Bug: 220144337
Change-Id: Ib2a4f577c456db432e49ebb3e3adf126d6064c95
Merged-In: I667b5c57ef646c57a2f6912df7d233b1b5c0f89d
2022-02-28 15:12:08 +00:00
Evan Laird
5b5a16e900 Sysui changes to support vibrate icon setting
- Add a listener for the new setting Settings.Secure.STATUS_BAR_SHOW_VIBRATE_ICON
- Rebuild any IconManager that receives an updated blocklist
- Assert that any blocklist changes come in on the main thread

Test: atest CollapsedStatusBarFragmentTest
Bug: 220144337

Change-Id: I667b5c57ef646c57a2f6912df7d233b1b5c0f89d
Merged-In: I667b5c57ef646c57a2f6912df7d233b1b5c0f89d
2022-02-28 15:11:57 +00:00
Evan Laird
ce1ca2a19f Merge "Sysui changes to support vibrate icon setting" into tm-dev 2022-02-28 15:10:23 +00:00
Binh Nguyen
c009995c45 Add DeviceConfig namespace for AdServices module
Bug: 213604390
Test: build
Change-Id: I57e02d0b4a3131afe3dace7b211de4a904ff4ce3
2022-02-25 12:20:06 -08:00
Anton Kulakov
98e13945e0 Merge "Add namespace for SdkSandbox related features." into tm-dev 2022-02-25 19:25:43 +00:00
Evan Laird
225052be27 Sysui changes to support vibrate icon setting
- Add a listener for the new setting Settings.Secure.STATUS_BAR_SHOW_VIBRATE_ICON
- Rebuild any IconManager that receives an updated blocklist
- Assert that any blocklist changes come in on the main thread

Test: atest CollapsedStatusBarFragmentTest
Bug: 220144337

Change-Id: I667b5c57ef646c57a2f6912df7d233b1b5c0f89d
2022-02-25 16:33:56 +00:00
Aaron Liu
caf89ec290 Merge "Home Controls: Add Device Controls settings" into tm-dev 2022-02-25 16:19:30 +00:00
Anton Kulakov
1ea726550f Add namespace for SdkSandbox related features.
Test: Build
Bug: 216303182
Change-Id: I352951c5bac6a53c2ae3875569c7589aa8bd00ba
2022-02-25 15:34:19 +00:00
TYM Tsai
2a5769bc38 Merge "Make fill dialog feature controlled by device config" into tm-dev 2022-02-25 04:33:29 +00:00
Pat Manning
a8210d8ec3 Refactor force visible nav bar into new secure setting.
Decouples force visible from kids mode setting.

Bug: 217668440
Test: manual
Change-Id: I363a2507cd1b073f44ed91e96b1dce7b3cd347c4
2022-02-24 16:18:47 +00:00
Aaron Liu
3cc5bf6c4f Home Controls: Add Device Controls settings
Add a KEY for the settings and apply the associated business logic.

Fixes: 216102581
Test: Manual
Change-Id: Ic66cd0a865044c602bf7f5364abd726e445c9386
2022-02-23 21:13:06 +00:00
Joe Bolinger
e8e0b2d8a0 Change supervisor settings constants to int.
Fix: 215434051
Test: ROBOTEST_FILTER=BiometricActionDisabledByAdminControllerTest m RunSettingsLibRoboTests
Change-Id: Iaee74fb93d9b455195fd725e2e30baa6c716bff6
2022-02-23 18:36:30 +00:00
TYM Tsai
261ac24929 Make fill dialog feature controlled by device config
Use device config to control whether autofill dialog feature is enabled.
To support this, the autofill namespace of DeviceConfig needs to be exposed
for AutofillManager to read in the app thread.
There are augmented_autofill_mode, smart_suggestion_supported_modes and
compat_mode_allowed_packages existed in autofill space. These can be made
app readable.

Bug: 210926084
Test: atest android.autofillservice.cts.dialog.LoginActivityTest
Change-Id: Idfb846656a0c26eba1db4f8ef6ec427ae4ca666d
2022-02-24 00:34:54 +08:00
Neil Fuller
91d5781980 Merge "Switch "UTC time" to "Unix epoch time" (core)" 2022-02-14 17:21:43 +00:00
Antoan Angelov
332e6894b7 Merge "Add a Settings.Global feature flag to toggle role holder provisioning" 2022-02-14 15:48:37 +00:00
arangelov
0b02a41c3c Add a Settings.Global feature flag to toggle role holder provisioning
This will be useful for testing.

Bug: 218686349
Test: none
Change-Id: I21c9de56638827beb092eeeb2cdc70940e6377f0
2022-02-11 16:42:34 +00:00
Neil Fuller
5990bc702c Switch "UTC time" to "Unix epoch time" (core)
This is more correct. Android devices, even under ideal conditions,
don't track UTC (which contains leap seconds and uses the SI definition
of a second) but use a clock based on Unix epoch time (no leap seconds,
but clocks may skip/stop or smear around leap seconds to ensure a fixed
number of second increments per calendar day when leap seconds are
applied to UTC).

Bug: 218802673
Test: Compile only
Change-Id: I0c557e2231f87ea1b99e3935f79af15bccf91da4
2022-02-11 13:22:05 +00:00
tomnatan
d0df97d939 [10/n] Letterbox Education: don't show if taskbar education is showing.
Introduce a LAUNCHER_TASKBAR_EDUCATION_SHOWING setting for taskbar to
indicate that the education is about to be shown or is currently
showing.

After the taskbar education is dismissed, the letterbox education will
only be shown for a different task or for the same task once its compat
state changes and the letterbox education is eligible to be shown.

Bug: 214590804
Test: N/A
Change-Id: Ia8512e5f188fe421adf1de2fc8a0422b9cc79c76
2022-02-11 10:28:46 +00:00
Kathy Chen
4ff2a4e611 Merge "Add query API for apps to check the event status. The detection service sends back the response with a status. Add client API for apps to start the consent activity." 2022-02-09 19:05:21 +00:00
Tom Taylor
3a1346c3ef Merge "Remove RCS columns for a feature that was never implemented" 2022-02-09 16:06:01 +00:00
Lucas Silva
a67451dd23 Merge "Add setting for device docked screen timeout." 2022-02-09 15:09:45 +00:00
Kathy Xiaoming Chen
f8f605c44e Add query API for apps to check the event status. The detection service sends back the response with a status. Add client API for apps to start the consent activity.
It implements Option 5 in this proposal doc: http://go/ambient-consent-api

Test: atest CtsAmbientContextDetectionServiceDeviceTest
Bug: 192476579
Change-Id: I923911fa8f73d973fd22587af74ed27c5045da34
2022-02-08 16:25:39 -08:00
Lucas Silva
3048dbaac5 Add setting for device docked screen timeout.
This new timeout will only apply when the device is docked, while still honoring any maximum timeouts set by DevicePolicyManager or WM.

Test: atest PowerManagerServiceTest
Test: locally on device, modifying the setting manually via adb
Bug: 213908097
Change-Id: I3d992154723fa8871f7c1c24607b16a35c42fb87
2022-02-08 21:35:17 +00:00