Commit Graph

2438 Commits

Author SHA1 Message Date
Dan Shi
7a231eaba0 Revert "Add Credential Manager settings"
This reverts commit 8c6f627a93.

Reason for revert: possible cause of b/263060941

Change-Id: I8ce36da052ceb1f29372c307ae1c7a85cc932fe4
2022-12-19 06:48:52 +00:00
Becca Hughes
8c6f627a93 Add Credential Manager settings
Autofill is evolving into CredMan which means we need
to update the settings to have CredMan providers.

This CL adds CredMan equivalent classes to list the
Credential Manager providers and allow the user
to select a number of providers.

Test: Manual & atest SettingsUnitTests & make RunSettingsRoboTests -j
Bug: 253157366

Change-Id: Ice76187cfee91d844d211205b44b661acf2f6a44
2022-12-16 22:16:12 +00:00
Eric Biggers
4e337fe522 Merge "Remove EncryptionInterstitial for Full Disk Encryption" 2022-12-16 18:55:41 +00:00
Eric Biggers
5f1d894252 Remove EncryptionInterstitial for Full Disk Encryption
Support for Full Disk Encryption was removed in Android 13, since now
File Based Encryption is always used instead.  It turns out that I
missed a fairly large chunk of obsolete code: EncryptionInterstitial,
which is the screen that asks whether the device will require the
primary user's lockscreen credential when it starts up.  This used to be
shown when setting the primary user's lockscreen credential, to
determine whether the full-disk encryption key would be tied to that
lockscreen credential or not.  But now it's unused code.

This CL removes all this unused code.

This should not change any behavior, with one very minor exception:
Settings will no longer explicitly set the REQUIRE_PASSWORD_TO_DECRYPT
setting to 0 whenever the primary user's lockscreen credential is
changed.  (This happened in SaveChosenLockWorkerBase.)  This setting is
a @SystemApi, but it no longer has any meaning, since it is never set to
1 anymore.  If there is a reason to keep it explicitly set to 0, instead
of unset, we should make LockSettingsService in system_server set it.

Test: Went through SUW, set a PIN, cleared the PIN, set a PIN again (all
      using the UI).  Nothing unusual seen.
Bug: 208476087
Change-Id: I039cc7a284e3f43e1e284970a5869958c909d1b7
2022-12-15 20:47:20 +00:00
Bonian Chen
3ac629f04e [Settings] Try to reduce the time pending on BroadcastReceiver
This is not a design which could resolve the issue, but try to improve
it through reducing the time blocking on BroadcastReceiver and reducing
the happening of ANR.

Bug: 262209170
Test: local and auto
Change-Id: Idec4da3d1deaffb121a5c7a73aeb84b4b0331374
2022-12-14 10:06:12 +00:00
Kuan Wang
bc4548b29e Add BugReportContentProvider to support new battery usage architecture.
Test: make RunSettingsRoboTests + manually
Bug: 256123932
Change-Id: I8cc48f5c66e5cbd958bdd73ff8e7d6e555bd9c3b
2022-12-02 02:53:13 +00:00
Florian Mayer
a250c3926f Merge "Rename ACTION_MEMTAG_SETTINGS" 2022-11-30 01:26:43 +00:00
TreeHugger Robot
f4b81c8207 Merge "Adds settings item for quick affordances." into tm-qpr-dev am: 6f908bae6f am: 6c7910557e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20427460

Change-Id: I734695139164190b049052af8456dfb8127202d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-22 03:52:37 +00:00
Alejandro Nijamkin
01df2b4ee2 Adds settings item for quick affordances.
This is in Display > Lock screen. It reads "Buttons" and the summary
text below it is a comma delimited list of the names of the
currently-selected quick affordances.

Fix: 256662519
Test: Manual verification that the lock screen and wallet
items are gone and the new item is visible and clicking it opens the
Wallpaper & style settings screen

Change-Id: If3746b5d0eb8c61edb9378cdb217ca248b999944
2022-11-21 16:42:45 -08:00
Chaohui Wang
f67f2addf6 Set configChanges for Spa Browser Activity
Spa Browser Activity will handle orientation change itself.
To prevent the activity from being restarted.

