david-lev fork #1

Open
opened 2024-03-24 00:07:24 +01:00 by Benjamin_Loison · 1 comment

https://github.com/david-lev/PlaystoreDownloader

https://github.com/ClaudiuGeorgiu/PlaystoreDownloader/compare/master...david-lev:PlaystoreDownloader:master

https://github.com/ClaudiuGeorgiu/PlaystoreDownloader/compare/master...david-lev:PlaystoreDownloader:master#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R6

It seems that it refers to the following message on program start:

image

Note that on the latest version (3.0) there is no more this message and I have not been limited except with the save feature.

While it seems that I correctly retrieve the ANDROID_ID, as it seems to be the GSF ID. Uplink > Register GSF ID:

Register GSF ID (please wait 10 seconds)...

# Success

GSF ID:       CENSORED
User Agent:   Android-Finsky/CENSORED (api=3,versionCode=CENSORED,sdk=30,device=CENSORED,hardware=qcom,product=CENSORED,platformVersionRelease=11,model=SM-CENSORED,buildId=CENSORED)

I tried unsuccessfully with Uplink > Download App to use token as AUTH_TOKEN:

Download...

# Success

* com.carrefour.fid.android-1804.apk [42.7 MB]:
  https://play.googleapis.com/download/by-token/download?token=CENSORED&cpn=CENSORED

* com.carrefour.fid.android-1804_config.arm64_v8a.apk [12.9 MB]:
  https://play.googleapis.com/download/by-token/download?token=CENSORED&cpn=CENSORED

After Uplink > Web login flow, got:

# Success

Account:      CENSORED@gmail.com
Name:         Benjamin Loison
Email:        CENSORED@gmail.com
Auth Token:   CENSORED
Services:     hist, lh2, youtube, talk, cl, multilogin, mail, cloudconsole, android

With this Auth Token with https://github.com/david-lev/PlaystoreDownloader I am able to make it work. However, is the downloaded .apk enough while possibly need multiple files (see Benjamin_Loison/AuroraStore/issues/5)?

Well it does not seem to download all necessary APKs for com.carrefour.fid.android, as I got:

screenshot

Using the option:

-s, --split-apks      Download the additional split apks along with the application (if any)

solves this issue.

Once have analyzed other forks, should contribute with a pull request.
Should consider merging last before archiving commits.

Related to Benjamin_Loison/AuroraStore/issues/6.

https://github.com/david-lev/PlaystoreDownloader https://github.com/ClaudiuGeorgiu/PlaystoreDownloader/compare/master...david-lev:PlaystoreDownloader:master https://github.com/ClaudiuGeorgiu/PlaystoreDownloader/compare/master...david-lev:PlaystoreDownloader:master#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R6 It seems that it refers to the following message on program start: ![image](/attachments/a0657b5a-5c6c-4f2b-960c-68a51829a2b3) Note that on [the latest version (3.0)](https://raccoon.onyxbits.de/dummydroid/) there is no more this message and I have not been limited except with the save feature. While it seems that I correctly retrieve the `ANDROID_ID`, as [it seems to be the GSF ID](https://medium.com/testableapple/how-to-download-apk-from-play-store-2634c0c67620). `Uplink` > `Register GSF ID`: ``` Register GSF ID (please wait 10 seconds)... # Success GSF ID: CENSORED User Agent: Android-Finsky/CENSORED (api=3,versionCode=CENSORED,sdk=30,device=CENSORED,hardware=qcom,product=CENSORED,platformVersionRelease=11,model=SM-CENSORED,buildId=CENSORED) ``` I tried unsuccessfully with `Uplink` > `Download App` to use `token` as `AUTH_TOKEN`: ``` Download... # Success * com.carrefour.fid.android-1804.apk [42.7 MB]: https://play.googleapis.com/download/by-token/download?token=CENSORED&cpn=CENSORED * com.carrefour.fid.android-1804_config.arm64_v8a.apk [12.9 MB]: https://play.googleapis.com/download/by-token/download?token=CENSORED&cpn=CENSORED ``` After `Uplink` > `Web login flow`, got: ``` # Success Account: CENSORED@gmail.com Name: Benjamin Loison Email: CENSORED@gmail.com Auth Token: CENSORED Services: hist, lh2, youtube, talk, cl, multilogin, mail, cloudconsole, android ``` With this `Auth Token` with https://github.com/david-lev/PlaystoreDownloader I am able to make it work. However, is the downloaded `.apk` enough while possibly need multiple files (see [Benjamin_Loison/AuroraStore/issues/5](https://gitlab.com/Benjamin_Loison/AuroraStore/-/issues/5))? Well it does not seem to download all necessary APKs for `com.carrefour.fid.android`, as I got: ![screenshot](/attachments/cc3c8be5-ba63-4c74-8a2e-e7078210a281) Using the option: ``` -s, --split-apks Download the additional split apks along with the application (if any) ``` solves this issue. Once have analyzed other forks, should contribute with a pull request. Should consider merging last before archiving commits. Related to [Benjamin_Loison/AuroraStore/issues/6](https://gitlab.com/Benjamin_Loison/AuroraStore/-/issues/6).
Author
Owner

Get with and without -s:

pipenv run python download.py fr.gouv.franceidentite
24/03/2024 15:20:14> [ERROR][playstore.playstore.Playstore][_download_with_progress()] DownloadAuthCookie was not received for 'fr.gouv.franceidentite'
24/03/2024 15:20:14> [ERROR][playstore.playstore.Playstore][download()] Error during the download: DownloadAuthCookie was not received for 'fr.gouv.franceidentite'
Traceback (most recent call last):
  File "/home/benjamin/PlaystoreDownloader/playstore/playstore.py", line 382, in _download_with_progress
    cookie = delivery_data.downloadAuthCookie[0]
  File "/home/benjamin/.local/share/virtualenvs/PlaystoreDownloader-g2I0ZLNl/lib/python3.10/site-packages/google/protobuf/internal/containers.py", line 209, in __getitem__
    return self._values[key]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/benjamin/PlaystoreDownloader/playstore/playstore.py", line 717, in download
    list(
  File "/home/benjamin/PlaystoreDownloader/playstore/playstore.py", line 387, in _download_with_progress
    raise RuntimeError(
RuntimeError: DownloadAuthCookie was not received for 'fr.gouv.franceidentite'
24/03/2024 15:20:14> [CRITICAL][__main__][main()] Error when downloading 'fr.gouv.franceidentite'

Considering before archiving commits seem to make sense.

Get with and without `-s`: ```bash pipenv run python download.py fr.gouv.franceidentite ``` ``` 24/03/2024 15:20:14> [ERROR][playstore.playstore.Playstore][_download_with_progress()] DownloadAuthCookie was not received for 'fr.gouv.franceidentite' 24/03/2024 15:20:14> [ERROR][playstore.playstore.Playstore][download()] Error during the download: DownloadAuthCookie was not received for 'fr.gouv.franceidentite' Traceback (most recent call last): File "/home/benjamin/PlaystoreDownloader/playstore/playstore.py", line 382, in _download_with_progress cookie = delivery_data.downloadAuthCookie[0] File "/home/benjamin/.local/share/virtualenvs/PlaystoreDownloader-g2I0ZLNl/lib/python3.10/site-packages/google/protobuf/internal/containers.py", line 209, in __getitem__ return self._values[key] IndexError: list index out of range During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/benjamin/PlaystoreDownloader/playstore/playstore.py", line 717, in download list( File "/home/benjamin/PlaystoreDownloader/playstore/playstore.py", line 387, in _download_with_progress raise RuntimeError( RuntimeError: DownloadAuthCookie was not received for 'fr.gouv.franceidentite' 24/03/2024 15:20:14> [CRITICAL][__main__][main()] Error when downloading 'fr.gouv.franceidentite' ``` Considering before archiving commits seem to make sense.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Benjamin_Loison/PlaystoreDownloader#1
No description provided.