From c300a01bf49eb22a4a40fe9553380c0ed331197c Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 11 Jan 2022 17:01:22 -0800 Subject: [PATCH] Remove FDE support from accessibility settings With FDE (Full Disk Encryption), secure start-up (i.e. requiring a PIN / pattern / password to boot the device) was incompatible with accessibility services. Thus, the accessibility settings would ask the user to disable secure start-up when enabling an accessibility service. Now that FDE support has been removed in favor of FBE (File Based Encryption), this is no longer necessary. Remove it. Bug: 208476087 Change-Id: I5f6e512f223df63e1b4d1c181fc8b3fe683dcd5f (cherry picked from commit b4060ef65b69723ed1bf2411dfe0b928fe062958) Merged-In: I5f6e512f223df63e1b4d1c181fc8b3fe683dcd5f --- ...e_accessibility_service_dialog_content.xml | 8 --- res/values/strings.xml | 24 ------- .../AccessibilityServiceWarning.java | 22 ------ ...ccessibilityServicePreferenceFragment.java | 69 ++----------------- .../settings/password/ChooseLockGeneric.java | 30 -------- 5 files changed, 4 insertions(+), 149 deletions(-) diff --git a/res/layout/enable_accessibility_service_dialog_content.xml b/res/layout/enable_accessibility_service_dialog_content.xml index 6b3220bc13e..3fe932cd12a 100644 --- a/res/layout/enable_accessibility_service_dialog_content.xml +++ b/res/layout/enable_accessibility_service_dialog_content.xml @@ -42,14 +42,6 @@ android:id="@+id/permissionDialog_title" style="@style/AccessibilityDialogTitle" /> - - Because an app is obscuring a permission request, Settings can’t verify your response. - - If you turn on %1$s, your device won’t use your screen lock to enhance - data encryption. - - Because you\u2019ve turned on an accessibility service, - your device won’t use your screen lock to enhance data encryption. - - - Because turning on %1$s affects data encryption, you need to confirm your pattern. - - - - Because turning on %1$s affects data encryption, you need to confirm your PIN. - - - - Because turning on %1$s affects data encryption, you need to confirm your password. -