Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 254cf256 authored by Dmitry Dementyev's avatar Dmitry Dementyev Committed by Android Build Coastguard Worker
Browse files

Remove authenticator data if it was disabled.

Test: manual
Bug: 343440463
Flag: EXEMPT bugfix
(cherry picked from commit ddfc078a)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ea8c1c48e1da6cdcbec8f4d12abbb4429e9efe79)
Merged-In: I36bd6bf101da03c9c30a6d3c0080b801e7898bc6
Change-Id: I36bd6bf101da03c9c30a6d3c0080b801e7898bc6
parent 6aa1b4fb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1171,6 +1171,10 @@ public class AccountManagerService
                            obsoleteAuthType.add(type);
                            // And delete it from the TABLE_META
                            accountsDb.deleteMetaByAuthTypeAndUid(type, uid);
                        } else if (knownUid != null && knownUid != uid) {
                            Slog.w(TAG, "authenticator no longer exist for type " + type);
                            obsoleteAuthType.add(type);
                            accountsDb.deleteMetaByAuthTypeAndUid(type, uid);
                        }
                    }
                }