Bug: 259520506
Test: Manually with Gallery
Change-Id: I8f379e7ddc69cd4f63c9cf645d0fbb1f789643c5
2022-11-21 17:44:31 +08:00
TreeHugger Robot
62f0b933f1 Merge "Add a new special app access screen for long background tasks." 2022-11-18 17:16:52 +00:00
Varun Shah
b33256a0fc Add a new special app access screen for long background tasks.
This new screen shows apps that hold the new RUN_LONG_JOBS permission.

Also add a reference to this screen in an app's info page under the
"Advanced" section for apps that have requested this permission.

Bug: 255821578
Test: atest AppFilterRegistryTest
Test: make -j RunSettingsRoboTests \
ROBOTTEST_FILTER="LongBackgroundTasksDetailsTest|
LongBackgroundTasksDetailsPreferenceControllerTest"
Test: visually via the Settings page

Change-Id: Idc498e52d29abc6df757c35e8bc91f00de92ba4a
2022-11-18 07:14:12 +00:00
Florian Mayer
ef5e8670a5 Rename ACTION_MEMTAG_SETTINGS
Bug: 259140983
Change-Id: Ia8fd50d2c470ec44ac0aface9a80bc9ce9fc9861
2022-11-17 16:46:05 -08:00
TreeHugger Robot
148774d287 Merge "Fingerprint Introduction FragmentActivity" 2022-11-16 00:04:49 +00:00
Milton Wu
b9b8b8a512 Fingerprint Introduction FragmentActivity
Introducing MVVM architecture & fragments to biometric settings.
Here, we modify the first page of FingerprintEnrollIntroduction to use
new MVVM with Fragment architecture.

And with this new architecture, unit test and screen order will be
easier to be written or changed.

Bug: 236072782
Test: atest FingerprintEnrollmentViewModelTest AutoCredentialViewModelTest
	    FingerprintEnrollIntroViewModelTest FingerprintRepositoryTest
Change-Id: Icf12c91625db86c2c99081a0108203e607e77f74
2022-11-14 15:36:03 +08:00
Florian Mayer
a1167c1432 Merge "Add intent to open MemtagPage" 2022-11-11 16:33:15 +00:00
Ankita Vyas
094d858cd1 Merge "AppClone: Add preference to display new page Cloned Apps" 2022-11-11 07:01:04 +00:00
YK Hung
2cdc7409b5 Merge "Verify and reset invalid scheduled battery level in the booting stage" 2022-11-10 10:23:04 +00:00
ykhung
4c0de2685a Verify and reset invalid scheduled battery level in the booting stage
The minimum scheduled battery level is changed from 5% to 10% in T, if
users upgrade the device from S to T with invalid level value in
the Settings.Global, we have to force reset it into the new minimum
battery level value.

Bug: 258243197
Test: make RunSettingsRoboTests
Change-Id: I89003120aaebcff78d4bf3f7ae8b54e97adae3c8
2022-11-10 16:38:18 +08:00
“Ankita
a6ff897cf3 AppClone: Add preference to display new page Cloned Apps
Also adds a faeture flag and controller class for this page.
UX path: Apps > Cloned Apps

Bug: 249916503
Bug: 248235441
Test: manual
Test: make RunSettingsRoboTests -j30 ROBOTEST_FILTER=AppsPreferenceControllerTest
Test: make RunSettingsRoboTests -j30 ROBOTEST_FILTER=ClonedAppsPreferenceControllerTest
Change-Id: I2f68f4365ce08481c7db7bfdda4fdffc369321a9
2022-11-10 06:52:44 +00:00
Florian Mayer
ce1749310b Add intent to open MemtagPage
Test: adb shell am start -a android.settings.MEMTAG_SETTINGS
Bug: 258070068
Change-Id: I8c9df2eb98edee0345323bc160457d7a91a3fd99
2022-11-09 18:21:45 -08:00
Oli Thompson
c30c7f5d58 Merge "Fix forgot password layout text alignment and change theme to show correct text colour in night mode Test: manual test Fixes: b/206761685" 2022-11-09 14:55:41 +00:00
Oli Thompson
cff34af3d4 Fix forgot password layout text alignment and change theme to show
correct text colour in night mode
Test: manual test
Fixes: b/206761685

Change-Id: Idccf40357a6b5f33ece89bc2772fa6ca51e4596a
2022-11-08 13:41:53 +00:00
TreeHugger Robot
7b63700b0b Merge "Guard FallbackHome activity behind permission" into tm-qpr-dev 2022-11-04 03:00:05 +00:00
Xuanang Zhao
0cc0149f18 Fix an untranslated text in the settings shortcut
Test: manual
Change-Id: I6211d2e7d14386771e85291b79c8140a320fd5ba
2022-11-02 13:55:21 +08:00
Kuan Wang
45be6bae05 Listen ACTION_BATTERY_LEVEL_CHANGED in Settings and fetch usage data
when battery is full charged.

Bug: 253395332
Test: make RunSettingsRoboTests + manually
Change-Id: Ie83e5f319074ff404a600c4eb375fbecad651b6d
2022-11-01 06:39:21 +00:00
Kuan Wang
df05a1378b Add hourly period job to fetch battery usage data in Settings.
Bug: 253395332
Test: make RunSettingsRoboTests + manually
Change-Id: I342066a30fed202e5013b8c2554f36d991975c3e
2022-11-01 02:05:14 +00:00
TreeHugger Robot
7ced3c187d Merge "Use correct menu key highlights for safety center" into tm-qpr-dev am: b0f38d29d2 am: dada288047
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20209766

Change-Id: Ie4bec451717442032411cad912810cbfd7a69baa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 11:24:47 +00:00
TreeHugger Robot
b0f38d29d2 Merge "Use correct menu key highlights for safety center" into tm-qpr-dev 2022-10-31 10:04:02 +00:00
George Chan
f9b20b0fe9 Revert "Added transparency-metadata display."
Revert "Added new transparency metadata enum."

Revert submission 19943929-mba_ui

Reason for revert: Feature cancelled due to product direction change.
Reverted Changes:
I7b3e296c3:Added transparency metadata feature flag.
Ia4b2f294b:Added new transparency metadata enum.
If7822100a:Added transparency-metadata display.

Change-Id: If50179b4a485587dcf49a2c9e2ae18a69b173794
2022-10-26 20:54:02 +00:00
Simon Wingrove
ea8a4adc91 Use correct menu key highlights for safety center
Adds a menu key for the security deeplink, and adds a remapping to
ensure the correct key is used depending on if safety center is
available or not.

Bug: 253553761
Test: manually
Change-Id: I8ed9efd084e1fdfa298be1826a215218c84b1f4a
2022-10-24 10:08:52 +01:00
Kuan Wang
fb136dd8d5 Copy BatteryUsageLoaderService and BatteryBroadcastReceiver from
SettingsGoogle to Settings and rename them to BatteryUsageDataLoader and
BatteryUsageBroadcastReceiver.

Bug: 253395332
Test: make RunSettingsRoboTests
Change-Id: Ide7c572a7df826ca576223c297b8ec78c45cc94e
2022-10-19 02:19:57 +00:00
Han Xu
9cf026692b Add BROWSABLE for most Settings Activities
so they can be opened via webpage link.

Bug: 254213622
Test: manual
Change-Id: Ic52895ce0577246a2bbf9536fce1e10ab41f7605
Merged-In: Ic52895ce0577246a2bbf9536fce1e10ab41f7605
(cherry picked from commit b7d1077ada)
2022-10-18 09:31:08 +00:00
Kuan Wang
0a0ba915ca Copy BatterySettingsContentProvider from SettingsIntelligence to Settings and rename it to BatteryUsageContentProvider.
Bug: 253395332
Test: make RunSettingsRoboTests + manually
Change-Id: Ib6c2240cd065f6e29393e13b7231bba7afd2d850
2022-10-18 02:26:23 +00:00
Chaohui Wang
bb4d0250bb Add AppStoragePreference for Spa
Also add new SettingsSpaUnitTests.

Bug: 236346018
Test: Manual with App Info page
Test: atest SettingsSpaUnitTests
Test: Manual compare generated Settings AndroidManifest.xml
Change-Id: I9f6b2ca446fd3d196792a876a6e4049c5cf97a1d
2022-10-13 17:21:08 +08:00
Zekan Qian
430ed29262 Unsupport DebugActivity & EntryProvider in Settings.
Set SpaEnvironment (with Spp only) in SettingsApplication
Remove DebugActivity & EntryProvider from Settings.

