Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1542b344 authored by menghanli's avatar menghanli
Browse files

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
parent 5987bdf4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment