Invalidate auth tokens as needed

This seems to fix issues with Google Maps stopping to connect to internet after adding an Account.
This commit is contained in:
Marvin W 2019-10-23 01:38:37 +02:00
parent 855b4c6d4e
commit b0724f1243
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A

View File

@ -17,6 +17,7 @@
package org.microg.gms.auth;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
@ -167,6 +168,7 @@ public class AuthManagerServiceImpl extends IAuthManagerService.Stub {
packageName = PackageUtils.getAndCheckCallingPackage(context, packageName, extras.getInt(KEY_CALLER_UID, 0), extras.getInt(KEY_CALLER_PID, 0));
Log.d(TAG, "clearToken: token:" + token + " extras:" + extras);
AccountManager.get(context).invalidateAuthToken(AuthConstants.DEFAULT_ACCOUNT_TYPE, token);
return null;
}