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
Related
hello all
I was trying to edit the framework-res.apk which can be found in system/framework/framework-res.apk
this file holds alot of images that you can edit (e.g slider, incoming call, icons etc...) framework-res.apk\framework-res.apk\res\drawable-mdpi folder
i edited the png's jog_dial_bg_rev_down.png and jog_dial_bg_rev.png
they are the call slider revamped (just removed the shadows so it doesnt cover the incoming call)
i have used apk edit, Apk manager, APK sign and everytime i build the framework-res.apk and move it to the system/framework/ folder
everytime i move the file my phone either gets bricks, bootloops or get tons of force close down of some apps
has anyone got any solutions how to edit framework-res.apk without all this bricking bs?
i have uploaded the edited images for the sliders on Slider_Revamped.rar
When you sing apk than you need to replace :
Meta-inf and recourse.so from original framework-res.apk.
You just open both frameworks with 7zip and drag from original to edited
Sent from my U20i using xda premium
Eyama said:
When you sing apk than you need to replace :
Meta-inf and recourse.so from original framework-res.apk.
You just open both frameworks with 7zip and drag from original to edited
Sent from my U20i using xda premium
Click to expand...
Click to collapse
i had same issue.. thanx will try
Download "NinjaMorph" off of the market, it decompiles any APK, TAR whatever and allows you to replace any file (including XMLs if you like) from the APK with those on your SD. What I do is decompile the APK then plug my phone in and navigate to where NinjaMorph decompiled the APK to on the SD, which is "AndroidThemes", do the editing on my PC then disconnect the phone, recompile the APK and it automatically pushes the APK to wherever you pulled it from. I've used it many times when I've been messing with frameworkres, it works every time.
Does this method also work with .9.patched files?
christophermaisch said:
Download "NinjaMorph" off of the market, it decompiles any APK, TAR whatever and allows you to replace any file (including XMLs if you like) from the APK with those on your SD. What I do is decompile the APK then plug my phone in and navigate to where NinjaMorph decompiled the APK to on the SD, which is "AndroidThemes", do the editing on my PC then disconnect the phone, recompile the APK and it automatically pushes the APK to wherever you pulled it from. I've used it many times when I've been messing with frameworkres, it works every time.
Click to expand...
Click to collapse
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
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/
Hi,
So the situations is like this:
Just got a new LG Nexus 4, NFC enabled, GREAT!!!!
But then I start using it, and the NFC sound (everytime the phone reads a nfc-tag it makes an sound) annoys me beyond belief.
So I start looking around, it seems there's no solution, except recompiling the app.
So I learn how to compile an app (noob here), using this guide: http://forum.xda-developers.com/showthread.php?t=1860115
I'm up to the point where my apk is decompiled, and I have modified the sound files, located in my decompiled files folder respectively at res/raw/start.ogg & res/raw/end.ogg.
I modded the files using audacity, lowering the volume to zero, used them to replace the original .ogg files. The file size is a bit smaller as the original ones (1Kb difference).
Next I use the recompile command: apktool b decompiled_apk_folder_with_modified_files modded_apk_file.apk
So now I have the new nfc apk file, called NfcNci.apk, with which I replace the original file in /system/app.
Next up I reboot my phone into recovery, wipe all cache and dalvik cache, and reboot again.
First thing that pops up on my screen is a force-close message, saying that the nfc-service force closed.
Anyone who can tell me what I did wrong? Or how I can fix this?
Attached are: my decompiled-files-folder (compressed to zip)
the original NfcNci.apk file
my modded NfcNci.apk file which causes the FC's.
Any help will be greatly appreciated!!!!
S.
Looks like you're still on 4.2
The latest NfcNci.apk has some more files.
And your apk is missing the META-INF folder.
I guess that this is the problem.
But you should use "adb logcat" to ensure we're on the right track.
Micky
1 thing i would recomend is not using the actual apk you just built. instead, open your new apk with a file manager such as 7zip and remove your newly compiled files out of it, then put them into the original apk from your rom using 7zip as well! thus keeping the apk's original signature
try to copy the least amount of files from one to another, so to be safe only pull out your new .ogg files, then put them into your original apk! hope this helps
ldrifta said:
1 thing i would recomend is not using the actual apk you just built. instead, open your new apk with a file manager such as 7zip and remove your newly compiled files out of it, then put them into the original apk from your rom using 7zip as well! thus keeping the apk's original signature
try to copy the least amount of files from one to another, so to be safe only pull out your new .ogg files, then put them into your original apk! hope this helps
Click to expand...
Click to collapse
Hi, I tried this, installed 7zip, and double clicked the original apk, I opende the res/raw/ directory, and only copied the files I was using: start.ogg & end.ogg. Then I close 7zip, and send the file to my phone. But as soon as I it them to /system/apps on my phone, and reboot to recovery, wiping the dalvik cache. I get FC's on reboot (NFC-service has FC'd).
Any reasons for this?
Thanks for the help, both of you!
BTW: I'm on Android 4.3 JB
Thought id share this since it can be quite a hassle to find everything needed if you wanna translate stuff yourself or edit something for personal needs.
This was done on miui stable 8.1.3.0 from xiami.eu on a mi5 but should work on other miui versions and roms (with slight modification)
Download Bursoft apktool (http://bursoft-portable.blogspot.se/p/blog-page_23.html) and unzip to C:\BatchApkTool
Make sure you have java installed (www.java.com)
You will also need root
Fetch the following files/folders from your phone and copy them to C:\BatchApkTool\_framework
system/framework/framework-res.apk
system/framework/framework-ext-res/
system/app/miui/
system/app/miuisystem/
system/priv-app/miuisystemUI/
Place the apk you wanna modify in C:\BatchApkTool\_INPUT_APK\
Execute BatchApkTool.exe in c:\BatchApkTool\
Press 1 to decompile
Go to your C:\BatchApkTool\_INPUT_APK\ folder and if everything worked alright then open the newly created folder from the apk file you just decompiled and make whatever change you wanna do. If you wanna translate, then open the \res\ folder and make a new folder called values-sv (if you wanna add swedish language for example) then you can either copy strings.xml from another language folder and edit them or grab xml from a partially (or fully but not 100% voted) translated source like crowdin or github
Do not use caps or anything other wierd stuff or it wont compile afterwards
You can now return to batchapktool and press 3 to recompile and hopefully no errors, otherwise check log to determine possible cause.
Do not sign the apk!
Now open the recently modified compiled apk with winrar (your w/e zip program you prefer) and grab resources.arsc out of there. Now open a copy of the original apk and paste the resources.arsc into it (replacing the existing resources.arsc).
Plug in the phone to the computer and copy the apk to the internal memory
Open your favourite root browser (using romtoolbox filemanager myself) and go to the location of the original apk and rename it (or make a backup incase any error occurs), now copy the modified apk you copied earlier into the folder of the apk you wanna replace, e.g system/app/ or system/priv-app/
Kill/close app (incase it was started earlier) and restart it and see if the changes are live!
Edit: After you replaced the files, then you need to chmod those aswell to 0644 and possibly clear cache in twrp
Might have forgotten something but just ask and ill try to help