Extracting Certain Files from APK's - Barnes & Noble Nook Tablet

hey all, i was just wondering if anyone knew how to extract some files from an apk?
specifically, i like riptide gp's background music and was wondering if anyone knew how to extract those music files from the apk or something. let me know! thanks!
I already tried opening the apk on both my computer and NT and couldn't find any music files anywhere... starting to think its not possible, but it can't be because in order for a game to have music its gotta have music files somewhere in the installation file just like any other game on any platform...

Just to get the most basic question out of the way, so sorry if I seem pedantic, but did you just change the extension of the .apk to .zip or did you use APKTool to unpack the .apk?

SG Pillar said:
Just to get the most basic question out of the way, so sorry if I seem pedantic, but did you just change the extension of the .apk to .zip or did you use APKTool to unpack the .apk?
Click to expand...
Click to collapse
i've already tried extracting the apk by conventional means, aka using winrar to extract the contents, but no luck in finding any files resembling that of a music file type. i've also tried apktool but after decompiling the apk, i couldn't find any music files either...
after decompiling through apktool i just saw a lot of .smali files. there was one files called base.apf but not sure how to decompile that....

Check out apktool to extract apks. I've used it on system files to open them up and edit what's inside.
https://code.google.com/p/android-apktool/

Related

[Q] Decoding and re-encoding apks with APKTOOL

So I've decoded a launcherpro apk and gotten all the files inside.
I've edited them changing only some images(not .9.pngs) and some text strings for a translation.
I don't really know how to re-encode the file and sign it.
I tried using APKtools to repack but ASTRO won't let me install it saying it can't open it as an apk file.
Any help is appreciated
i cant get apktools to do anything other than decompile...
if you got it to compile your apk but dont know how to sign it, use this: http://androidforums.com/developer-101/8665-how-signing-roms.html
its what i use to sign zips and apks and it works very well and is easy. the "auto sign" or qwhatever opetion doesnt ever work for me, but option 4, manual, works fine
if you havent installed the framework-res.apk that may be why you cant compile
what you need to do is pull out the framework-res.apk and put it in you root directory then in terminal use this.
code: apktool if framework-res.apk

How to open an apk file?

Hello,
What program do I use to open an apk file?
I want to modify an apk file and then save it.
thanks
I think you just put it on your computer, rename it from .apk to .zip
extract.
There ya go.
IDK but you may have to sign it somehow again, but im not sure if you even need to.
Or just use winrar and open it.
Sent from my SGH-T959 using XDA App
I grabbed APK Manager from the development section. More for theming, but powerful.
How to decompile an apk file
use 7-zip if all you want to do is replace images and already edited xml's

[Q] changing default music players look?!

hello, i wonder if someone would help me out a little bit, a few days ago i started to try modifying the default MusicPlayer.apk on my Galaxy 3.. i extracted the stuff from the .apk with winrar, edited the .png files inside the "res" folder and then repacked all the files to a .rar archive,after that renamed it to .apk and resigned it (i tried even without resigning) but the app wont start..due to this is a system app i know i cant install it from the file manager,but usually it has to begin the installation etc.. i only get something like a parsing package error..any help would be appreciated,and thanks in advance..
[sorry if my english is wrong]
Of course it won't start
In the apk there are also more folders than the res-folder, you only see them if you decompile the apk.
But you only have to decompile them if you want to edit ...9.png (eg with that) files, otherwise just extract them to edit and afterwards add them again with WinRAR or something like that
in fact i did extract all files and folders so i repacked all of them again im sure i didnt miss any files,the problem is that i dont know what else the problem could be
danke trozdem für die hilfe help is always welcome
Edit: I found out how to do it open the .apk as an archive (with winrar or something similar) extract the files you want to edit,edit them and put them into the original .apk you wanted to edit (youi open the .apk file with winrar,and drag the edited files and just drop them to the opened archive,and let them get replaced) and done!!
I edited the original MusicPlayer.apk of my Galaxy 3 so that it looks like the Xperia's one (just edited some .png files)
btw here are some screens of my work (till now), but i have so much more things to edit

[Q] nuub question, can an .apk be lightly modified like this?

I am sure this would be a WTF for some people thats why I'm asking in the Q&A section.
I've noticed that .apk files can be renamed to .rar and, once decompressed, we can find files in a normal-structure in their real format (images, sounds, xmls, etc).
So I wonder, let's say, we want to modify one of the images inside the .apk. We would change it for another with the same name/size so no probs with that.
Could we decompress the .apk as a .rar, change the file, recompress it to a .rar and rename it to .apk, or we would **** permissions or something in the way?
Otherwise it needs some compiler or something I guess right? But then I wouldn't understand why it can be plainly decompressed as a .rar..
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
UpInTheAir said:
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
Click to expand...
Click to collapse
Thanks a lot mate! Very appreciated

[Q] Decompiling APK's with renaming

Can you decompile APK with just renameing it to the ZIP or RAR files.
Then you can extract it and you get all the files inside the apk.
then you can edit xml files and simply rename it back to APK.
I was just wondering is this right and safe way or you shouldn't decompile it like that?

Categories

Resources