在设置-帐号中,点击添加帐号的时候,在待选择帐号列表中有重复项
问题分析
主要是LegacyEmailAuthenticatorService和LegacyEasAuthenticatorService这两个有问题,
解决方案:
frameworks/base/service/core/java/com/android/server/IntentResolver.java
过滤掉上面所说的两个
match = filter.match(action, resolvedType, scheme, data,
categories, TAG);
if (match >= 0) {
if (debug) Slog.v(TAG, " Filter matched! match=0x" +
Integer.toHexString(match) + " hasDefault="
+ filter.hasCategory(Intent.CATEGORY_DEFAULT));
if (!defaultOnly ||
filter.hasCategory(Intent.CATEGORY_DEFAULT)) {
//Add by ran.zhou for Defect-1761549 20160322 Begin
if
(filter.toString().contains("LegacyEmailAuthenticatorService") ||
filter.toString().contains("LegacyEasAuthenticatorService")) {
continue;
}
//Add by ran.zhou for Defect-1761549 20160322 End
final R oneResult = newResult(filter, match, userId);
if (oneResult != null) {
dest.add(oneResult);
if (debug) {
dumpFilter(logPrintWriter, " ", filter);
logPrintWriter.flush();
filter.dump(logPrinter, " ");
}
}
}