Skip to content

Commit

Permalink
improve google play usage documentation (#180)
Browse files Browse the repository at this point in the history
on how to get oauth token step by step to get aas token
  • Loading branch information
codeurimpulsif authored May 16, 2024
1 parent a2748ca commit 755edb4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion USAGE-google-play.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
To download directly from the Google Play Store, first you'll have to obtain an OAuth token by visiting the Google [embedded setup page](https://accounts.google.com/EmbeddedSetup/identifier?flowName=EmbeddedSetupAndroid) and opening the browser debugging console, logging in, and looking for the `oauth_token` cookie being set on your browser. It will be present in the last requests being made and start with "oauth2_4/". Copy this value. It can only be used once, in order to obtain the AAS token which can be used subsequently. To obtain this token:
To download directly from the Google Play Store, first you'll have to obtain an OAuth token by visiting the Google [embedded setup page](https://accounts.google.com/EmbeddedSetup/identifier?flowName=EmbeddedSetupAndroid) and:

- Opening the browser debugging console on `Network` tab
- Logging in
- If the "Google Terms of Services" pop up, click `I agree` (it can hang up on this step but it's not important)
- Select the last request from `accounts.google.com` in the `Network` tab
- Select the `Cookies` tab of this request
- One of the response cookie is `oauth_token`
- Copy the `value` field (it must start with `oauth2_4/`)

It can only be used once, in order to obtain the AAS token which can be used subsequently. To obtain this token:

```shell
apkeep -e '[email protected]' --oauth-token 'oauth2_4/...'
Expand Down

0 comments on commit 755edb4

Please sign in to comment.