how to edit xml file - Samsung Galaxy Fit GT 5670

guys can anyone help me.. how to edit xml files in framework-res.apk....please help me..........

ajay8055 said:
guys can anyone help me.. how to edit xml files in framework-res.apk....please help me..........
Click to expand...
Click to collapse
Decompile the framework-res.apk and then download "Notepad ++" then open the xml with notepad ++ and you will be able to edit it from there
Sent from my R800x using xda premium

decompile the apk using apktools. open the xml file with notepad++ and edit.
then recompile using apktools and push it via adb to your phone.

Before edit xml you should go and visit
http://developer.android.com/guide/index.html
Take a tour

216Monster said:
Decompile the framework-res.apk and then download "Notepad ++" then open the xml with notepad ++ and you will be able to edit it from there
Sent from my R800x using xda premium
Click to expand...
Click to collapse
i have apktools and i have decdompiled my apk...i know how push it via adb...but the problem is i want to add crt animation to my rom.....so we should edit some xml file so i wanted to edit it...can anyone help now..........please.........

ajay8055 said:
i have apktools and i have decdompiled my apk...i know how push it via adb...but the problem is i want to add crt animation to my rom.....so we should edit some xml file so i wanted to edit it...can anyone help now..........please.........
Click to expand...
Click to collapse
Ok just to recap .. You have your apk decompiled and you have notepad++ installed on your computer ?
Which .xml are you trying to edit ?

216Monster said:
Ok just to recap .. You have your apk decompiled and you have notepad++ installed on your computer ?
Which .xml are you trying to edit ?
Click to expand...
Click to collapse
ya i have notepad ++ i want to add crt animation.......

Edit bool.xml
Sent from my GT-S5670 using XDA App
---------- Post added at 10:12 PM ---------- Previous post was at 09:58 PM ----------
Change
Code:
<bool name="config_animateScreenLights">true</bool>
to
Code:
<bool name="config_animateScreenLights">false</bool>

Aspire said:
Edit bool.xml
Sent from my GT-S5670 using XDA App
---------- Post added at 10:12 PM ---------- Previous post was at 09:58 PM ----------
Change
Code:
<bool name="config_animateScreenLights">true</bool>
to
Code:
<bool name="config_animateScreenLights">false</bool>
Click to expand...
Click to collapse
Did you open the boot.xml in notepad++ ?

it'll work with any text editor.
i think, notepad++ is cross-platform so preferred?

Aspire said:
it'll work with any text editor.
i think, notepad++ is cross-platform so preferred?
Click to expand...
Click to collapse
Notepad++ is made for xml editing an such, ive used windows notepad program and it doesnt do the editing process any justice. Notepad++ has nice features that make things so simple. Once I found out about it I never used anything again. Plus sometimes certain xml wont open in just any text editor , sometimes windows notepad wont display the xml correctly .. With notepad++ you wont have any worries ever again

thanks for helping me guys.........

216Monster said:
Notepad++ is made for xml editing an such, ive used windows notepad program and it doesnt do the editing process any justice. Notepad++ has nice features that make things so simple. Once I found out about it I never used anything again. Plus sometimes certain xml wont open in just any text editor , sometimes windows notepad wont display the xml correctly .. With notepad++ you wont have any worries ever again
Click to expand...
Click to collapse
I dont thing windows notepad opens xml files properly, but isnt there a built in xml editor in windows 7? Notepad++ is surely better

niks4101 said:
I dont thing windows notepad opens xml files properly, but isnt there a built in xml editor in windows 7? Notepad++ is surely better
Click to expand...
Click to collapse
Regular notepad will edit decompiled xml's for me on windows7 but indeed notepad++ is without a doubt the best xml editor ive found

Related

Decompiler

Hello, I want to decompile my framework-res apk so I can possibly add a battery that displays percentages. Is there any program out that will let me do this?
Sent from my Xoom using XDA Premium App
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Kcarpenter said:
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Click to expand...
Click to collapse
No offense taken. I am in the process of teaching myself these things so Google and xda are my best friends. Thanks for the reply
Sent from my Xoom using XDA Premium App
Kcarpenter said:
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Click to expand...
Click to collapse
Is it possible to read the Stat sys battery XML? I've been reading on how to decompile the files but no real help with this really
Sent from my Xoom using XDA Premium App
I use apk_manager_4.9 it may be the woosie way but it works for me. Try this thread: http://forum.xda-developers.com/showthread.php?t=695701
zone23 said:
I use apk_manager_4.9 it may be the woosie way but it works for me. Try this thread: http://forum.xda-developers.com/showthread.php?t=695701
Click to expand...
Click to collapse
Thank you, I have previously viewed that thread. There aren't really any clear cut instructions on setting it up properly. Are you able to edit the XML files contained in the drawable folder? That is all I'm interested in. I can't seem to successfully decompile the framework-res apk. Thanks again
Sent from my Xoom using XDA Premium App
I will offer to help you out.
1. Install latest SDK from http://Developer.google.com & Eclipse.
2. Search for apktool and unzip files into the SDK folder under platform_a DB
3. Buddy fix apktool with attached files. You will need to rename these files to Apktool, etc..
4. Copy framework-res.apk, systemui.apk, settings.apk, and launcher2.apk from \system + copy the odex
5. Run apktool d framework-res.apk (do this for each apk)
6. Look in the Res/drawing folders for images to mod.
Now you have the .9.png files with marks & the decompiled XML for reference.
Use Photoshop to modify the files.
Use draw9patch to compile any .9.png files
This is really important. Use 7zip or any other zip app that allows you to open and view an apk as a zip without actually unzipping it. Just copy the new photo files in and add them to an update.zip (you can download this from XDA Xoom Development thread) or use a DB to push the updated files to the Xoom.
Theaming is a subject but that's the basics. I can't upload files for newapktools.zip right now but will edit this when I get home later. Alternativly, maybe someone can post the patched up Xoom compatible apktool files. They are also in XDA theaming thread if you search.
Hth
Sent from my Xoom using XDA Premium App
nbeebe24 said:
Thank you, I have previously viewed that thread. There aren't really any clear cut instructions on setting it up properly. Are you able to edit the XML files contained in the drawable folder? That is all I'm interested in. I can't seem to successfully decompile the framework-res apk. Thanks again
Sent from my Xoom using XDA Premium App
Click to expand...
Click to collapse
Yes I can you need Java JDK installed:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Eventually you will need Eclipse and I use Gimp because its free and doesn't break any .png files.
http://www.eclipse.org/downloads/
IDE for JAVA Develpoers search youtube for a video on how to set it up for android.
http://www.youtube.com/watch?v=ZoWVeXizfbo
I use Notepad++ to edit XML
http://notepad-plus-plus.org/download
Thank you very much for that! I edited the images I want to use, I waes just trying to add the respective values into the XML. Is it possible to add a battery with 1% increments as of now?
Sent from my Nexus S using XDA App
nbeebe24 said:
Thank you very much for that! I edited the images I want to use, I waes just trying to add the respective values into the XML. Is it possible to add a battery with 1% increments as of now?
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
I have no idea all I know is on the EVO you had to edit the services.jar for that and it is beyond my capabilities. Sorry.
zone23 said:
I have no idea all I know is on the EVO you had to edit the services.jar for that and it is beyond my capabilities. Sorry.
Click to expand...
Click to collapse
I'll pay money if someone can link me to the decompiled battery_stat_sys and battery_charge_sys XML's
Sent from my Nexus S using XDA App
Hey nbeebe24, check out my post over here: http://forum.xda-developers.com/showthread.php?t=1063657
This should help you decompile/recompile framework-res.apk for your mod. I look forward to seeing your results
nbeebe24 said:
I'll pay money if someone can link me to the decompiled battery_stat_sys and battery_charge_sys XML's
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
you tryed this tool
Code:
http://ragotnicolas.free.fr/Android/ax10mk.rar
http://ragotnicolas.free.fr/Android/ax10mk.rar
http://forum.xda-developers.com/showthread.php?t=928864

I need help theming here...

Ok so I'm trying to make the menu font white so i can give it a black bg.
I decompiled xmls and all, did everything right BUT now when I go to recompile...
http://forum.xda-developers.com/showpost.php?p=14121644&postcount=196
Realorasz said:
Ok so I'm trying to make the menu font white so i can give it a black bg.
I decompiled xmls and all, did everything right BUT now when I go to recompile...
http://forum.xda-developers.com/showpost.php?p=14121644&postcount=196
Click to expand...
Click to collapse
Have you tried the UOT kitchen.....
http://uot.dakra.lt/
Or maybe this will help too....
http://forum.xda-developers.com/showthread.php?p=13874800
Good luck.
smartgardens said:
Have you tried the UOT kitchen.....
http://uot.dakra.lt/
Or maybe this will help too....
http://forum.xda-developers.com/showthread.php?p=13874800
Good luck.
Click to expand...
Click to collapse
Neither help, sorry. UOT can't change font colors in the menu and that cm7 thing is for images, again not for font colors in the menu.
Delete public.xml from res/values. It will regenerate while compiling.
Sent from my X10
realunited123 said:
Delete public.xml from res/values. It will regenerate while compiling.
Sent from my X10
Click to expand...
Click to collapse
Not helping.
Realorasz said:
Not helping.
Click to expand...
Click to collapse
What does it say? You deleted public.xml?
Sent from my X10
realunited123 said:
What does it say? You deleted public.xml?
Sent from my X10
Click to expand...
Click to collapse
Says something about 'declared here is not defined' at the end of every line
Whatever's happening I'm getting errors on everything no matter what I try and I'm following the instructions.
Try compiling it ignoring the error messages then from the compiled apk, extract the files you modified including png and xml files, then from the original apk open it with winrar and paste the files you extracted previously.
gil2004xp said:
Try compiling it ignoring the error messages then from the compiled apk, extract the files you modified including png and xml files, then from the original apk open it with winrar and paste the files you extracted previously.
Click to expand...
Click to collapse
Thing is its not compiling any apk.
Which tool are you currently using for compiling/decompiling?
Try extracting framework again, follow this
Yeah that is what I'm using.
Sent from my X10 TripNMiUI-IRIS

[Q] how to use PNG file?

can u please help me how to replace png file on framework..i did not really know how to do that..
wanyakuza said:
can u please help me how to replace png file on framework..i did not really know how to do that..
Click to expand...
Click to collapse
inside a rom you would go to where the the png is, you edit it save it and overwrite the old one
wanyakuza said:
can u please help me how to replace png file on framework..i did not really know how to do that..
Click to expand...
Click to collapse
Since it is png you no need to decompile or recompile just use 7 zip or winrar and replace it. Make sure that the png you are replacing have same resolution and name
Sent from my GT-I9070 using Tapatalk
PradeepMurugan said:
Since it is png you no need to decompile or recompile just use 7 zip or winrar and replace it. Make sure that the png you are replacing have same resolution and name
Sent from my GT-I9070 using Tapatalk
Click to expand...
Click to collapse
i have decompile framework with apktool , but i don't know how replace the file..did i need go to drawable ldpi?? , after that what to do??
wanyakuza said:
i have decompile framework with apktool , but i don't know how replace the file..did i need go to drawable ldpi?? , after that what to do??
Click to expand...
Click to collapse
Use winrar and take out the file you want, edit it and drop it back in the same place you got it, when it promotes you,replace it
Trozzul said:
Use winrar and take out the file you want, edit it and drop it back in the same place you got it, when it promotes you,replace it
Click to expand...
Click to collapse
winrar or 7zip?? , what are in drawable ldpi actually? it's the actual file or new??
Use Winrar or 7zip it doesn't matters.
Ldpi folder contains image for low device resolution.
If you replaced nothing in this folder then it's the actual file but you should replace your image in the correct folder according to your screen resolution.
Sent from my HTC Sensation Z710e using xda app-developers appl

smali help

hello everyone
i searched a lot but couldnt find anything so postiong here
i was trying to add some featues to home.apk and i got some errors while recompiling
so i tried decompile and recompile without editing anything...i didnt even open the decompiled home apk folder LOL
but i am getting lots of smali errors only in styles.xml
i think that apktool removes some templates from styles.xml i dont know what it means i just got it from my search
so can someone help me in fixing that error....
@serajr
 @SpaceCaker
 @marcussmith2626
 @iSiddharth
Either wrong framework loaded or using wrong apktool version
And please stop abusing the mention system - I won't reply to anymore mentions
marcussmith2626 said:
Either wrong framework loaded or using wrong apktool version
And please stop abusing the mention system - I won't reply to anymore mentions
Click to expand...
Click to collapse
Ah sorry
But what do u mean by WRONG apktool version??
abhishekr700 said:
Ah sorry
But what do u mean by WRONG apktool version??
Click to expand...
Click to collapse
use
gingerbread/ics/jb 1.5.2
https://code.google.com/p/android-apktool/downloads/list
jb/kitkat/lolipop apktool rc3
https://bitbucket.org/iBotPeaches/apktool/downloads
use correct framework-res
plus any other framework eg tw-framework
Use Advanced APK Tools for decompiling the APK files and you can also use the Attached Dex Editor to edit classes.dex files.....
Advanced APK tools is specially made for Xperia devicex. (use your "framework-res.apk" to install firmware in Advanced APK Tools)
(Drag and drop classes.dex in "Quick-Baksmali.cmd" to decompile and drag and drop the output folder is "Quick-Smali.cmd" to recompile.
Advanced APK Tools : http://forum.xda-developers.com/showthread.php?t=2639400

[Q]HOW TO EDIT .xml Files?

Hey , I want to customize my system apps but whenever i open .xml files Like AndroidManifest , layouts etc it didn't open in simple language .
So my question is can anyone tell me how to edit the .xml files...
Any help is really appreciated
Thanks
Rajaks said:
Hey , I want to customize my system apps but whenever i open .xml files Like AndroidManifest , layouts etc it didn't open in simple language .
So my question is can anyone tell me how to edit the .xml files...
Any help is really appreciated
Thanks
Click to expand...
Click to collapse
First decompile a android app with apktool,after that u can easily edit any .xml file with notepad++ without any language problem.
If u extract an app.apk with winrar,7zip...etc or any android app like esfile explorer,zarchiver....etc then u can't edit .XML file & u face language problem.
So, decompile apk with apktool & then edit .XML files.
How to decompile apk, just Google it.
Thanks:
Yes! THANKS DUDE
Sent from my Sparkle V using XDA Premium 4 mobile app

Categories

Resources