[Q] Compiling Xmls? - Samsung Epic 4G Touch

What's the best way or program to recompile xmls. Im able to use apk manager and apktool to decompile and make my edits but I can never be able to recompile successfully. So is there any other way it can be done?

suwu10 said:
What's the best way or program to recompile xmls. Im able to use apk manager and apktool to decompile and make my edits but I can never be able to recompile successfully. So is there any other way it can be done?
Click to expand...
Click to collapse
For just XML ? Are you running Linux/Mac/Win ?
Greetz to Burque !

suwu10 said:
What's the best way or program to recompile xmls. Im able to use apk manager and apktool to decompile and make my edits but I can never be able to recompile successfully. So is there any other way it can be done?
Click to expand...
Click to collapse
If there is nothing wrong with your edits apk manager should be able to recomiple without a problem. What error are you getting?

suwu10 said:
What's the best way or program to recompile xmls. Im able to use apk manager and apktool to decompile and make my edits but I can never be able to recompile successfully. So is there any other way it can be done?
Click to expand...
Click to collapse
Im aware you stating making your edits is not the issues, but just making sure you made your changes using Notepad++ and not just Notepad....

Sorry I didn't post but i figured it out. I was using a themed framework and system ui so that's why I was getting errors when decompiling and recompiling. I just used as close to stock as possible framework and system ui then dragged over to my theme and it worked

Related

Recompile Question

Ok so I used http://forum.xda-developers.com/showthread.php?t=882742 to upack / uncompile my framework-res. I then made my changes to the xml's that I wanted to edit. I then used the same program to repack them but it does not recompress them for some reason. I tried to use apkmanager but found it very confusing to use it to recompile and could never get it to work correctly. Any help would be appreciated.
With apkmanager after you make your edits you choose 11 to recompile, answer yes and yes, go to the keep folder that it creates and delete everything you edited. You will get a unsigned.apk.
Sent from my ADR6300 using XDA App
Hatman41 said:
Ok so I used http://forum.xda-developers.com/showthread.php?t=882742 to upack / uncompile my framework-res. I then made my changes to the xml's that I wanted to edit. I then used the same program to repack them but it does not recompress them for some reason. I tried to use apkmanager but found it very confusing to use it to recompile and could never get it to work correctly. Any help would be appreciated.
Click to expand...
Click to collapse
if you use apk manager and make xml edits make sure you delete the resources arsa also
newtoroot said:
if you use apk manager and make xml edits make sure you delete the resources arsa also
Click to expand...
Click to collapse
Thanks for the reply but I still find apkmanager very confusing to use to recompile.

[Q] Modifying xmls

I am interested in changing the color of the text of the status bar. I have already modified all the images I need, now just need to modify the xml.
I am modifying the framework-res.apk colors xml. After I have made the change I recompile the apk. Switch out the Meta-INF and AndroidManifest.xml with the ones from the original apk but when I push to my phone the color of the status bar text isn't changing. These are the lines I have changed:
<color name="status_bar_text">#ff73cd68</color>
<color name="status_bar_clock_text">#ff73cd68</color>
You might find better luck actually pming a themer or posting it in the theme section. Not much Turner's drop by here
Sent from my SPH-D710 using XDA App
davidc23 said:
You might find better luck actually pming a themer or posting it in the theme section. Not much Turner's drop by here
Sent from my SPH-D710 using XDA App
Click to expand...
Click to collapse
yeah I was thinking that, I might just check on the irc channel. Thanks for looking out.
Hmmm did you reboot the phone?
Sent from my Epic™ 4G Touch
globalninja said:
Hmmm did you reboot the phone?
Sent from my Epic™ 4G Touch
Click to expand...
Click to collapse
Yeah, I didn't actually push the framework. I created a flashable zip.
dtm_stretch said:
Yeah, I didn't actually push the framework. I created a flashable zip.
Click to expand...
Click to collapse
If you got the framework-res.apk to recompile without errors then the changes you made should definitely work. There is no need to sawp anything owhen recompiling, just edit the xml, recompile it as a system app and push it to system/app via root explorer or any equivalent.
Which ROM framework are you trying to modify?
fnut6969 said:
If you got the framework-res.apk to recompile without errors then the changes you made should definitely work. There is no need to sawp anything owhen recompiling, just edit the xml, recompile it as a system app and push it to system/app via root explorer or any equivalent.
Which ROM framework are you trying to modify?
Click to expand...
Click to collapse
Thanks ill give that I try.
I am actually modifying the ICS theme for Cakulin's rom.
**Doesn't seem to work either. I should be changing the colors.xml in the framework-res.apk right?
Got it: Make sure to delete the stupid resources.arsc!
dtm_stretch said:
Thanks ill give that I try.
I am actually modifying the ICS theme for Cakulin's rom.
**Doesn't seem to work either. I should be changing the colors.xml in the framework-res.apk right?
Click to expand...
Click to collapse
Yes, and although you won't find the values folder when you recompile you'll still need to delete the resources.arsc when recompiling, if you'd like, you can attach the framework-res.apk you're trying to modify and I can change it for you.
I also, stated inadvertently, to place it in system/app that is incorrect it goes in system/framework which may actually be part of the problem.
fnut6969 said:
Yes, and although you won't find the values folder when you recompile you'll still need to delete the resources.arsc when recompiling, if you'd like, you can attach the framework-res.apk you're trying to modify and I can change it for you.
I also, stated inadvertently, to place it in system/app that is incorrect it goes in system/framework which may actually be part of the problem.
Click to expand...
Click to collapse
I got it figured out, just before you posted about the resources. Now I just got to figure out why my launcher keeps restarting.

{Solved} Help required to make Black theme Contacts & Phone.

Can anybody make black contact & phone.apk attached here. Or else let me know the step by step procedure to make the Black themed Contacs.apk & Phone.apk
I Know we need to edit some XML files like styles.xml , call_background.xml, background_dial_holo_dark.xml and also have tried but able to get the success. So please help me.
Its not that easy...
apktool-1.4.3 wont decompile Contacts.apk properly so when you recompile, it will most likely crash the Phone.apk
I am able to decompile and recompile it without any problems.
You have to just decompile with 1.4.2 apktool and compile it with 1.4.3 apktool.
Before decompiling you have to delete classes.dex from contacts.apk.
If it was not possible then how other themers are modifying contacts.apk. So themers please help me.
I would do it for you, how exactly do you want it to look?
manikant_009 said:
I am able to decompile and recompile it without any problems.
You have to just decompile with 1.4.2 apktool and compile it with 1.4.3 apktool.
Before decompiling you have to delete classes.dex from contacts.apk.
If it was not possible then how other themers are modifying contacts.apk. So themers please help me.
Click to expand...
Click to collapse
How many "themer's" are changing XML? show me one please...
shayne77 said:
How many "themer's" are changing XML? show me one please...
Click to expand...
Click to collapse
Most just change images, just swap out the images using 7-zip
OriginsOfLewis said:
Most just change images, just swap out the images using 7-zip
Click to expand...
Click to collapse
Exactly my point... Contacts.apk has been a pain the bum since ICS got here... (with APKTOOL-1.4.3 anyway)
hence why no-one has really changed XML too much...
I think managed to get it to work though...
OriginsOfLewis said:
I would do it for you, how exactly do you want it to look?
Click to expand...
Click to collapse
Thanks for trying to help me i want black dialler with blue text numbers, transparent buttons. and also pleas let me know how to make the transparent notification in the below image attached.
shayne77 said:
Exactly my point... Contacts.apk has been a pain the bum since ICS got here... (with APKTOOL-1.4.3 anyway)
hence why no-one has really changed XML too much...
I think managed to get it to work though...
Click to expand...
Click to collapse
I thinks for this we need to install framework-res then decompile contacts.apk with 1.4.2 and recompile with 1.4.3
manikant_009 said:
I thinks for this we need to install framework-res then decompile contacts.apk with 1.4.2 and recompile with 1.4.3
Click to expand...
Click to collapse
My bet is: Contacts.apk will work fine but Phone.apk will crash.
shayne77 said:
My bet is: Contacts.apk will work fine but Phone.apk will crash.
Click to expand...
Click to collapse
See i am not a themer but i have tried contacts.apk by this method not tried phone.apk so i can't tell about it.
I just need the info about the xml files that needs to be edited so please help me.
manikant_009 said:
See i am not a themer but i have tried contacts.apk by this method not tried phone.apk so i can't tell about it.
I just need the info about the xml files that needs to be edited so please help me.
Click to expand...
Click to collapse
You're missing my point, the 2 apk's talk to each other... you change Contacts and it crashes Phone.
sent from SGS2 using XDA app.
shayne77 said:
You're missing my point, the 2 apk's talk to each other... you change Contacts and it crashes Phone.
sent from SGS2 using XDA app.
Click to expand...
Click to collapse
But their should be some way to change it because Vertumus and other themers have done that
For example you can see here
http://forum.xda-developers.com/showthread.php?t=1564209
http://forum.xda-developers.com/showthread.php?t=1517344
manikant_009 said:
But their should be some way to change it because Vertumus and other themers have done that
For example you can see here
http://forum.xda-developers.com/showthread.php?t=1564209
http://forum.xda-developers.com/showthread.php?t=1517344
Click to expand...
Click to collapse
I think you'll find they're only changing PNGs in Contacts.apk... could be wrong but I am thinking that is the case...
Will see if any "themers" offer you some advice in this thread then...
shayne77 said:
How many "themer's" are changing XML? show me one please...
Click to expand...
Click to collapse
Me , for my theme (Black&Blue for HyDrOG3N-ICS)
I change the pictures, but also some XML files
el_liberator said:
Me , for my theme (Black&Blue for HyDrOG3N-ICS)
I change the pictures, but also some XML files
Click to expand...
Click to collapse
Oh so you'll share your method to manikant/us then? good-o
---------- Post added at 12:28 AM ---------- Previous post was at 12:24 AM ----------
el_liberator said:
Me , for my theme (Black&Blue for HyDrOG3N-ICS)
I change the pictures, but also some XML files
Click to expand...
Click to collapse
Can you share with us also i like the MMS.apk of your theme so please try to share with us.
Didn't think so...
either he doesn't change XML or he steals someone else work or he's just plain selfish.
not in the spirit of xda anyway.
That's the problem with this place, ego's get in the way of development.
manikant_009 said:
Thanks for trying to help me i want black dialler with blue text numbers, transparent buttons. and also pleas let me know how to make the transparent notification in the below image attached.
Click to expand...
Click to collapse
Okay I've done it, I haven't tested it so it's at your own risk. Remember to set permissions! This is at 50% transparency
http://dl.dropbox.com/u/43639041/framework-res.apk
I had errors with the Contacts.apk when making any XML edits, I ended up having to grab it from the source.

[Q] Edited framework-res.apk

