Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,943 Members 52,647 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 5
Posts: 41
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 5
Posts: 41
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 5
Posts: 41
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 5
Posts: 41
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 1928
Posts: 13,262
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Android Wear App Review: Command Google Now with Commandr – XDA Developer TV

OK Google. Make Me a sandwich. How many times have you … more

Play Your Hits and Learn the Lyrics with NextGen Music Player

There are plenty of music players for Android available in Play Store. They … more

Control Your Toast Notifications with SlicedToasts

Toasts are delicious, even in their Android flavor. In Android, toast doesn’t lead … more

Rotation Lets You Take Full Control of Your Device’s Orientation Settings

To be brutally honest, the native options for screen … more