Commit Graph

2809 Commits

Author SHA1 Message Date
josephpv
92f28a17c8 Add intent to start Private Space setup/settings
Bug: 310027945
Test: Manual
Change-Id: I9df2b239ba24ac44c65a4cb3c18214bbc27bbcec
2023-12-13 18:27:19 +00:00
Mark Kim
4345908c39 Merge "Add 'Restore' button to AppInfo screen" into main 2023-12-12 10:42:10 +00:00
Wesley Wang
336c441db5 Add screen timeout destination to settings
When an intent with action android.settings.SCREEN_TIMEOUT_SETTINGS is
launched, ScreenTimeoutSettings should be shown in settings

Bug: 293813663
Test: manual and local build verify
Change-Id: I1340cd3c233aa5d36f45b53b0fd2b6924f3a1d75
2023-12-12 14:55:15 +08:00
Mark Kim
e3b456ef3e Add 'Restore' button to AppInfo screen
Test: AppButtonsTest, AppRestoreButtonTest

Bug: 304255818
Change-Id: Ica9055d8ee5603e4bb682e9b5d90a225c839002a
2023-12-11 22:07:03 +00:00
Anubhav Kakkar
e79fcbef78 Add activity to handle app specific request to open media routing controll special
Bug: 313775893
Test: Trigger the intent with action "android.settings.REQUEST_MEDIA_ROUTING_CONTROL" and package name in the data uri
Change-Id: If65ea61a058b465dc44836eff9c7d3fb25425ec4
2023-12-08 08:52:44 +00:00
Anubhav Kakkar
86b5a0afc1 Merge "Implement special app access settings for MEDIA_ROUTING_CONTROL app-op." into main 2023-12-07 10:58:40 +00:00
Anubhav Kakkar
642bc5a6bc Implement special app access settings for MEDIA_ROUTING_CONTROL app-op.
Bug: b/307632045
Test: Pair a watch with companion app > Settings > Apps > Special app access > enter "Change Media Output" > Find the companion app > Ensure the special app access is Allowed > ensure companion app is able to call remote media routing APIs > come back to the settings > revoke the access > ensure that now companion app is NOT able to call the remote media routing APIs.

Change-Id: I35487660365ef05f3b998e8ecf13aaed7ba844a9
2023-12-07 09:12:08 +00:00
Chaohui Wang
929c2bf77f Remove com.android.settings.action.SETTINGS
From DevelopmentSettingsActivity, this action used to inject developer
options into Settings itself, since we display this directly instead of
inject, we no longer need this.

Bug: 311604902
Test: manual - open Developer options from System
Change-Id: I3ea26464954d8711e7aecc031daf09ad30362d70
2023-12-07 14:13:49 +08:00
Chaohui Wang
6adf1bad31 Let SpaBridgeActivity support HIGHLIGHT_MENU_KEY
Also the SpaAppBridgeActivity.

Could be tested by,
adb shell am start -n com.android.settings/.ManageFullScreenIntent

adb shell am start \
  -a android.settings.MANAGE_APP_USE_FULL_SCREEN_INTENT \
  -d package:com.android.settings

adb shell am start -n com.android.settings/.UsageStatsActivity

Bug: 309075424
Test: manual - on tablet
Test: unit test
Change-Id: I778443e9d21d165904e415c66c03aafc7ac81372
2023-12-05 11:43:31 +08:00
Chaohui Wang
d5d53c1c05 Add back HIGHLIGHT_MENU_KEY for DevelopmentSettings
Use to highlight the "System" of the left activity on the tablet.

Can be tested with,
adb shell am start -a android.settings.APPLICATION_DEVELOPMENT_SETTINGS

Bug: 311604902
Test: manual - tested with adb
Change-Id: If9eea47f3bd6d2ab7bbce0a10c56d1cd14784140
2023-11-30 20:45:12 +08:00
Becca Hughes
d4e09de3e1 Merge "Swap cog and left hand side of row" into main 2023-11-28 21:19:40 +00:00
Becca Hughes
e70dad42f4 Swap cog and left hand side of row
See bug for more context.

Test: flash device
Bug: 280951040
Change-Id: I21ba2a2177f88dbabea42915727f8c33aa0e23f8
2023-11-28 10:05:38 -08:00
Omer Ozer
b347d32b31 Merge "Change the existing permission to a system level perm for factory reset prep." into main 2023-11-27 22:57:32 +00:00
Chaohui Wang
357076d03d Merge "Remove injecting developer options into Settings itself" into main 2023-11-27 06:49:55 +00:00
Chaohui Wang
ee7139a889 Remove injecting developer options into Settings itself
- It can improve performance because we use less injected item
- Also use RestrictedPreference instead just checking restrictions,
  so we follow policy transparency.

Note: Renamed DevelopmentSettingsDashboardActivity to
DevelopmentSettingsActivity,
because DevelopmentSettingsDashboardActivity could in disabled state
even after Settings upgrades, use a new name to prevent this issue.

Bug: 311604902
Test: manual - turn on / off Developer Options
Test: unit test
Change-Id: I17be117ae59e59410687e6d08fd5edd034d0508f
2023-11-27 05:12:13 +00:00
Chaohui Wang
7c4b3a3477 Clean up unused SummaryProvider
Remove unused content provider to improve latency.

Bug: 311604902
Test: manual - on System page
Change-Id: I3208a2fe341337c2648733b5e11159b96f5e6908
2023-11-27 12:26:48 +08:00
Edgar Wang
6024953f02 Remove injecting multi-user settings into settings itself
- It can improve performance because we use less injected item

Bug: 242152448
Test: robotest
Change-Id: I892e1ac9c3f8297c489fc1fec934e9f5f2e2f5e9
2023-11-21 21:05:54 +08:00
chelseahao
74b9b9dbb4 [Audiosharing] Branch existing LE QrCode scanner.
Bug: 308368124
Test: Manual
Change-Id: I8d0d8150baedfee7d74f60a3c18ecbc93271cada
2023-11-14 16:53:10 +08:00
Omer Ozer
1d9c2a6f11 Change the existing permission to a system level perm
for factory reset prep.

Bug: 302016478
Test: local
Change-Id: If8ede49445ce1e26a77af04216654c8f9db9c421
2023-11-08 16:31:51 +00:00
Treehugger Robot
ff03ce88ff Merge "settings(nfc): Remove NFC beam settings" into main am: e8df63f148
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2808364

Change-Id: Ic8c0f7ceec443aca5172cd38ede765781640dc0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-30 21:03:30 +00:00
Roshan Pius
ad565c49dc settings(nfc): Remove NFC beam settings
This API was already deprecated and not supported for a few years. The
API was completely removed in Android U (see b/236980291).

Bug: 307352220
Test: Verified NFC settings works correctly
Merged-In: I40974a26d170cf3eeec18e6a07a21f6c420eca9e
Change-Id: I40974a26d170cf3eeec18e6a07a21f6c420eca9e
2023-10-30 19:42:47 +00:00
Treehugger Robot
336e95cf64 Merge "settings(nfc): Remove NFC beam settings" into main 2023-10-30 17:11:17 +00:00
Roshan Pius
21c3bca13f settings(nfc): Remove NFC beam settings
This API was already deprecated and not supported for a few years. The
API was completely removed in Android U (see b/236980291).

Bug: 307352220
Test: Verified NFC settings works correctly
Change-Id: I40974a26d170cf3eeec18e6a07a21f6c420eca9e
2023-10-27 13:26:07 -07:00
josephpv
84944ba6f0 Add auto advancing screens for private space setup
This includes changes for
1. To add auto avancing screens to PS setup
2. Screen to set a different Private profile lock or use existing lock
3. Success screen on setup completion
4. Shows Error screen if profile creation failed for some reason
5. Send intent towards launcher, show a Toast message to access PS from bottom of All apps and exit.

Bug: 299069146
Test: Manual setup
Change-Id: If4e5dd5a42abb11259bc40506189c7c750324139
2023-10-27 12:32:12 +00:00
josephpv
ee5e1ceb03 Start private space setup when there is no private space set
This change handles as below based on if private space already exists on device:
1. If PS doesn't exist then start the setup flow which shows a PS education screen. On setup button creates the private space.
2. If PS already exists on device then display PS settings page.

Bug: 299069146
Test: atest PrivateSpaceSettingsAuthenticatorTest
Change-Id: I46bdbaeb0210fd5b41a426f852e3f455b62c1c29
2023-10-25 21:17:33 +00:00
Omer Ozer
e148ee7877 Add factory reset intent to the settings app.
Bug: 302016478
Test: local
Change-Id: I784395931b32746cb45a447b330ea8d57c17b2fe
2023-10-24 23:59:33 +00:00
josephpv
31b044ed6a Prompt user to Setup a device lock if not set
This add below changes on selecting private space setting:
1. Prompt user to setup device lock if not already set
2. If device lock is set authenticate user first before displaying private space settings page

Screenshot - https://screenshot.googleplex.com/4SrYHbBMJfVuoRy.png
https://screenshot.googleplex.com/6vNWm7Lg83vfnH8.png
RecordingLink - https://drive.google.com/file/d/1r4zb3ILPRqwvP5tlwfjQ9GgnDAW4vZg6/view?usp=drive_link

Bug: 289016927
Test: atest PrivateSpaceSettingsAuthenticatorTest , atest SecuritySettingsTest
Change-Id: I0e5dfb30213843c0dec60a17d01c30cd91db89b0
2023-10-24 10:42:57 +00:00
Joshua McCloskey
7526b9259e Created biometric provider.
Test: Manually verified data was fetched successfully.
Test: adb shell device_config put biometrics_framework
com.android.settings.flags.biometric_settings_provider true
Test: atest BiometricSettingsProviderTest
Bug: 303595205

Change-Id: I154754eed7c36d659853ed83cc18a2e446fb7678
2023-10-23 18:50:58 +00:00
Zaiyue Xue
011725f89e Fix battery usage database is not clear when time is changed
[Root Cause]: Intent.ACTION_TIME_CHANGED is listened in the java code, but it is not registered in the AndroidManifest.xml.

Bug: 304700667
Bug: 303352170
Fix: 304700667
Fix: 303352170
Test: manual
Change-Id: I326c525c4a370493e8caa70258580b6bd9dfe357
2023-10-11 17:40:14 +08:00
Allen Su
1c2440aab0 Merge "Fix notificaiton not working in work profile" into main 2023-10-03 02:11:34 +00:00
Allen Su
7b31a7a612 Fix notificaiton not working in work profile
Bug: 298592379
Test: atest SettingsRoboTests:com.android.settings.localepicker
Change-Id: I1da93e0dd2a7f98c2e635a1d7a520c88ba8258e0
2023-10-02 09:34:40 +00:00
chelseahao
4e19ccd08d Add "Previously connected devices" activity in settings for system ui QS bluetooth dialog.
Test: adb shell "am start -n 'com.android.settings/.Settings\$PreviouslyConnectedDeviceActivity'"
Bug: 298124674
Change-Id: I388aab93d4952ebc8fbd515be624f336cb083a91
2023-09-25 02:28:54 +00:00
Massimo Carli
ea28ebdc1b Merge "Use experimental string in user aspect ratio settings" into udc-qpr-dev am: 10050559cc am: f6bafc836e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24828451

Change-Id: I768fd7baef049d3243ca01f0b0bd2eb6aa19d8e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-23 00:35:43 +00:00
Massimo Carli
e3951e39ef Use experimental string in user aspect ratio settings
Bug: 300219974
Test: Manual

Change-Id: I92b23e525f6c48d11e61080af5502c68ec9059e0
2023-09-22 14:12:25 +00:00
Massimo Carli
7c40c31f38 Merge "Add user aspect ratio detail destination to settings" into udc-qpr-dev am: 8a7228ac82 am: ed59726c6e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24823112

Change-Id: I9467e2f5ece71bc901cc51bebf29c10e3a76698d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 16:58:42 +00:00
Massimo Carli
1dc175123a Add user aspect ratio detail destination to settings
When an intent with action android.settings.MANAGE_USER_ASPECT_RATIO_SETTINGS
and data with scheme "package:" is launched, the UserAspectRatioDetails
is shown in settings

Fix: 296564769
Test: Manual

Change-Id: I3667ece595ad76c694342de934051893e1e0a1d3
2023-09-21 10:42:56 +00:00
Jason Chang
ba14b4b5c2 Merge "Fix rotate device at face unlock detailed page, device will display redundant face unlock header." into udc-qpr-dev am: 7c1b1fc934 am: 0e850e9d73
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24399253

Change-Id: Icb44d81e49551a43374eceadc709a1c1d680c8a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 16:49:47 +00:00
Jason Chang
f0fccc22a4 Fix rotate device at face unlock detailed page, device will display
redundant face unlock header.

In AndroidManifest.xml to apply Theme.Settings.NoActionBar theme
attribute to avoid action_bar appears accidentally.

Bug: 293978245

Test: manually check UI with reproducible steps:
Pre-Condition:
1) enroll face
2) enable auto rotate

Procedure:
1) go to settings > security > face & fingerprint unlock
2) enter screen lock
3) click face unlock
4) rotate device into landscape mode and then back to portrait mode
5) check the UI

Change-Id: I065ff5821a91eb8060dd98b373fce34cae769c66
2023-09-18 12:28:43 +00:00
Kean Mariotti
4ed4885aa8 Merge "Revert^2 Remove Winscope tracing QS development tile" into main 2023-09-04 07:50:36 +00:00
Kean Mariotti
95b375e2b4 Revert^2 Remove Winscope tracing QS development tile
This commit removes the obsolete QS development tile for Winscope
tracing as now Winscope traces can be collected via Traceur.

Bug: 295816837
Test: N/A
Change-Id: I7658537579cd054af092945aab553a4e17997273
2023-09-01 10:36:29 +00:00
Priyanka Advani
7b4cfbca95 Merge "Revert "Remove Winscope tracing QS development tile"" into main 2023-09-01 03:14:34 +00:00
Diwas Sharma
e08ceb575c Revert "Remove Winscope tracing QS development tile"
This reverts commit 513e014963.

Reason for revert: 298512106

Change-Id: I5efa947b17b8d33cfe8ca3350c2279903e5239af
2023-09-01 00:41:22 +00:00
Kean Mariotti
698657dead Merge "Remove Winscope tracing QS development tile" into main 2023-08-31 22:06:52 +00:00
Justin McClain
7e837fae82 Remote authenticator enrollment navigation.
This change adds an entry point for Remote Auth enrollment and
navigation through the flow.

Bug: b/293906345
Test: make RunSettingsRoboTests -j40
Change-Id: I9bc803e24c4181ed73a0ef90b171897c677e71d1
2023-08-31 21:24:09 +00:00
Sukesh Ram
8337f5dd5d Merge "Remove Windowing Prototype 1 from Codebase" into main 2023-08-30 18:43:39 +00:00
Sukesh Ram
a1530bf4e4 Remove Windowing Prototype 1 from Codebase
Refactor codebase to remove desktop windowing Proto1 as it is no longer supported in favor of proto2. (https://docs.google.com/document/d/1bWix49k1XmI97I1AgWEbvQKSD-PuKyJIyYdvb9PYJKk/edit)

Test: aTest WMShellUnitTests
Bug: 297217817
Change-Id: Ie864810a6842cea4a98520b48e74dffbdbd7da1c
2023-08-30 18:08:25 +00:00
Sumit Bhagwani
f6472fdfca Add android:maxSdkVersion="34" to all the <uses-permission> blocks for "com.google.android.googleapps.permission.GOOGLE_AUTH*" permissions
These permissions used to guard code in Android Authenticator which doesn't exist now. There is no GSF code in V+.

Bug:280072910
Change-Id: Ib2fceca51c324f107be6b9e2f9e6001431cc3f08
2023-08-29 00:27:35 +00:00
SongFerng Wang
55f1696426 Merge "Add the config_show_sim_info to control the DataUsageSummary SHORTCUT" into udc-qpr-dev am: 6bd2ecf6fb am: 57d30006d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24499553

Change-Id: I1b3b18fc4557822ce56d5115196c1229513b9cbb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 19:19:32 +00:00
Allen Su
f22d5e98c0 Migrate LocaleNotification to main trunk
Bug: 248514263
Test: make RunSettingsRoboTests -j128 ROBOTEST_FILTER=AppLocalePickerActivityTest LocaleListEditorTest LocaleNotificationDataManagerTest NotificationCancelReceiverTest NotificationControllerTest
Change-Id: Iac7ffd493485be8ebb10ae63e5ca4ea7a57c8c78
2023-08-25 05:14:56 +00:00
SongFerng Wang
7ac8fc7797 Add the config_show_sim_info to control the DataUsageSummary SHORTCUT
Bug: 292998280
Change-Id: I248066b5f9a25c271604041d95369d051643c35a
Test: Build pass
2023-08-23 12:25:24 +00:00