tejado / pgoapi

Pokemon Go API lib
Other
1.4k stars 445 forks source link

Help on other API #247

Open tconn87 opened 2 years ago

tconn87 commented 2 years ago

I'm wanting to reverse an API for a different game. I found your code in auth_google.py and was hopeful I could either re-use the python library or do something similar. Does this login method still work? #What is the source of the variable data to login to google? Where do the values come from and how can I find them for this other game?

tejado commented 2 years ago

You need the oauth2 information inside the app. My code used gpsoauth for the authentication to google: https://github.com/simon-weber/gpsoauth

tconn87 commented 2 years ago

Sorry, I meant where inside the app did you find the information? I pulled an older version of the app (before it was compiled with il2cpp), and I can see the C# source with dnSpy. In the latest version I can see Java source with dex2jar and jd-gui. In the Java I've found a variable set to a "...apps.googleusercontent.com". I've found a couple others in the AndroidManifest.xml that I don't think I need. I know the package name of my app. I'm not sure where the GOOGLE_ANDROID_ID and GOOGLE_ANDROID_SIG information is found. When you did this for PoGo was that information in the Java code or in the Unity Assembly-CSharp.dll, or somewhere else? Is there some other software you used besides dnSpy and dex2jar?

Thank you for your response, I'll look through that link and their info today.