[Q] Editing Images Framework-res.apk file - Sony Ericsson XPERIA X10 Mini

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

Related

[Q] Recompiling an apk correctly

I've made some aesthetic changes i like to my GO Launcher EX apk, which is a non system apk. The change I made was to some dock images, which did not have the .9 extension. Everything goes smoothly until I try to install my compiled .apk. If i leave it unsigned, it won't install, but if i sign it, it will. However, when i open it, the screen flickers constantly and will not respond. I'm out of ideas.
FYI, I compile/decompile with Apkmanager and edit with Gimp.
If you're not doing any thing with 9 patch images than there is no need to decompile in the first place. Get 7zip on computer. Right click apk/7zip/open archive and you can navigate to Res/drawable-hdpi and you can extract the drawable-hdpi folder to desktop and do what you need to with the images (non 9's) and drag new edited images into the open 7zip window in the proper place close 7zip window. Once done you only need to use apk mananger to sign the apk and push back to device.
good day. using xda premium.

Re-compile framework-res.apk (Custom Rom)

I got this figured out already, sorry about that.
Who ever thanked me, I wasn't posting a guide but a question.
I am trying from a fresh firmware base to learn from scratch but no idea how to get that framework to compile correctly.
did you install framework first?
Code:
apktool if framework-res.apk
Easy
I had problems with the apk tool and recompiling. The way I ended up doing it is:
I didnt decompile the framework-res.apk.
rename the file framework-res.apk.zip
open it with 7zip.
Extract the files you are wanting to work on
Do what ever work on the files you need done
Drag and drop the files back in the directories they go into while file is open in 7zip
Close 7zip
Rename file back to framework-res.apk
push to phone with adb
No decompile or recompile.
Hope this helps
Chadw1985 said:
I had problems with the apk tool and recompiling. The way I ended up doing it is:
I didnt decompile the framework-res.apk.
rename the file framework-res.apk.zip
open it with 7zip.
Extract the files you are wanting to work on
Do what ever work on the files you need done
Drag and drop the files back in the directories they go into while file is open in 7zip
Close 7zip
Rename file back to framework-res.apk
push to phone with adb
No decompile or recompile.
Hope this helps
Click to expand...
Click to collapse
If you just want to modify one of the 'normal' XML files or an image then that approach will work fine. The problem is he wants to edit the bool.xml file and that is contained in the 'resources.asrc' file and you need to decompile it first.
I am in the same situation although someone managed to edit the file for me and recompile it so I got there in the end, just not by doing it myself.
I followed the instructions you describe and the file never recompiled properly - or at least my device never booted with the one I recompiled
Try it like this:
1. Place APK in "place-apk-here-for-modding"
2. Choose "9" to Decompile
3. Grab resource "resources.arsc" from framework-res.apk
4. Do my edit in projects\framework-res.apk\res\values\bools.xml
5. Compile - Yes (system app) - Yes (copy files)
6. Go to "keep" folder and delete "resources.arsc" and the bools.xml file
7. Press any key
8. Either push by ADB or Root Explorer or Flash
nickiberli said:
Try it like this:
1. Place APK in "place-apk-here-for-modding"
2. Choose "9" to Decompile
3. Grab resource "resources.arsc" from framework-res.apk
4. Do my edit in projects\framework-res.apk\res\values\bools.xml
5. Compile - Yes (system app) - Yes (copy files)
6. Go to "keep" folder and delete "resources.arsc" and the bools.xml file
7. Press any key
8. Either push by ADB or Root Explorer or Flash
Click to expand...
Click to collapse
I have tried exactly like this and it didn't work for me. I downloaded lots of different APK tools and tried them all - there were comments about using older versions of apktool.jar etc. I kept getting different sizes of the output file depending on which one I used. I gave up in the end as someone edited the file for me and it was only one specific entry in bool.xmls I wanted changing. As far I could tell we were both doing exactly the same thing.
The last thing I said I was going to do was wipe the PC I was attempting to do this on. I never got round to doing it... I'd be interested to know why I could never get this working though
Andy
Give me the framework and tell me what u want to do.
I will do that for u
Btw is the framework ICS based?
Sent from my Micromax_A70 using Tapatalk 2 Beta-4
You have resigned?
Greets!

[Q] Apk Edit

Hello ,
I want to install this mod -- > http://forum.xda-developers.com/showthread.php?t=1695202
I decompiled SystemUI.apk and changed bools.xml by Notepad. And I returned script.bat and I selected Compile apk. But error. I tried lots of apk manager but error.
On Notepad , need changed Coding / Character Group ??
If I open apk manager and I saw ADB not found. But apk manager is working , I selected decompile apk , Apk manager decompiled systemUI.apk but I can't compile apk. Thank you..
Ok if i remember correctly, you can open the apk with 7zip, modify the files you want to and they should work. I tried this with systemui.apk before and it worked..
NightWatch71 said:
Ok if i remember correctly, you can open the apk with 7zip, modify the files you want to and they should work. I tried this with systemui.apk before and it worked..
Click to expand...
Click to collapse
I can't arrived values files by 7zip. Need Decompile apk by apk manager..
Arnadel said:
Hello ,
I want to install this mod -- > http://forum.xda-developers.com/showthread.php?t=1695202
I decompiled SystemUI.apk and changed bools.xml by Notepad. And I returned script.bat and I selected Compile apk. But error. I tried lots of apk manager but error.
On Notepad , need changed Coding / Character Group ??
If I open apk manager and I saw ADB not found. But apk manager is working , I selected decompile apk , Apk manager decompiled systemUI.apk but I can't compile apk. Thank you..
Click to expand...
Click to collapse
I have had issues in the past using notepad to edit apk files. I suggest that you use notepad++ for editing xml and smali files. It can be easily found with a Google search. Using notepad will probably give you formatting issues.
Sent from my SGH-I777 using xda premium

Replacing png in apk

Hi everyone,
From my understanding, if we want to change the pngs in an apk, we can simply open it with 7zip, then replace the pngs, it's done.
I took EventStreamPluginCallLog.apk from arc s which is updated to ICS.
The apk can be installed in xperia s and it is working fine.
However, when I change the png named icon in res > drawable-hdpi > icon.png
The apk can no longer be installed.
So I go with decompiling and recompiling the apk using apktool, no error shown but I still can't install it
Any idea? Thanks
did you sign it after recompiling?
System apps don't need to be signed. What i did for system apps is:
Decompile app
Replace png
Recompile app
Use TickleMyAndroid -> Prepare files for pushing.
realfelix said:
did you sign it after recompiling?
Click to expand...
Click to collapse
I thought the same even it says no need for system apk, I still do it and get the same problem, can't install
Felimenta97 said:
System apps don't need to be signed. What i did for system apps is:
Decompile app
Replace png
Recompile app
Use TickleMyAndroid -> Prepare files for pushing.
Click to expand...
Click to collapse
I tried everything I know. Apk Multi Tool, simply apktool only, direct replace PNG with 7zip (compression changed to deflate), direct replace with winrar (compression method retained as store), it just doesn't want to install.
I have tried TickyMyAndroid, I am not sure if I done thing correctly but I see no error when recompiling yet can't be installed. My goodness. Time to forget about this stuff

[Q] replacing files in a .apk file

hello,
i wanna edit some pics in an app from the market.. how can i get it working on my phone.. i signed it and then it won't open on my phone when try to open it..?? here are the files
yakie996 said:
hello,
i wanna edit some pics in an app from the market.. how can i get it working on my phone.. i signed it and then it won't open on my phone when try to open it..?? here are the files
Click to expand...
Click to collapse
Just open the original .apk in 7-Zip, find the files, delete them and then put your new ones in. The have to be exactly the same name. You don't need to decode the apk or resign it.
Some apks won't work like this but very few in the end so you should be okay.
djmcnz said:
Just open the original .apk in 7-Zip, find the files, delete them and then put your new ones in. The have to be exactly the same name. You don't need to decode the apk or resign it.
Some apks won't work like this but very few in the end so you should be okay.
Click to expand...
Click to collapse
when i did this the app don't install on my device..
The 7-zip method not always will work. I use that to edit cyanogenmod themes to best fit my phone, but sometimes I can't install the apk, neither through adb nor file manager
Sent from my Nexus S using xda app-developers app
Try smali the whole apk , replace the pictures then compile it again, using Apk tool.
I'll do this on the go a the time as a matter of fact I did the tsfshell PCB blue theme with the traverse grapheme icons earlier...I do it by using root explorer extract the app and replace whatever you want as long as the file names are the same when done zip everything back up and rename from zip to app then move to system apps or data apps set proper permissions and reboot .....I do it from my cell hope this helps
Sent from my SPH-D700 using Xparent Blue Tapatalk 2
Use APK manager
Decompile the APk
replace or edit the pngs
recompile the APK
Sign it
you are done!!

Categories

Resources