Removed deprecated BIND_AUTOFILL permission.
Test: make -j100 RunSettingsRoboTests
Bug: 37563972
Change-Id: I423f9c6234e8c1898ed66b22e1078c6f91c58422
diff --git a/src/com/android/settings/applications/defaultapps/DefaultAutofillPicker.java b/src/com/android/settings/applications/defaultapps/DefaultAutofillPicker.java
index d674522..34d1338 100644
--- a/src/com/android/settings/applications/defaultapps/DefaultAutofillPicker.java
+++ b/src/com/android/settings/applications/defaultapps/DefaultAutofillPicker.java
@@ -189,9 +189,7 @@
.queryIntentServices(AUTOFILL_PROBE, PackageManager.GET_META_DATA);
for (ResolveInfo info : resolveInfos) {
final String permission = info.serviceInfo.permission;
- // TODO(b/37563972): remove BIND_AUTOFILL once clients use BIND_AUTOFILL_SERVICE
- if (Manifest.permission.BIND_AUTOFILL_SERVICE.equals(permission)
- || Manifest.permission.BIND_AUTOFILL.equals(permission)) {
+ if (Manifest.permission.BIND_AUTOFILL_SERVICE.equals(permission)) {
candidates.add(new DefaultAppInfo(mPm, mUserId, new ComponentName(
info.serviceInfo.packageName, info.serviceInfo.name)));
}