How to extract files from ROM - Galaxy S II Q&A, Help & Troubleshooting

Hi,
As the new ICS 4.0.3 seems to have gotten rid of the libraries required for call recording, I am willing to extract the relevant libraries from a 2.3.6 ROM, replace and give it a shot. I already have a few of them with me, for example Official DXKL3.
I need to extract the following 3 files -
system/lib/libaudiopolicy.so
system/lib/libaudioflinger.so
system/lib/libaudio.so
How can I extract these files from a ROM?

On you pc or on you phone click extract here. And will be exctracted about 6 files. Navigate to system app and find wht app you want. Copy and replace. I guess I understood right what you mean.

Get a utility program like 7Zip, IZarc, WinRar on your PC & open up the zip/tarfile & you can see the individual files & extract same.
However...
What you're attempting to do will not work. Different framework.
Points for thinking outside the box tho.

Thanks... Though when I use 7z, it only extracts zImage,factoryfs, etc., only a handful of files. I cannot see the individual files in the file system. Also 7z cannot extract these files anymore...

Ahh I think I was talking about already "cooked" ROM, and you guys are talking about the source? Sorry I am very new to the terminologies used. If that is the case I will check if I can find these files in the source tarball.

Try another program if 7Zip doesn't work. Try IZarc. I can see every file in the roms I have with it.

MistahBungle said:
Try another program if 7Zip doesn't work. Try IZarc. I can see every file in the roms I have with it.
Click to expand...
Click to collapse
I tried but still couldn't open XXLPQ ROM with IZarc. Thanks anyway...

hirak99 said:
Hi,
As the new ICS 4.0.3 seems to have gotten rid of the libraries required for call recording, I am willing to extract the relevant libraries from a 2.3.6 ROM, replace and give it a shot. I already have a few of them with me, for example Official DXKL3.
I need to extract the following 3 files -
system/lib/libaudiopolicy.so
system/lib/libaudioflinger.so
system/lib/libaudio.so
How can I extract these files from a ROM?
Click to expand...
Click to collapse
to open *.img file inside the rom download diskinternal linux reader and mount the img file inside the app.
tried and tested when i needed to copy a file from another rom.

Solution you find here :
h__p://sconcauteam.com/forum/index.php?threads/how-to-windows-extract-deodex-sign-and-zipalign-an-official-rom.1325/

Related

Extract *.apk?

