Throw exception on refreshing token in third party builds

This commit is contained in:
M66B 2019-06-18 21:09:08 +02:00
parent 1f989b2499
commit 6e54c67429
1 changed files with 3 additions and 0 deletions

View File

@ -279,6 +279,9 @@ public class ConnectionHelper {
static String refreshToken(Context context, String type, String name, String current)
throws AuthenticatorException, OperationCanceledException, IOException {
if (!Helper.hasValidFingerprint(context))
throw new IllegalArgumentException("Please see the FAQ question 109");
AccountManager am = AccountManager.get(context);
Account[] accounts = am.getAccountsByType(type);
for (Account account : accounts)