mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-24 12:15:12 +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:
parent
855b4c6d4e
commit
b0724f1243
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
package org.microg.gms.auth;
|
package org.microg.gms.auth;
|
||||||
|
|
||||||
import android.accounts.Account;
|
import android.accounts.Account;
|
||||||
|
import android.accounts.AccountManager;
|
||||||
import android.app.NotificationManager;
|
import android.app.NotificationManager;
|
||||||
import android.app.PendingIntent;
|
import android.app.PendingIntent;
|
||||||
import android.content.Context;
|
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));
|
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);
|
Log.d(TAG, "clearToken: token:" + token + " extras:" + extras);
|
||||||
|
AccountManager.get(context).invalidateAuthToken(AuthConstants.DEFAULT_ACCOUNT_TYPE, token);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue