Jump to Navigation

Me on Twitter

  • @Eyal_Lezmy pas seulement l'équipe mais potentiellement tte la communauté. Question d'intérêt public en qq sorte ;-) 12 years 34 weeks ago
  • @ParisAndroidUG Quel est le moyen privilégié de poser une question android au #PAUG ? J'ai beau chercher... pas de forum-like sur paug.fr... 12 years 34 weeks ago
  • @malsini documentation is (c) by @agoncal. I suggest u have a look at his book... Also we talked about articles at http://t.co/NZE3z6zG 12 years 34 weeks ago
  • A voir absolument : Animez vos pages HTML5, Martin Gorner, Google (Atelier Open Data Google / Dataconnexions) http://t.co/6quwgLu6 12 years 35 weeks ago
  • Yesterday ended a great 3-day Java EE 6 training course by @agoncal with @alexlewando and others. Group agrees on the quality of the class ! 12 years 35 weeks ago
  • @romainguy @ParisAndroidUG Retour d'expérience depuis les débuts d'android, qu'est-ce qui marche et ne marche pas ? Le futur d'android ? 12 years 35 weeks ago
  • #NegativeSpace A bit hard to use but a very ingenious puzzle game for #android that deserves a try http://t.co/71GvLfmV 12 years 36 weeks ago
  • @louistouzet Bravo pour cette belle appli qui monte, qui monte ! #AngryBirds https://t.co/i5ppeyvr http://t.co/3xBnMBBs 12 years 36 weeks ago
  • 2 dev java/android cherchent équipe / projet #dataconnexions 12 years 37 weeks ago
  • @Lim_Ace too bad it doesn't display correctly on my #android... Can't read anything 12 years 38 weeks ago

Where Android Market stores the downloaded .apk

Today I ran into a small problem that might happen sometimes : trying to benefit from a 2 day-only offer to download for free Duke Nukem 3d (just for fun, I don't think it's going to be the killer app this year), I found out that my phone had not enough free memory to install it (Market told me : 56MB required).

After having removed several apps from the memory to free enough space to install the game - and after a first failed attempt to download the 28MB archive - I was able to download the .apk from the Market (that was "phase 1 : download").

Immediately after the file was downloaded, I started up my Open Advanced Task Killer to free more memory for the installation process.

Unfortunately I got the very bad idea to kill the Android Market process, while it was already installing the app ("phase 2 : installation").

From there, even though Duke Nukem 3d was listed in my installed apps, I only had the option to install it, not to launch nor uninstall it. Even launching the Market again was not triggering the installation anymore.

S**t happens.

 

Luckily, after a short introspection into the SD card and device filesystem, I was able to get the downloaded .apk file and start the app without using more (of my limited) bandwith.

Here is what I could observe :

  • the original downloaded .apk was stored as /cache/downloadfile-2.apk, and fully functional
  • there was /data/app/com.machineworksnorthwest.duke3d.zip, probably interrupted reconstruction or copy of the apk into its final destination

And the procedure I used to get it working (type the given commands) :

  • adb shell (adb is a command from the Android sdk, which is therefore required)
  • su (root access is required, look for it on xda forums)
  • cat /cache/downloadfile-2.apk > /sdcard/com.machineworksnorthwest.duke3d.apk (this simply copies from cache to SD card)
  • Finally, use any file browser like Astro to go to the root of the SD card and click on the .apk to uninstall/install/start it

 

I didn't look for more details, as I already got what I wanted, but this event made me curious about the internals of the Android Market app, and I might come back later to add more to this article...

 

Duke Nukem 3d app icon

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • E-Mail addresses are hidden with reCAPTCHA Mailhide.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>. The supported tag styles are: <foo>, [foo].
  • Twitter-style #hashtags are linked to search.twitter.com.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.