5,605,311 Members 38,802 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How do I pull files from the stock ROM?

Tip us?
 
Hizpanick
Old
#1  
Member - OP
Thanks Meter 3
Posts: 38
Join Date: Oct 2010
Question [Q] How do I pull files from the stock ROM?

I rooted my phone and installed a mod for the e-mail application. I made sure to make a copy of the original email.apk in case I wanted to go back. Well, I didn't realize the mod had a deodexed apk of the e-mail app so I forgot to make a backup of the odex file and the mod deleted the original odex file. I downloaded the stock ROM from here:

http://forum.xda-developers.com/show....php?t=1391174

Is there anyway I can pull the e-mail.apk and e-mail.odex from this ROM so I can push it back to my phone?
 
yoft1
Old
#2  
Senior Member
Thanks Meter 220
Posts: 394
Join Date: Feb 2012
Quote:
Originally Posted by Hizpanick View Post
I rooted my phone and installed a mod for the e-mail application. I made sure to make a copy of the original email.apk in case I wanted to go back. Well, I didn't realize the mod had a deodexed apk of the e-mail app so I forgot to make a backup of the odex file and the mod deleted the original odex file. I downloaded the stock ROM from here:

http://forum.xda-developers.com/show....php?t=1391174

Is there anyway I can pull the e-mail.apk and e-mail.odex from this ROM so I can push it back to my phone?
If you look through that stock rom, the email.apk and it's corresponding odex is in /system/app
 
Hizpanick
Old
#3  
Member - OP
Thanks Meter 3
Posts: 38
Join Date: Oct 2010
Quote:
Originally Posted by yoft1 View Post
If you look through that stock rom, the email.apk and it's corresponding odex is in /system/app
Thanks! How do I look through the stock rom? I've tried using ext2explore, but I am not able to access the files in the rom.
 
iLeopard
Old
#4  
Senior Member
Thanks Meter 170
Posts: 851
Join Date: Dec 2011
Location: College Station

 
DONATE TO ME
Quote:
Originally Posted by Hizpanick View Post
Thanks! How do I look through the stock rom? I've tried using ext2explore, but I am not able to access the files in the rom.
Aevyou trying to view the rom files you downloaded through your phone? If so you can't you have to do that on a pc. If you're trying to view system files then root explorer will do fine
 
Hizpanick
Old
#5  
Member - OP
Thanks Meter 3
Posts: 38
Join Date: Oct 2010
Quote:
Originally Posted by iLeopard View Post
Aevyou trying to view the rom files you downloaded through your phone? If so you can't you have to do that on a pc. If you're trying to view system files then root explorer will do fine
I downloaded SGH-T989_TMB_1_T989UVKL1_CL799405_REV00.rar, which contained system.img (508MB) and T989UVKL1_HOME_SGH-T989user_CL799405_REV00.tar.md5 (574MB). Can I open these files with my PC and extract e-mail.apk and e-mail.odex? If so, what program do I use? If not, how can i retrieve the files I want from them?
 
yoft1
Old
#6  
Senior Member
Thanks Meter 220
Posts: 394
Join Date: Feb 2012
Quote:
Originally Posted by Hizpanick View Post
I downloaded SGH-T989_TMB_1_T989UVKL1_CL799405_REV00.rar, which contained system.img (508MB) and T989UVKL1_HOME_SGH-T989user_CL799405_REV00.tar.md5 (574MB). Can I open these files with my PC and extract e-mail.apk and e-mail.odex? If so, what program do I use? If not, how can i retrieve the files I want from them?
Okay since it's a tar file its a bit more complicated. DO you have a nandroid of your rom before you replaced the email app? If so, backup your current rom, restore to your old backup, go to /system/app and copy the odex file to your sd card. Then restore to your new backup and put the odex file back in /system/app.
 
iLeopard
Old
#7  
Senior Member
Thanks Meter 170
Posts: 851
Join Date: Dec 2011
Location: College Station

 
DONATE TO ME
Quote:
Originally Posted by Hizpanick View Post
I downloaded SGH-T989_TMB_1_T989UVKL1_CL799405_REV00.rar, which contained system.img (508MB) and T989UVKL1_HOME_SGH-T989user_CL799405_REV00.tar.md5 (574MB). Can I open these files with my PC and extract e-mail.apk and e-mail.odex? If so, what program do I use? If not, how can i retrieve the files I want from them?
If its an .img you should be able to mount it. Are you if using linux or Mac you should be able to mount without any additional software but if using windows you will have to extract or fund software that will mount drive images on the pc
 
Hizpanick
Old
#8  
Member - OP
Thanks Meter 3
Posts: 38
Join Date: Oct 2010
OK, so I figured out how to do this.

First, I went to this thread:
http://forum.xda-developers.com/show...6&postcount=41
I downloaded the Convert_sgs2img.exe util file and pointed it to system.img. I then was able to open the converted img file using Linux Reader http://www.diskinternals.com/linux-reader/ by mounting it within the program. I was then able to get any file I wanted!
 
charlieb620
Old
#9  
charlieb620's Avatar
Senior Member
Thanks Meter 1908
Posts: 13,207
Join Date: Jan 2009
Location: Philadelphia, PA
When I want certain apks I go through root explorer and just copy/paste. Seems to be the easiest way. You can do that or adb pull.
GOLD DEV M8




Flashed GPE RUU & Want to Return Back To Sense? Follow Steps Below:
CLICK HERE

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Cloupload is a Beautiful and Fully Functional CloudApp Client for Android

If you’re a Mac OS X user who frequently uploads screenshots, … more

Microsoft Finally Brings Remote Desktop to Windows Phone

You may recall that back in October of last year, Microsoft released itsofficial … more

SideControl Gains New Powers through Xposed

You may recall that a little overa month ago, we first talked about SideCutsby XDA Forum … more

Leak Points to Windows Start Menu’s Return as Soon as August

About a month ago at this year’s Build conference, Microsoft … more