Merge "Re-added support for deprecated BIND_AUTOFILL permission."
This commit is contained in:
committed by
Android (Google) Code Review
commit
956dd9451b
@@ -195,6 +195,14 @@ public class DefaultAutofillPicker extends DefaultAppPickerFragment {
|
|||||||
candidates.add(new DefaultAppInfo(context, mPm, mUserId, new ComponentName(
|
candidates.add(new DefaultAppInfo(context, mPm, mUserId, new ComponentName(
|
||||||
info.serviceInfo.packageName, info.serviceInfo.name)));
|
info.serviceInfo.packageName, info.serviceInfo.name)));
|
||||||
}
|
}
|
||||||
|
if (Manifest.permission.BIND_AUTOFILL.equals(permission)) {
|
||||||
|
// Let it go for now...
|
||||||
|
Log.w(TAG, "AutofillService from '" + info.serviceInfo.packageName
|
||||||
|
+ "' uses unsupported permission " + Manifest.permission.BIND_AUTOFILL
|
||||||
|
+ ". It works for now, but might not be supported on future releases");
|
||||||
|
candidates.add(new DefaultAppInfo(context, mPm, mUserId, new ComponentName(
|
||||||
|
info.serviceInfo.packageName, info.serviceInfo.name)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return candidates;
|
return candidates;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user