If I have a *.apk that I download, is there anyway to backup/extract it?
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
ghostfaced said:
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
Click to expand...
Click to collapse
Right but how do I find the *.apk if I am downloading it off of the market?
apps are located in data/app/
There are also various apps in the market that will backup apps.
I use appmonster incedently.
7zip can extract and view contents of an apk without renaming.
backup and reinstalling apps....
view the first link in my signature.
I used MyBackup Pro to do a backup of my apps onto the sd card, then I used ASTRO file manager to navigate to /sdcard/rerware/MyBackup/AllAppsBackups where I found the file LastBackupApps.zip. I then used androzip or something similar to unzip that file and it contained the apk for every one of the apps I backed up.
how to extract .apk.p files
ghostfaced said:
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
Click to expand...
Click to collapse
I have a zip file with .apk.p files in it which are exracted with package_extract_file in the updater script. Is there a way to manually extract these, since renaming to .zip doesn't help if I open them with any unzipper program?
Thanks
lxrose said:
I have a zip file with .apk.p files in it which are exracted with package_extract_file in the updater script. Is there a way to manually extract these, since renaming to .zip doesn't help if I open them with any unzipper program?
Thanks
Click to expand...
Click to collapse
I believe the files you are referring to - the files ending in ".p" - are "patch" files. They only appear in the OTA download .zip file, and they are worthless to you. They are not complete files, but just enough data to patch the corresponding 1.5 app .apk so that it turns into the 2.1 version.
If you want the complete .apk files which they correspond to, just download the Leak-V3 .zip file, extract the "system.img" file, and then unpack that file using the "unyaffs" utility (search for it, you'll find it at code.Google.com).
bftb0
bftb0 said:
I believe the files you are referring to - the files ending in ".p" - are "patch" files. They only appear in the OTA download .zip file, and they are worthless to you. They are not complete files, but just enough data to patch the corresponding 1.5 app .apk so that it turns into the 2.1 version.
If you want the complete .apk files which they correspond to, just download the Leak-V3 .zip file, extract the "system.img" file, and then unpack that file using the "unyaffs" utility (search for it, you'll find it at code.Google.com).
bftb0
Click to expand...
Click to collapse
Thanks for the info. I thought I can update the apk files manually, because from recovery it doesn't work (it is a rooted image, so signature not accepted) and there are some fixes in the new update that I wanted to give a chance.
Unable to install ddx1.14.jar in my HTC wildire
I hve downloaded dexeder.jar file in to my SD card. but i can't install it in my HTC wildfire...
it shows an error...
"ddx1.14.jar cannot be installed because critical information is missing from the application file (MIDlet-Name). Please contact the application provider for more information."
Help me Pls..... Thanks in advance.....
apk download
did you search for the apk online?

[Q] Finding or extracting tones from the SGS2??

Is there some places where I can find all the stock tones for the SGS2 as one complete zip, or each folder as a individual zip so I can download them?.
And if not, is there then a way for me to either find them on the phone and copy them over, or as the last resort is there some way for me to extract them from the image files we use to flash through Odin?
Any help or hints in relation to this is more then welcome....
And thanks in advance.
Use Root Explorer some other file explorer by which you can have access to all directories.
Navigate to /System/media/audio
You can find "ringtones", "notifications", "alarms" folders. Copy to wherever you want.
i am not rooted, can some 1 up load the sms, notification n ringtone.
Download any official (based) rom and extract them yourself from the zip. Same location.
I have them, PM me your email address.
TheGhost1233 said:
Download any official (based) rom and extract them yourself from the zip. Same location.
Click to expand...
Click to collapse
I have an official rom laying around on my laptop and I only have *.img files inside.
Could someone post them up for me also. Im missing a load of then default tones for some reason when I upgraded my ROM. Thanks.
Would also like this.
I will zip em all up shortly and post them
MeX_DK said:
I will zip em all up shortly and post them
Click to expand...
Click to collapse
Didn't mean to jump ya but:
http://www.mediafire.com/?hma2y999mfuapbm
Already had them.
These are NOT flashable, i could probably make em so but I already had them all zipped. What I do is just put them in the GAPPS so everytime I flash a new CyanogenMod the audio gets copied in as well.
that link is dead

[Q] What version & how to tell

Hello,
How can I tell what version a *.apk file is before I move it to the phone and open it?
I have many email.apk versions and would like to see, which version it is in Win$ows before I try to open and install it on my Vibrant.
Here is an example from the Vibrant-Droid-Razr 2.1 from Fishman.
Tx,
The_Toggle
Apk files are actually zip files, or something similar. You can see what is inside them using file managers on the phone, or probably unzip on a PC. I took a look at one I had, and found the version number by viewing the AndroidManifest as a text file.

[Req] Extract apk from image file-how?

Hi all. Can an apk be extracted from an image file?
The image file is the .tar.md5 of the official UK ICS update from sammobile.
I've done a search and so far can't find how to do this.
Is it even possible?
There's a particular app in the UK version that's not in the US version I want to install
on my US 7510 wifi tab.
Thanks.
As I know, .tar files are archive file like zip. just for Linux. have you tried to open it with 7zip.?
I don't know if it works, but maybe.
marco.michel said:
As I know, .tar files are archive file like zip. just for Linux. have you tried to open it with 7zip.?
I don't know if it works, but maybe.
Click to expand...
Click to collapse
Tried WinRar but doesn't get me into the tar file to see the apk's.
Will try 7zip.
Thanks!

[Q] Language settings, JP audio w/EN subs and text, Final Fantasy IV

Hello all. I recently bought Final Fantasy IV and was disappointed to find there was no language setting in the game that I could find. Ideally, I would like to play with Japanese audio and English subtitles. Launching normally under USA locale plays English vocals and subtitles. I was afraid that the Play store variant would only come with English audio, but I found by changing my Nexus 7 language settings to Japanese, that it would in fact contain and play with JP audio and JP subtitles. I can't understand why , this being the case that there isn't an easy in application language switching option that I can see.
All the components are there. Does anyone know how I could somehow edit the files to play JP audio and English subs? Copy the JP audio track to the English version of the game seems the most straightforward , if I could figure a way to do it. Anyone have ideas for this process? Programs I will need to unpack the apk or game data and edit what needs to be etc...? Thanks.
To th ebest of my knowledge, it appears that I'll probably need to unpack the .obb file somehow. The .apk is small. Does anyone know of an suitable utilities to unpack and repack/sign if need be .obb an/o .apk firles?
I've seen a few posts on the forum suggesting that I simply rename the .obb to .zip, .rar etc... and it will simply be able to be extracted. Sadly, this doesn't seem to be the case. I've been attempting to use 7zip to extract the archive with a number of renamed file types and every time it claims that it doesn't seem to be a valid archive etc.... Others have suggested 7zip works for this in other cases, but I'm not sure why it is failing now. Do I need to use a specific program to see if it is a valid archive?
Edit: I also tried with WinRAR and to no effect - the same problem where it reports that there is no archive present etc...
At the moment I'm trying this with an edited/sideload ready version of FFIV 1.2.3 (which has both the .apk file of a few megabytes and the .obb of a few hundred megabytes), at least until I can pull the exact copy off my device. I'd really appreciate any insight. What do I need to open/extract the .obb and why is it not appearing with 7zip? Thanks.
I'm going to try and get another copy of the files from another source (pulled directly from my Nexus 7 or Nexus 4) onto my Windows PC etc...
RanceJustice said:
I've seen a few posts on the forum suggesting that I simply rename the .obb to .zip, .rar etc... and it will simply be able to be extracted. Sadly, this doesn't seem to be the case. I've been attempting to use 7zip to extract the archive with a number of renamed file types and every time it claims that it doesn't seem to be a valid archive etc.... Others have suggested 7zip works for this in other cases, but I'm not sure why it is failing now. Do I need to use a specific program to see if it is a valid archive?
Edit: I also tried with WinRAR and to no effect - the same problem where it reports that there is no archive present etc...
At the moment I'm trying this with an edited/sideload ready version of FFIV 1.2.3 (which has both the .apk file of a few megabytes and the .obb of a few hundred megabytes), at least until I can pull the exact copy off my device. I'd really appreciate any insight. What do I need to open/extract the .obb and why is it not appearing with 7zip? Thanks.
I'm going to try and get another copy of the files from another source (pulled directly from my Nexus 7 or Nexus 4) onto my Windows PC etc...
Click to expand...
Click to collapse
Huh... I'm not sure how to help you too. Just a simple beginner. But using .zip or .rar worked for me. Just that the file names were all long and weird. Also, every file appears as a .file extension
open obb file
Hi,
did you tried to open *.obb using "jobb" application from Android SDK?

Categories

Resources