private void autoUpgradeOlderAccountsWithIssuerPrefix() {
    for (AccountIndex index : getAccounts()) {
      if (index.getIssuer() != null) {
        Log.wtf(LOCAL_TAG, "Existing new-style account detected during account upgrade process: "
            + index.toString());
        continue;
      }

      for (String issuer : AUTO_UPGRADE_ISSUERS) {
        if (index.getName().startsWith(issuer + ":")) {
          Log.d(LOCAL_TAG, "Auto-upgrading old-style account: " + index.toString());
          ContentValues values = new ContentValues();
          values.put(ISSUER_COLUMN, issuer);
          int affectedRows = mDatabase.update(TABLE_NAME, values, whereClause(index), null);
          if (affectedRows > 1) {
            Log.wtf(LOCAL_TAG, "Unexpectedly changed multiple rows while auto-upgrading account: "
                + index.toString());
          }
          continue;
        }
      }
    }
  }
Lists the names of all accounts.
java/com/google/android/apps/authenticator/otp/AccountDb.java