Add support for bundled apks

They will be available under 'splits' key in result.
This commit is contained in:
kar 2020-01-10 09:14:04 +01:00
parent fc0cc3a902
commit f74790a9ee

View File

@ -553,12 +553,20 @@ class GooglePlayAPI(object):
result = {}
result['docId'] = packageName
result['additionalData'] = []
result['splits'] = []
downloadUrl = response.payload.deliveryResponse.appDeliveryData.downloadUrl
cookie = response.payload.deliveryResponse.appDeliveryData.downloadAuthCookie[0]
cookies = {
str(cookie.name): str(cookie.value)
}
result['file'] = self._deliver_data(downloadUrl, cookies)
for split in response.payload.deliveryResponse.appDeliveryData.split:
a = {}
a['name'] = split.name
a['file'] = self._deliver_data(split.downloadUrl, None)
result['splits'].append(a)
if not expansion_files:
return result
for obb in response.payload.deliveryResponse.appDeliveryData.additionalFile: