Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloads not working #271

Closed
yeriomin opened this issue Sep 6, 2017 · 9 comments
Closed

Downloads not working #271

yeriomin opened this issue Sep 6, 2017 · 9 comments
Milestone

Comments

@yeriomin
Copy link
Owner

yeriomin commented Sep 6, 2017

The protocol has changed. Download links are no longer returned.

For technical details see #270.

Looking for a solution.

@onyxbits
Copy link

onyxbits commented Sep 7, 2017

@nagayev
Copy link

nagayev commented Sep 7, 2017

adapt to Google the latest protocol:
onyxbits/raccoon4@416fb54

@yeriomin
Copy link
Owner Author

yeriomin commented Sep 8, 2017

@onyxbits I have a solution. yeriomin/play-store-api@02a4ebd

New download workflow:

  1. purchase request which returns a download token. The request is not different from the old way.
  2. log request which puts the app into user's app library. Response is empty and probably irrelevant.
  3. delivery request with the download token in the query.

@onyxbits
Copy link

onyxbits commented Sep 8, 2017

@yeriomin

You can skip step 2. If the DocV2 says that a checkout flow is required, simply do a "purchase" and discard the answer, then do a delivery. Appearently, purchase is suppose to register an app with your account.

See onyxbits/raccoon4@0aa9ceb

@yeriomin
Copy link
Owner Author

yeriomin commented Sep 8, 2017

@onyxbits

Appearently, purchase is suppose to register an app with your account.

I see. It wasn't doing that before.

If the DocV2 says that a checkout flow is required, simply do a "purchase" and discard the answer, then do a delivery.

If I don't supply the download token from the purchase response to delivery, no download link is returned. This might depend on the reported version of gapps or something.

@onyxbits
Copy link

onyxbits commented Sep 8, 2017

@yeriomin
I can't confirm that, but I only tested with the Raccoon default device profiles so far.
I'm not quite sure, why you should need anything from purchase in delivery, though. But hey ... it's Google code. One should probably not assume that the name of something (still) has anything to do with it's semantics.

@shamolvshu
Copy link

Thanks the author contribution,
@sharifStrudent if you not pull the author least commit, you can change the the User-Agent: "Android-Finsky/4.4.3 (api=3,versionCode=8016014,sdk=23,device=hammerhead,hardware=hammerhead,product=hammerhead)".

@yeriomin yeriomin added this to the v0.25 milestone Sep 13, 2017
@yeriomin
Copy link
Owner Author

@onyxbits @shamolvshu
On older devices purchase is still required. On api>=21 delivery is enough.

@zelleb
Copy link

zelleb commented Sep 15, 2017

I can't download paid apps after updating to 0.25

09-15 21:25:03.991: W/InputMethodManagerService(1221):  Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@17eaf45 attribute=android.view.inputmethod.EditorInfo@b5d69a, token = android.os.BinderProxy@685bef8
09-15 21:25:04.298: D/OpenGLRenderer(23474):  endAllActiveAnimators on 0x73e4f52800 (MenuPopupWindow$MenuDropDownListView) with handle 0x73e521a3a0
09-15 21:25:04.615: I/MSM-irqbalance(679):  Decided to move IRQ224 from CPU0 to CPU3
09-15 21:25:05.725: V/com.github.yeriomin.yalpstore.DetailsActivity(23847):  Resuming activity
09-15 21:25:07.686: D/WifiStateMachine(1221):  updateCapabilities for config:Lucerna1-5false,false
09-15 21:25:07.940: I/com.github.yeriomin.yalpstore.NativeHttpClientAdapter(23847):  Requesting https://android.clients.google.com/fdfe/purchase
09-15 21:25:08.036: I/com.github.yeriomin.yalpstore.NativeHttpClientAdapter(23847):  HTTP result code 500
09-15 21:25:08.037: E/com.github.yeriomin.yalpstore.NativeHttpClientAdapter(23847):  Exception java.io.FileNotFoundException https://android.clients.google.com/fdfe/purchase
09-15 21:25:08.060: D/com.github.yeriomin.yalpstore.fragment.details.ButtonDownload$LocalPurchaseTask(23847):  com.github.yeriomin.playstoreapi.GooglePlayException caught during a google api request: Server error
09-15 21:25:08.072: W/InputMethodManagerService(1221):  Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@a3e9116 attribute=null, token = android.os.BinderProxy@22b3b2c
09-15 21:25:09.667: I/MSM-irqbalance(679):  Decided to move IRQ200 from CPU0 to CPU3
09-15 21:25:10.630: V/com.github.yeriomin.yalpstore.DetailsActivity(23847):  Pausing activity
09-15 21:25:11.455: V/com.github.yeriomin.yalpstore.DetailsActivity(23847):  Stopping activity
09-15 21:25:11.575: W/WindowManager(1221):  Attempted to remove non-existing token: android.os.Binder@33c1631
09-15 21:25:13.756: D/WifiStateMachine(1221):  updateCapabilities for config:Lucerna1-5false,false
09-15 21:25:14.668: I/MSM-irqbalance(679):  Decided to move IRQ47 from CPU0 to CPU3

yeriomin added a commit that referenced this issue Sep 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants