Fix A11y features blocked by IT admin can be bypassed using a11y shortcuts
Root cause: Setting preference uses RestrictedPreferenceHelper to block the non-approved service by RestrictedLockInternal.checkIfRestrictionEnforced. The volume keys shortcut editor mode does not apply the way in AccessibilityShortcutChooserActivity. Solution: Add RestrictedLockUtils.checkIfRestrictionEnforced into AccessibilityTarget to disable the non-approved service. Show IT admin dialog to align the setting preference experience. Bug: 254223085 Test: atest AccessibilityShortcutChooserActivityTest Change-Id: I2c1a8379a230ab6b21e72ba8751e880fb6654650
Loading
Please register or sign in to comment