So recently I’ve been having quiet an experience with downloading apk files from the android market and through the ADC2 review application. The ADC2 application actually just uses the same downloader that the market does – so that’s a quick reason as to why so many other people are also having this trouble.
Anyway the fix that I have been using is the downloading snippet I posted previously in conjunction with the authtoken snippet.
The one thing I needed to find was the assetId
, which conviently was located in an xml file of the currently being reviewed application. This makes it so you don’t have to fire up wireshark or tcpdump to grab the assetId
.
Simple load up adb or the terminal on your phone and navigate to, /data/data/com.google.android.challenge/shared_prefs
and view the file com.google.android.challenge.xml
, the contents will look something like this:
1 | <?xml version='1.0' encoding='utf-8' standalone='yes' ?> |
We can easily see above that the string value of current.asset.id
is the assetId
we need. This will let you easily download the apk files to your computer and install them to your phone in no time :) Hopefully this will help some people who are having the same trouble I was!
Also, just a little note - this will let you obviously save the apk files opposed to not retaining them after submitting a review. This could also be accomplished by doing the old method of a pull from /data/app
used for backing up normal applications - since the ADC2 apps are saved to the same location. Enjoy!