aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-06-05 23:52:02 +0530
committerGitHub <noreply@github.com>2020-06-05 23:52:02 +0530
commit448e70704a8197f625889de4d75ea99f7ada100d (patch)
tree2fab42e262ecfb1ddaccf1675d091ec895c2cca9
parent2ab44a45803a98a69379b865b711a1325f999ef7 (diff)
AccessibilityAutofill: disable the service above Oreo (#827)
-rw-r--r--app/src/main/AndroidManifest.xml1
-rw-r--r--app/src/main/res/values-v23/bools.xml4
-rw-r--r--app/src/main/res/values-v26/bools.xml4
-rw-r--r--app/src/main/res/values/bools.xml2
4 files changed, 10 insertions, 1 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 4ef8a83d..8463c352 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -66,6 +66,7 @@
<service
android:name=".autofill.AutofillService"
+ android:enabled="@bool/enable_accessibility_autofill"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
diff --git a/app/src/main/res/values-v23/bools.xml b/app/src/main/res/values-v23/bools.xml
new file mode 100644
index 00000000..3b1e273c
--- /dev/null
+++ b/app/src/main/res/values-v23/bools.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <bool name="enable_accessibility_autofill">true</bool>
+</resources>
diff --git a/app/src/main/res/values-v26/bools.xml b/app/src/main/res/values-v26/bools.xml
new file mode 100644
index 00000000..86ab6c8e
--- /dev/null
+++ b/app/src/main/res/values-v26/bools.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <bool name="enable_accessibility_autofill">false</bool>
+</resources>
diff --git a/app/src/main/res/values/bools.xml b/app/src/main/res/values/bools.xml
index de1623ff..420e5c23 100644
--- a/app/src/main/res/values/bools.xml
+++ b/app/src/main/res/values/bools.xml
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <bool name="leak_canary_allow_in_non_debuggable_build">true</bool>
+ <bool name="leak_canary_allow_in_non_debuggable_build">true</bool>
</resources>