Extracting apk files from img files

Got a problem with your Scroll? Unsure how to do something? Ask here! (ANY Model)

Extracting apk files from img files

Postby Fonefixer » January 22nd, 2011, 9:38 am

The topic says it all, but how do I do it?

I have an emulator on my PC running a virtual machine with android market installed. I can successfully download and install and run apps onto the emulator to try them out. Given the fact that my market is busted on my scroll my idea is to extract the apk files from the emulator, copy them to my scroll and use them.

At the moment, I have various img files in the emulator avd folder and winzip 15 is set to extract img files, however, it doesnt like the android ones. Is there a program I can use to view the contents (and extract) from these img files?

If its a simple answer, ill apologise in advance - you could say i must be having a "blonde moment", if I had any hair that is!

Any help appreciated
Dave

Employees are like mules. Some you stand in front of and coax them along with a carrot. Some you stand behind and kick them in the arse. The key to management is knowing which mules are which!
User avatar
Fonefixer
Honoured Contributor
Honoured Contributor
 
Posts: 1372
Joined: January 2nd, 2011, 8:31 am
Location: Vertical & Breathing
Real Name: Dave
Scroll Version: Scroll Excel

Re: Extracting apk files from img files

Postby Diego » January 22nd, 2011, 9:50 am

Try Nero, ISO Buster, Magic ISO, etc
ImageImageThere's only one way off, might as well enjoy the ride..
Image
_________________________________________________________
firmware v1.00 kernel 2.6.29 Andriod 2.1
User avatar
Diego
Donator
Donator
 
Posts: 474
Joined: December 28th, 2010, 12:50 pm
Location: Naphoria

Re: Extracting apk files from img files

Postby Fonefixer » January 22nd, 2011, 10:25 am

Thanks Diego, ive had some success.....

I have nero9, that wouldnt open the files. Tried ultraiso and it will open the files on the sdcard.img but not the others. I then installed andexplorer on the emulator and tried to look for the apk files downloaded from the market. Ther idea being to copy/paste them with andexplorer onto the sdcard.img then extract with ultraiso.

But... I cant find where the market downloads the apk file to. Going round in circles I think... coffee break then have another look. By the way, its a 1.6 virtual machine im running.
Last edited by Fonefixer on January 22nd, 2011, 12:13 pm, edited 2 times in total.
Dave

Employees are like mules. Some you stand in front of and coax them along with a carrot. Some you stand behind and kick them in the arse. The key to management is knowing which mules are which!
User avatar
Fonefixer
Honoured Contributor
Honoured Contributor
 
Posts: 1372
Joined: January 2nd, 2011, 8:31 am
Location: Vertical & Breathing
Real Name: Dave
Scroll Version: Scroll Excel

Re: Extracting apk files from img files

Postby Charlie » January 22nd, 2011, 10:49 am

try wunyaffs.exe (tip i got from jsn--) to open .img files

the apps should be in data/app
" Just because you could, doesn't mean you should. "
User avatar
Charlie
Trusted Developer
Trusted Developer
 
Posts: 2471
Joined: December 28th, 2010, 8:41 pm
Location: UK
Real Name: Charlie
Scroll Version: Moto G 16GB (4.4.2 rooted)
Nexus 7 - G1 (4.4.2 rooted)
Huawei Y300 (4.1.1 rooted - TWRP)
MK809 (4.1.1 rooted - CWM)
Raspberry Pi B (512MB)

Retired: Excel (CM10) & 1st Gen' (2.1) Tab'.

Re: Extracting apk files from img files

Postby nemka » January 22nd, 2011, 12:44 pm

Use Android Commander or ADB to download files from emulator.
Market save files to /cache
Installed apps are in /data/app
nemka
Junior Scroller
Junior Scroller
 
Posts: 23
Joined: January 21st, 2011, 3:12 pm
Location: Hungary
Scroll Version: Model: S1008
Kernel: 2.6.29
OS: Android 2.3.7 (CyanogenMod 7.1)

Re: Extracting apk files from img files

Postby Warpedflash » January 22nd, 2011, 1:34 pm

why would you try this to fix the market? we have tried swapping multiple vending.apk files around the things I doubt thats the issue... especially as the emulator device has a completely different set of device IDs etc
Firmware Version: 1.01 - Latest known update - Locked Bootloader - No Market
viewtopic.php?f=27&t=125 - How to Root your Scroll
viewtopic.php?f=27&t=127 - How to Install Clockwork
viewtopic.php?f=27&t=147 - How to Replace build.prop
User avatar
Warpedflash
Scroll Genuis
Scroll Genuis
 
Posts: 723
Joined: January 4th, 2011, 5:36 pm

Re: Extracting apk files from img files

Postby Fonefixer » January 22nd, 2011, 3:45 pm

Warpedflash: Because its fun to try!

However....Nemka et al.... despite downloading 10 apps in the market, installing and running them on the emulator, there are no apk files in the cache & data/apps or anywhere else except the system/app folder ( and they are only system apps) I have tried various net solutions all to no avail. I have the market running on a 1.6 and 2.1 emulator with the same results.

Unless, the emulator isnt "rooted" and there are files there that I cannot see.

Hmmm.... this is going to bug me for days now!
Dave

Employees are like mules. Some you stand in front of and coax them along with a carrot. Some you stand behind and kick them in the arse. The key to management is knowing which mules are which!
User avatar
Fonefixer
Honoured Contributor
Honoured Contributor
 
Posts: 1372
Joined: January 2nd, 2011, 8:31 am
Location: Vertical & Breathing
Real Name: Dave
Scroll Version: Scroll Excel

Re: Extracting apk files from img files

Postby stevel05 » January 22nd, 2011, 3:59 pm

Hi Fonefixer,

Your idea got me to thinking, so I installed the market on an emulator. then astro filemanager which lets you backup the installed apps to the virtual sdcard.

I initially thought that that would be it as you can email the apk's directly from astro, unfortunately the scroll would only preview them from within gmail and the installation manager wouldn't parse the file. So I downloaded swiFTP using the emulator emailed and downloaded on the PC copied to the scroll via USB (normal long winded way).
Installed that on the scroll and AndFTP on the emulator. Now I can FTP between the emulators backed up APK's and the scroll.

Thanks for the idea.

Steve
Model S1008 Firmware 1.01 Kernel 2.6.29
stevel05
Donator
Donator
 
Posts: 30
Joined: January 5th, 2011, 6:15 pm
Location: Swindon UK

Re: Extracting apk files from img files

Postby Fonefixer » January 22nd, 2011, 4:28 pm

Well done Steve! I knew the idea was right, just diddnt know how to implement it.

Are you using the 1.6 emulator or a 2.1 version with the market apk? Ill have to look at this more tomorrow as I have to take SWMBO out for dinner (KFC doing 2 for 1 lol)
Dave

Employees are like mules. Some you stand in front of and coax them along with a carrot. Some you stand behind and kick them in the arse. The key to management is knowing which mules are which!
User avatar
Fonefixer
Honoured Contributor
Honoured Contributor
 
Posts: 1372
Joined: January 2nd, 2011, 8:31 am
Location: Vertical & Breathing
Real Name: Dave
Scroll Version: Scroll Excel

Re: Extracting apk files from img files

Postby stevel05 » January 22nd, 2011, 4:34 pm

I hope she appreciates you. KFC guaranteed good night out :)

I'm using 1.6 as I found the set up instructions for that, If I come across an app that won't load, I may try 2.1.

Steve
Model S1008 Firmware 1.01 Kernel 2.6.29
stevel05
Donator
Donator
 
Posts: 30
Joined: January 5th, 2011, 6:15 pm
Location: Swindon UK

Next

Return to HELP REQUESTS (all models)

Who is online

Users browsing this forum: No registered users and 16 guests

cron