Can't login to Google account
I use two factor auth. Created app password at https://myaccount.google.com/apppasswords but apkeep says that it's incorrect. Same with my real password
Same without 2-factor.
Strange, I just tested it and it works for me. Did you ensure to escape the password properly?
For the record, I'm using an app password.
Also, did you enter your full email address as the username?
I tried on an account without 2 factor auth, and the Google Login still doesn't work for me.
Could not log in to Google Play. Please check your credentials and try again later.
apkpure version works fine
./apkeep -a com.instagram.android .
Downloading com.instagram.android...
google play version fails
./apkeep -d GooglePlay --username [email protected] --password SuperSecretSauce -a com.instagram.android .
Could not log in to Google Play. Please check your credentials and try again later.
@ryanerwin for accounts with 2FA you need to create an app password in account settings. Did you try with that?
This test was on an account WITHOUT 2 factor auth
Ah, sorry, misread that. Alright, I'm pressed for time this week so I'll have to check what's going on next week with this.
No worries.
If you need any additional debug / reproduce information to get to the bottom of it, please let me know.
Tried both username and with full email of two different accounts w/o 2-factor. Ps and it will be great if our passwords would not be saved in system logs(bash history at least).
@ryanerwin I just removed 2FA on my test account and generated a new 25 character password which includes A-Z, a-z, 0-9 and special characters. I was unable to reproduce the bug. Can you try to see if the download works when you:
- Generate a new password with the format above (I used keypassxc for the password generation, but different software may include a different set of what it considers "special characters")
- Create a new google account with the same password as your current account
Alright, I'm able to reproduce this on a new account I created. I was wondering if this was because I had never linked an Android device to that account, and thus never went through any Play Store TOS agreement dialogue. This doesn't seem to be the case, though, since I just added a device to the new account and I'm still getting that invalid credentials error. I'll have to inspect the traffic and see if there's a deeper error that isn't propagating up to the user.
Inspecting the traffic, I'm seeing the following (token redacted):
Error=NeedsBrowser
Url=https://accounts.google.com/signin/continue?sarp=1&scc=1&continue=https://accounts.google.com/o/android/auth?hl%3Den_US_en%26xoauth_display_name%3DAndroid%2BLogin%2BService%26source%3DAndroid%2BLogin&plt=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ErrorDetail=To access your account, you must sign in on the web. Touch Next to start browser sign-in.
Looking this up on Google led me to this page: https://github.com/nviennot/android-checkin/issues/3
Looks like
- "Allow less secure apps" setting needs to be turned on: https://www.google.com/settings/security/lesssecureapps
- "Continue" needs to be clicked here: https://accounts.google.com/b/0/DisplayUnlockCaptcha
Just tried this, still getting the same error though. Might need to propagate, I'll give it a little time before trying something different.
This might be an issue where Google is forcing people through a login prompt that requires you to enter your phone number before proceeding. I'm going to work on propagating the error up through https://github.com/Hainish/rs-google-play/tree/master/gpapi to the user.
I've enabled "less secure apps" in the account I was testing with, however even that isn't enough...
Still getting:
Could not log in to Google Play. Please check your credentials and try again later.
@ryanerwin have you also done this: https://accounts.google.com/b/0/DisplayUnlockCaptcha
For reference, here is how the Python library handles this error: https://github.com/NoMore201/googleplay-api/blob/664c399f8196e1eb7d2fcda4af34e5dc1fca0f20/gpapi/googleplay.py#L234
I usually follow their conventions. I'm going to add this and have it propagate up to the user. I'm unsure how else to deal with this, it seems like a problem on Google's side.
@exstrim401 @L34T @ryanerwin
When running from the latest master commit, are you now seeing the following error message?
Security check is needed, try to visit https://accounts.google.com/b/0/DisplayUnlockCaptcha to unlock, or setup an app-specific password
When running from the latest
mastercommit, are you now seeing the following error message?Security check is needed, try to visit https://accounts.google.com/b/0/DisplayUnlockCaptcha to unlock, or setup an app-specific password
tag 0.5.0-16-g5a360ed
- requires 'libssl-dev' package to build
- Got the message, account access switched. Nothing changed.
- Tryed debugging proxy but with env http/https_proxy have no success. Maybe you could suggest best way to use custom proxy for debugging apkeep?
@Hainish
apkeep -a com.instagram.android . -d GooglePlay -u '[email protected]' -p *********
Could not log in to Google Play. Please check your credentials and try again later.
Still Error=NeedsBrowser
Both clicking https://www.google.com/settings/security/lesssecureapps and https://accounts.google.com/b/0/DisplayUnlockCaptcha didn't help.
Solution here: https://github.com/NoMore201/googleplay-api/pull/153 To fix it you can only PR in https://github.com/dweinstein/rs-google-play/blob/master/gpapi/src/lib.rs
0a84406d4f1ce8f4dec7507aab4e2a7880716307 updates dependencies to implement the solution in https://github.com/EFForg/apkeep/issues/9#issuecomment-966260364. I was unable to reproduce the problem, so someone else will have to test it the current master fixes the problem.
I just hit this problem as well with the 0.8.0 version, running this command:
apkeep-x86_64-pc-windows-msvc -a com.instagram.android -d google-play -u `
[email protected] -p PASSWORD .
I do not have any two factor set up, and I also have not turned on any "less secure apps". If it helps, I have an alternate tool that works as expected:
> googleplay -a com.instagram.android -v 321704040
POST https://android.clients.google.com/auth
GET https://android.clients.google.com/fdfe/delivery?doc=com.instagram.android&vc=321704040
GET https://play.googleapis.com/download/by-token/download?token=AOTCm0QnrByVvUgm4lid9XKdtUjaZrhz7SH26fYgeTRu8Hgjqj5zjhRtlyjA-kX-6J04mi4tCGSSUkeNLPby5nFUnpyZ7cGVmpJLbL7OVwzdpoPgFhSyEpLANjJeeRSeCQpkkhag3Av3Hy9cT0wpzmEd4maOTvAKZ_TqZz78tEU7Q189U1OA2-De5xDeU-GtFOp-5KSJx3V02Z0tCkmZbbqRuqwkCtV55z_2qC34IkUZB5M2iG_qyRBsBd9dE1t0PQhMORtYA_b6jI191QDXJizB00sikCQozi7xPF02vRXfS2gmxdBb7DYb1imkID39DiYLBANCxFD-63Go-pfNGQN8GQ-a1ZMpKgEmdE00NxlmBDV0uXcFB5zGVfCitMcQ4u7dzAl1JbI6TuSVwcKHA0xKnHBSij59WPUm&cpn=coVyBkf83hk2dhCU&server=boq
7.9% 4.145 MB 8.290 MB/s
https://github.com/89z/googleplay
Until I get an account that can effectively debug this, it's hard for me to track the issue down.
When I turn off 2FA, I can download apps with my password.
When 2FA is enabled, I can create an app password and that works just as well.
Same thing happens to me, I have an account with 2FA and I set up a app password:
$ ./apkeep-x86_64-unknown-linux-gnu -d GooglePlay --username [email protected] --password apppassword -a com.a2a.energia .
0a84406 updates dependencies to implement the solution in #9 (comment). I was unable to reproduce the problem, so someone else will have to test it the current master fixes the problem.
It doesn't.
I have tried to install the latest commit with: cargo install --git https://github.com/EFForg/apkeep.git
And I still get the error:
$ apkeep -d google-play --username [email protected] --password myapppassword -a com.a2a.energia .
Could not log in to Google Play. Please check your credentials and try again later.
The account has 2FA and I'm using an app password.
Until I get an account that can effectively debug this, it's hard for me to track the issue down.
Didn't you say that you were able to reproduce this with a new account?
Alright, I'm able to reproduce this on a new account I created.
0a84406 updates dependencies to implement the solution in #9 (comment). I was unable to reproduce the problem, so someone else will have to test it the current master fixes the problem.
It doesn't.
I have tried to install the latest commit with:
cargo install --git https://github.com/EFForg/apkeep.gitAnd I still get the error:
$ apkeep -d google-play --username [email protected] --password myapppassword -a com.a2a.energia . Could not log in to Google Play. Please check your credentials and try again later.The account has 2FA and I'm using an app password.
Until I get an account that can effectively debug this, it's hard for me to track the issue down.
Didn't you say that you were able to reproduce this with a new account?
Alright, I'm able to reproduce this on a new account I created.
same here
version: 0.8.0
Access type: 2FA
Was able to reproduce with a specific condition. I am running a Wireguard server, a UDP based VPN protocol. When turned on and pointing to 1.1.1.1/1.0.0.1 I can't even call www.googleapis.com.
ping: www.googleapis.com: Temporary failure in name resolution
On APKeep:
Could not log in to Google Play. Please check your credentials and try again later.
When turned off, I am able to call and download a test .apk package without issue.
I wasn't able to grab all info I needed as to which particular failure during resolution occurred (my internet is flaky at the moment), but that was the main block on my end as to why I could not login.
It's not a resolution because that insinuates DNS problems for everyone on this issue, but maybe try pinging www.googleapis.com and see what shakes (or doesn't shake).
Tried both app password and own account password but getting same login error for Google play ApkPure download works fine.
I don't have a device associated with my google account Incase that makes a difference.
same problems remain with v0.13.0