yeriomin / token-dispenser

Stores email-password pairs, gives out Google Play Store tokens
GNU General Public License v2.0
62 stars 36 forks source link

Possible to change device? #19

Closed matlink closed 6 years ago

matlink commented 6 years ago

Is there a way to change the arch of the requested apk? I would like for example token-dispenser to give tokens corresponding to a armeabi-v7a device.

yeriomin commented 6 years ago

Tokens are not linked to device info. Device info is inferred from X-DFE-Device-Id HTTP header supplied with every API request.

Token dispenser is used by Yalp Store which would give out identical search results and incompatible apps for all devices except Xiaomi MI5 (which is used in token dispenser just because the play-store-api library requires it).

matlink commented 6 years ago

It looks like the issues 'app not compatible with this device' I got comes from the fact that someone asked for a token with a different device just before I try to download an app with my token for another device. It looks like there is a race condition and that Google remembers the device-id corresponding to the token it gave.

matlink commented 6 years ago

Moreover, this issue never happens when I'm the only one to use a token-dispenser instance.