0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-24 04:05:13 +00:00

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;
}