Hi.
For everyone which uses the “Less Secure Apps” to access Gmail.
G-Mail is discontinuing support for “Less Secure Apps” and forcing everyone over into OAuth2 as of June 2020
I use Fairmail which supports OAuth but I can’t login to Google because GmsAuthenticator raises this errors.
Have anyone gmail with OAuth on /e/ up and running?
04-01 00:37:22.298 15886 15886 D AccountChooser: selected account Account {name=ACCOUNT, type=com.google}
04-01 00:37:22.320 13346 13346 I fairemail: Result class=ActivitySetup action=null request=262149 result=-1
04-01 00:37:22.321 13346 13346 I fairemail: authAccount=ACCOUNT (String)
04-01 00:37:22.321 13346 13346 I fairemail: accountType=com.google (String)
04-01 00:37:22.321 13346 13346 I fairemail: data=null
04-01 00:37:22.322 13346 13346 I fairemail: Result class=FragmentGmail action=null request=5 result=-1
04-01 00:37:22.322 13346 13346 I fairemail: authAccount=ACCOUNT (String)
04-01 00:37:22.322 13346 13346 I fairemail: accountType=com.google (String)
04-01 00:37:22.322 13346 13346 I fairemail: data=null
04-01 00:37:22.338 4262 4275 D GmsAuthenticator: getAuthToken: Account {name=ACCOUNT, type=com.google}, oauth2:https://mail.google.com/, Bundle[{androidPackageName=eu.faircode.email, callerPid=13346, callerUid=10082}]
04-01 00:37:22.360 4262 4275 D GmsAuthManager: token present, but expired
04-01 00:37:22.381 15886 15902 D OpenGLRenderer: endAllActiveAnimators on 0x7f717fa400 (RippleDrawable) with handle 0x7f857d8080
04-01 00:37:22.391 4262 4275 D GmsHttpFormClient: -- Request --
04-01 00:37:22.391 4262 4275 D GmsHttpFormClient: androidId=3d049375b30cbbb9&app=eu.faircode.email&client_sig=17ba15c1af...&callerPkg=com.google.android.gms&callerSig=38918...&device_country=at&Email=ACCOUNT&google_play_services_version=19420000&is_called_from_account_manager=1&_opt_is_called_from_account_manager=1&lang=de_AT&operatorCountry=at&sdk_version=25&service=oauth2%3Ahttps%3A%2F%2Fmail.google.com%2F&source=android&Token=aas_et%2FAK...
04-01 00:37:22.569 4262 4275 W GmsAuthenticator:
04-01 00:37:22.569 4262 4275 W GmsAuthenticator: java.io.IOException: Error=DeviceManagementRequired
04-01 00:37:22.569 4262 4275 W GmsAuthenticator: at org.microg.gms.common.HttpFormClient.request()
04-01 00:37:22.569 4262 4275 W GmsAuthenticator: at org.microg.gms.auth.AuthRequest.getResponse()
04-01 00:37:22.569 4262 4275 W GmsAuthenticator: at org.microg.gms.auth.AuthManager.requestAuth()
04-01 00:37:22.569 4262 4275 W GmsAuthenticator: at org.microg.gms.auth.loginservice.AccountAuthenticator.getAuthToken()
04-01 00:37:22.569 4262 4275 W GmsAuthenticator: at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:244)
04-01 00:37:22.569 4262 4275 W GmsAuthenticator: at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:113)
04-01 00:37:22.569 4262 4275 W GmsAuthenticator: at android.os.Binder.execTransact(Binder.java:565)
Regards
Aleks
Regain your privacy! Adopt /e/ the unGoogled mobile OS and online services