Bug: 244122804
Test: manual - build Settings
Change-Id: I18e97c80b4f1d6094bb22cf28e7e84ea325869d7
2022-10-13 12:53:48 +08:00
TreeHugger Robot
8e74ee57d1 Merge "Fix CtsIntentSignatureTestCases android.signature.cts.intent.IntentTest#shouldNotFindUnexpectedIntents" 2022-10-05 06:20:55 +00:00
menghanli
0d2c2c44be Fix CtsIntentSignatureTestCases android.signature.cts.intent.IntentTest#shouldNotFindUnexpectedIntents
Bug: 250821898
Bug: 249430287
Test: atest CtsIntentSignatureTestCases:android.signature.cts.intent.IntentTest#shouldNotFindUnexpectedIntents
Change-Id: Ice1c525b104ac6029d242a182f3d9a5d0a73706d
2022-10-05 12:14:53 +08:00
TreeHugger Robot
da6919f87c Merge "Disable eager initialization of Jetpack libraries" 2022-10-05 03:34:57 +00:00
Tsung-Mao Fang
fa7394afbc Disable eager initialization of Jetpack libraries
Test: atest -c SettingsUnitTests
Fix: 208883742
Fix: 213872855
Change-Id: Ia2a2f88939d16c84255404696ea159c4a01b3bb5
2022-10-04 15:51:45 +08:00
Menghan Li
ff2961b593 Merge "Provide ability to link to color motion page" 2022-10-04 04:43:28 +00:00
Howard Chen
f53c2f91f5 Merge "Export the DSULoader activity" 2022-10-04 00:49:12 +00:00
menghanli
3c62eb1cf0 Provide ability to link to color motion page
Bug: 249430287
Test: manual test
Change-Id: I4150bef5b6c1be2f50a74dc21546e88d8b2400f4
2022-10-04 08:14:58 +08:00
Menghan Li
b8f7c7624a Merge "Provide ability to link to text reading page" 2022-10-03 23:47:55 +00:00
Tsung-Mao Fang
8b8d3b45f9 Guard FallbackHome activity behind permission
An attacker can launch FallbackHome of the Settings app
to reset unlock time. This would prevent the device from
sleeping because it runs the following code:
PowerManager#userActivity().

However, running PowerManager.userActivity() requires
android.permission.DEVICE_POWER or android.permission.USER_ACTIVITY.

So, let's add a permission to guard this activity.

Test: Rebuilt a rom and see no side effect.
Bug: 246543238
Change-Id: I23a1e352f76cbec3e8c07a1b58b94615f2779121
(cherry picked from commit f5062c2df8)
2022-10-03 06:37:46 +00:00
Tsung-Mao Fang
f5062c2df8 Guard FallbackHome activity behind permission
An attacker can launch FallbackHome of the Settings app
to reset unlock time. This would prevent the device from
sleeping because it runs the following code:
PowerManager#userActivity().

However, running PowerManager.userActivity() requires
android.permission.DEVICE_POWER or android.permission.USER_ACTIVITY.

So, let's add a permission to guard this activity.

Test: Rebuilt a rom and see no side effect.
Bug: 246543238
Change-Id: I23a1e352f76cbec3e8c07a1b58b94615f2779121
2022-09-30 15:31:47 +08:00
Viesturs Zarins
f1d115c38e Fix fragment class for WIFI_SAVED_NETWORK_SETTINGS.
Has been broken since the old access points implementation was deleted.

Change-Id: I8575e6f79644d0a79de9e041cb30b0ccbc0e57d3
Bug: 246772836
2022-09-29 09:36:50 +00:00
Howard Chen
5d7f3e6c4d Export the DSULoader activity
Test: adb shell am start-activity \
  -n com.android.settings/com.android.settings.development.DSULoader\
  -a android.settings.development.START_DSU_LOADER
Bug: 245029263
Change-Id: I0f3afd92b4c896823ebfa4729397d38bf853bbbe
2022-09-29 16:36:09 +08:00
Xuanang Zhao
82f23fe8df Merge "Add auto rotation icon resource." 2022-09-28 15:09:55 +00:00
Xuanang Zhao
569932474e Add auto rotation icon resource.
Change-Id: Ica60e4239439b01f1545bae6f1d809e29a4a9033
Bug: 248428429
Test: manual
2022-09-28 17:55:01 +08:00