Exclude webcam and MIDI USB preferences from requiring auth challenge

Webcam / MIDI don't transfer any persistent data to the host device,
so it is okay to not guard it by an auth challenge. Auth challenge for
webcam use increases friction and reduces usability.

Bug: 349370229

Flag: com.android.settings.flags.exclude_webcam_auth_challenge

Test: Check when the flag is enabled, webcam / MIDI doesn't require auth
Test: Settings robolectric tests

Change-Id: Id4c97a635a4c0a9ed14f88fbdda2743e2371dd10
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
This commit is contained in:
Jayant Chowdhary
2024-06-25 20:15:37 +00:00
parent ac7236ec0f
commit cf9eee0bb5
3 changed files with 85 additions and 30 deletions

View File

@@ -38,3 +38,13 @@ flag {
purpose: PURPOSE_BUGFIX
}
}
flag {
name: "exclude_webcam_auth_challenge"
namespace: "safety_center"
description: "Gates whether to exclude webcam from USB preferences auth challenge."
bug: "349370229"
metadata {
purpose: PURPOSE_BUGFIX
}
}