Can anyone edit a framework-res.apk with no mods other than adding the crt animation? I've found guides on how to edit the bools file in the res/values filder inside the apk, but I can't get it to recompile the apk correctly. Can someone tell me how or send me an edited apk or something?
If you want to post your framework file, I'll do it for you and send it back.
I just posted several of these for Caulkulin's 3.0 rom. What are you using now? His framework, but with a stock battery look.
Sent from my SPH-D710 using XDA
kyamora said:
Can anyone edit a framework-res.apk with no mods other than adding the crt animation? I've found guides on how to edit the bools file in the res/values filder inside the apk, but I can't get it to recompile the apk correctly. Can someone tell me how or send me an edited apk or something?
Click to expand...
Click to collapse
You need to check the error and see whats wrong with the framework file. Also you just want a stock framework file with crt on? Also what are you using to compile and decompile
playya said:
You need to check the error and see whats wrong with the framework file. Also you just want a stock framework file with crt on? Also what are you using to compile and decompile
Click to expand...
Click to collapse
I was using apk manager 4.9, and I have no idea how to read the log.
I attached my framework-res. It's stock from FD19, I probably should have specified.
If no one gets to it, I'll mod it when I get home.
Sent from my SPH-D710 using xda premium
All done. I tested on my phone. After I replaced the apk, I had to manually restart the phone for it to work. I placed your apk in a zip file before I uploaded, so make sure you unzip your apk before putting it back on your phone.
Thank you so much, it works very well.
Now I'd just like to know how you did it. Coming from a clean computer with nothing installed, what would I need to decompile an apk, edit it, and compile it again? I'm trying to get a handle on the whole thing to do some development myself.
Try and upgrade to Apk Manager 5.02 since I just de-compiled and then compiled your apk file without an issue. Also try and update everything associated with it like your java... But it seems quite fine to me
Edit: just tried yours again as well as removing animation I lowered autobrightness which is something I do on all my roms for better battery life.. Try that mod next
playya said:
Try and upgrade to Apk Manager 5.02 since I just de-compiled and then compiled your apk file without an issue. Also try and update everything associated with it like your java... But it seems quite fine to me
Edit: just tried yours again as well as removing animation I lowered autobrightness which is something I do on all my roms for better battery life.. Try that mod next
Click to expand...
Click to collapse
Do I have to do anything to set it up or is it good to go from install? Should I restart my computer?
Also where can I find 5.02? I had a lot of trouble finding 4.9 in the first place.
I've never used apk manager, so I'll check that out also. I used apktool to mod your framework along with all the java runtime files it needed to work.
Sent from my SPH-D710 using xda premium
&roid said:
I've never used apk manager, so I'll check that out also. I used apktool to mod your framework along with all the java runtime files it needed to work.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Apktool confused me so I used apk manager. I can't figure out how to get apktool to work. Do you have a link to a good guide or anything?
There are some good ones on xda. I'll link you one when I get home.
Sent from my SPH-D710 using xda premium
I was apparently using the gingerbread method for an ICS build. Would that have kept it from compiling correctly?
kyamora said:
I was apparently using the gingerbread method for an ICS build. Would that have kept it from compiling correctly?
Click to expand...
Click to collapse
YES
&roid said:
YES
Click to expand...
Click to collapse
Haha, at least I'm learning.
To be fair, no one specified. Thanks for all the help guys.
Hi. Any help me to on crt effect in this framework ? I try apk menager and apk edit, and always some problem when compile, program loop and only exit work
http://db.tt/W2DKqulN

[Q] need help with decompilling

every time i'm trying to decompile an APK i get this error:
Code:
Decompiling Apk
testCan't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
"An Error Occured, Please Check The Log (option 24)"
can someone help me?:crying:
someone? anyone?
:crying:
make sure you installed correct framework apps..and then decompile again
arpith.fbi said:
make sure you installed correct framework apps..and then decompile again
Click to expand...
Click to collapse
I already installed the framework-res.apk and the systemui.apk
Sent from my LT18i using xda premium
can you post the 4-5 previous lines in the code before getting error?
arpith.fbi said:
can you post the 4-5 previous lines in the code before getting error?
Click to expand...
Click to collapse
i used used apk multi tool, so i selected a project, chose to decompile, and that are all the lines i get.
install original stock framework-res.apk including other frameworks
First try decompiling and re-compiling the original stock apk before decompiling & recompiling apk of some other roms.
but i still feel framework-res.apk isnt properly installed
Code:
apktool install-framework framework-res.apk
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Erhany said:
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Click to expand...
Click to collapse
thanks, it worked
now i can't compile the apk:crying:
Code:
The system cannot find the file specified.
what can i do to fix that?
please, can someone help me with that?

Categories

Resources