Editing XML files - Hero CDMA General

I did a search and couldnt find a clear answer. What program(s) do I need to edit the xml files?

okcppcnut said:
I did a search and couldnt find a clear answer. What program(s) do I need to edit the xml files?
Click to expand...
Click to collapse
They cannot really be edited. They have to be complied with the program.
You can hex edit them but good luck with that.
Lookup a tool called apktool that will decompile the apk and you can edit it with smali and the xml's but a lot of the HTC files cannot be decompiled yet.

AXMLPrinter2.jar to read the .xmls and you need a Hex Editor to hex edit the .xmls.
Mods, please move to the General forum. This doesnt belong in Development.

zippy-man said:
They cannot really be edited. They have to be complied with the program.
You can hex edit them but good luck with that.
Lookup a tool called apktool that will decompile the apk and you can edit it with smali and the xml's but a lot of the HTC files cannot be decompiled yet.
Click to expand...
Click to collapse
WUT? Any .apk file can be decompiled with baksmali and recompiled with smali.

Thread moved as this is not Development.

VinceOB said:
WUT? Any .apk file can be decompiled with baksmali and recompiled with smali.
Click to expand...
Click to collapse
Yes with smali and baksmali but not apktool. That is the only tool you can use to edit XML files in plain text

zippy-man said:
Yes with smali and baksmali but not apktool. That is the only tool you can use to edit XML files in plain text
Click to expand...
Click to collapse
I'll have to try apktool, I've been doing the HexEdit way for wayyyyy too long. I'm beginning to speak in 00's and FF's.

alright man here you go. its a zip of two files i put together to help.

Thanks I will check out those files.

okcppcnut said:
Thanks I will check out those files.
Click to expand...
Click to collapse
they really help. while in android u have to edit an xml in binary format. use HxD editor to edit them but the two files i posted with allow u to convert it easily to readable xml and then find the hex strings to look for and then be able to go to binary and search for the hex string. just remember the code is in reverse when u search for it. for example u might see 01 02 03 04 in readable format (dont know what color this is its just an example) when u search for it in binary xml u would search for 04 03 02 01. hope that helps

cbarlan said:
they really help. while in android u have to edit an xml in binary format.
Click to expand...
Click to collapse
You don't. As people said above, apktool gives you opportunity to edit XMLs normally - as if application was yours. So please don't mislead other people

Brut.all said:
You don't. As people said above, apktool gives you opportunity to edit XMLs normally - as if application was yours. So please don't mislead other people
Click to expand...
Click to collapse
i was under the impression that you have to hex edit the xml's by use of an xml editor. thats how i was shown and that was by VinceOB. Who in my opinion one of the more experienced coders on this forum.
edit ...just saw ur post to try apk tools. ive downloaded it and gonna give it a try. if it works that would be great.

Related

Change shortcut icons on WM6

Hey guys...I have searched and search the forums for a way to change the shortcut icons for my programs...can anyone help me with this? I downloaded resource editor but I cannot get it to work...I cant believe something that should be so simple is this much of a pain!!
Anyways, I appreciate any help that you guys/gals can offer.
try this
http://www.s-k-tools.com/sksmgr/sksmgr.html
it's exactly what you are looking for..
EAsy!!!
Use ResHacker(http://www.angusj.com/resourcehacker/) and make sure u have some your files formated as .ico. U can find such files @
http://browse.deviantart.com/customization/icons/dock/?order=9&alltime=yes
http://www.iconarchive.com/category/application-icons.html
http://www.crystalxp.net/
AWESOME!!! They both work like a charm!!!
Since you have to pay for SK Tools I guess I will go with the freeware...but thanks again this was exactly what i needed and very user friendly!
Here's Pics
Checkout some of mine!!! Vistaized!!!!
mrram said:
Use ResHacker(http://www.angusj.com/resourcehacker/) and make sure u have some your files formated as .ico. U can find such files @
http://browse.deviantart.com/customization/icons/dock/?order=9&alltime=yes
http://www.iconarchive.com/category/application-icons.html
http://www.crystalxp.net/
Click to expand...
Click to collapse
Ive got a question about using ResHacker...what file format do the icons have to be in? Ive got them in .ico also I am trying to put a icon to an application that doesnt currently have one do you know how I can do this in Res Hacker
In SKtools: I'm having problems with the icon format as well...any idea what format its looking for?
I guess I spoke to soon about them running perfect
How to
In ResHacker open file u want to change the icon of, then hit the action button, and then replace icon. However, with some .exe or .dll files u cannot change there icons.
any help on this one. I have shortcut creator and for some reason when i point it to the Lnk file then to the ico file it just makes a duplicate and renames the old .bak. the icons don't change?
I tried the sk iconmaker and it won't show any of my ico files in the folder.
how can you change icons?
Well, You could do it manually. To change the icon of all shortcuts download a registry editor (PHM RegEdit is free and great), Then goto HKEY_CLASSES_ROOT\inkfile\defaulticon.Edit the string value "default" to the path to the icon you whant all shortcuts to have. The path must lead to a exe, dll or ico file.
DOWNLOAD rViwer TO MANAGE ICON IN dll FILES
http://www.freewarepocketpc.net/ppc-download-rviewer-v0-2.html
this stuff is gold thanks for all the links.
Has anyone tried to sucessfull take out the dll file from the folder to the storage card....
kindly help if yes..
vikasraj said:
Has anyone tried to sucessfull take out the dll file from the folder to the storage card....
kindly help if yes..
Click to expand...
Click to collapse
Look at this post:
jmckeejr said:
Are you trying to extract the files from the ROM? You can use ROMExtractor to copy hard to get files from device. just run the exe and select the filesyou want.
Click to expand...
Click to collapse
Tools for hacking dll, exe, etc. for shortcut icons.
Add one more tools:
Restorator,
Restorator is an award-winning utility to edit windows resources in applications and their components, e.g. files with .exe, .dll, .res, .rc, .dcr, extension (see PE files and RES files).
Change, add, remove resources such as text, images, icons, sounds, videos, version, dialogs and menus in almost all programs.
Restorator is used for translation/localization, customization, design improvement and development.
This resource editor comes with an intuitive user-interface, complete documentation with many examples and prompt user support in the discussion forums or via email.
Download: [trial version] - [patch for full version]
Click to expand...
Click to collapse
besides we got:
SK Shortcut Manager
ytsejam_ said:
try this
http://www.s-k-tools.com/sksmgr/sksmgr.html
it's exactly what you are looking for..
Click to expand...
Click to collapse
Resource Hacker
mrram said:
Use ResHacker(http://www.angusj.com/resourcehacker/) and make sure u have some your files formated as .ico. U can find such files @
http://browse.deviantart.com/customization/icons/dock/?order=9&alltime=yes
http://www.iconarchive.com/category/application-icons.html
http://www.crystalxp.net/
Click to expand...
Click to collapse
Resource Editor
Colin Wilson has written an open source Resource Editor which may interest those looking for source code.
Click to expand...
Click to collapse
RViewer for PPC
WhiteRussianBC said:
Well, You could do it manually. To change the icon of all shortcuts download a registry editor (PHM RegEdit is free and great), Then goto HKEY_CLASSES_ROOT\inkfile\defaulticon.Edit the string value "default" to the path to the icon you whant all shortcuts to have. The path must lead to a exe, dll or ico file.
DOWNLOAD rViwer TO MANAGE ICON IN dll FILES
http://www.freewarepocketpc.net/ppc-download-rviewer-v0-2.html
Click to expand...
Click to collapse
&
RomExtractor(PPC exe)
jmckeejr said:
Are you trying to extract the files from the ROM? You can use ROMExtractor to copy hard to get files from device. just run the exe and select the filesyou want.
Click to expand...
Click to collapse
wg5566 said:
Add one more tools:
Restorator,
besides we got:
SK Shortcut Manager
Click to expand...
Click to collapse
Great useful thread. Thanks.
Concerning icons I like to add this thread

Mui Editor

Hi, i have one question. I will must translate some english MUI file to Hungary.
But i don't find any program (MUI editor.) I tested some program, like Resource Editor, Resource Tuner, but edited MUI was bad.
Do you now what the correct program for edit MUI?
thnx
Resource Editor works, just make sure you unsign the dll before editing, and resign it again for use
Search for unsigner and msigner here on the forums
thnx for idea
dferreira said:
Resource Editor works, just make sure you unsign the dll before editing, and resign it again for use
Search for unsigner and msigner here on the forums
Click to expand...
Click to collapse
yes, works, great thnx
dferreira said:
Resource Editor works, just make sure you unsign the dll before editing, and resign it again for use
Search for unsigner and msigner here on the forums
Click to expand...
Click to collapse
How unsign and resign? Is there any tool that do this job in an easy way?
EDIT:
Sorry didn't see that you give the name of program.

Changing icons

I know alot of chefs have there own icon sets for thing like the program menus and setting and things. I also no that the settings for these are linked by an "icon.lnk" file to a dll file in the windows directory. I need help trying to edit these icon's, Whether it is through the dll file or there is another round about way.
A play by play would be great, thanks in advanced.
(i have already tried editing through a dll editor and connot seem to find a program that doesn't have an error trying to edit it (everything from wordpad to Resourse explorer to pe editor.)
you can use icon changer http://www.shelllabs.com/
pull the exe file off your device. then load it into icon changer. change the icon then put it back on your device overwriting the old one. this will change the physical icon of that program.
i have used it several times and it works great.
joel2009 said:
I know alot of chefs have there own icon sets for thing like the program menus and setting and things. I also no that the settings for these are linked by an "icon.lnk" file to a dll file in the windows directory. I need help trying to edit these icon's, Whether it is through the dll file or there is another round about way.
A play by play would be great, thanks in advanced.
(i have already tried editing through a dll editor and connot seem to find a program that doesn't have an error trying to edit it (everything from wordpad to Resourse explorer to pe editor.)
Click to expand...
Click to collapse
Hello,
See my signature. Just edit the icon.dll with XN Resource Editor. Open icon.lnk with notepad and just give the icon number.
Thanks
tom108 said:
you can use icon changer http://www.shelllabs.com/
pull the exe file off your device. then load it into icon changer. change the icon then put it back on your device overwriting the old one. this will change the physical icon of that program.
i have used it several times and it works great.
Click to expand...
Click to collapse
I knew about extracting from the exe already thanks for the reply though
ksrikanth said:
Hello,
See my signature. Just edit the icon.dll with XN Resource Editor. Open icon.lnk with notepad and just give the icon number.
Thanks
Click to expand...
Click to collapse
I'll try out the editor, this was more what i was looking for thanks
Well i found out the file i was trying to use i some how corrupted to i reloaded it, i got i t open but now when i try to save changes i get a write protects errors and it will not save... is this a certificate of a file property i can change
EDIT: nevermind, it was a file property problem fixed
Alright i have a feeling there is a certificate somewhere..... all of my icons are now folders....
joel2009 said:
I know alot of chefs have there own icon sets for thing like the program menus and setting and things. I also no that the settings for these are linked by an "icon.lnk" file to a dll file in the windows directory. I need help trying to edit these icon's, Whether it is through the dll file or there is another round about way.
A play by play would be great, thanks in advanced.
(i have already tried editing through a dll editor and connot seem to find a program that doesn't have an error trying to edit it (everything from wordpad to Resourse explorer to pe editor.)
Click to expand...
Click to collapse
You can edit a DLL with reasourse hacker. You just need the UNSIGNER, and MSSIGNER. first you unsign, then you edit and save, then you sign.
simpler than you think. the hard part is looking for graphics
SK Shortcut Manager
SK Shortcut Manager does the trick for me
http://www.s-k-tools.com/index.html?sksmgr/m_sksmgr.html
BUT, it's paid...
Also i've found DLL file with many (400) old school icons (attached with this post).
A little preview: http://www.wenzlaff.de/download/twicon/twicon3.jpg
U can use also your windows DLL files (shell32.dll).
That's the way i manage all my icons
Hope this helped you
bigchrizzieboy said:
SK Shortcut Manager does the trick for me
http://www.s-k-tools.com/index.html?sksmgr/m_sksmgr.html
BUT, it's paid...
Also i've found DLL file with many (400) old school icons (attached with this post).
A little preview: http://www.wenzlaff.de/download/twicon/twicon3.jpg
U can use also your windows DLL files (shell32.dll).
That's the way i manage all my icons
Hope this helped you
Click to expand...
Click to collapse
I imagagine you can royally screw your phone over messing with shell 32.....
I'm working with a different file and linking to that instead of the shell thanks though
S.V.I said:
You can edit a DLL with reasourse hacker. You just need the UNSIGNER, and MSSIGNER. first you unsign, then you edit and save, then you sign.
simpler than you think. the hard part is looking for graphics
Click to expand...
Click to collapse
I've gotten into the file using a resourse hacker, but how do i sign and unsign?
I don't seem it as an option in any of the menu's so either i'm using the wrong program or i just don't know what i'm doing at all
Edit: and i have already created my icons by hand..... i've got graphics down easy i just have never worked with a dll before..... usually just skinning apps

[UDL] Make NotePad++ MortScript ready

Created an user defined language (UDL) for NotePad++, my favorite editor, thus MortScript-scripts are synthax conformally shown. Uploaded the UDL here. Enjoy.
already exist a Mortscript UDL with autocompletition file for mortscript...
Does your version will be better ?
Re
@lesscro,
already exist a Mortscript UDL with autocompletition file for mortscript...
Click to expand...
Click to collapse
Do not know of such an UDL, also such one is not listet here.
Does your version will be better ?
Click to expand...
Click to collapse
Try it out.
I had found two files for use with MortScript in Notepad++ and tweaked them a little for myself. One goes in the Notepad++ folder and is the user defined language file. The other goes in Notepad++\plugins\APIs and is the function and description file.
RoryB said:
I had found two files for use with MortScript in Notepad++ and tweaked them a little for myself. One goes in the Notepad++ folder and is the user defined language file. The other goes in Notepad++\plugins\APIs and is the function and description file.
Click to expand...
Click to collapse
Excellent, thanks!
thx a lot.
long live, WM!
Code dictionaries
Hiyas.
btw, I did previously post a Notepad++ dictionary from Sir.John in the Mortscript Source Compendium.
I will update with a link back to your thread also.
Link broken - file not found
Thanks for taking the time to do this, and so many of your other projects
Any chance you can re-post the UDL for Mortscript again?
Cheers from Australia
Spin35

App/software needed

Okk im looking for a software for pc or Android anyone would work
What i need to do is edit around 150 xml files
In all of them i have to do the same changes of copy and replace
For ex in all of them i have to vhange somc:colorizable with colorizable
Such changes i have to do.plzz suggest some apps or software
Sent from my C2305 using Tapatalk
You can use apktool mobile if you need to decompile apks on your phone
Once decompiled you can use any text editor to edit the xml file and then recompile with apktool mobile
Of course it will be a tedious & long task to do on a phone
Apktool mobile thread
http://forum.xda-developers.com/showthread.php?t=2488697
Of course on pc just use apktool to decompile and notepad++ (different from Windows notepad) to edit xml
marcussmith2626 said:
You can use apktool mobile if you need to decompile apks on your phone
Once decompiled you can use any text editor to edit the xml file and then recompile with apktool mobile
Of course it will be a tedious & long task to do on a phone
Apktool mobile thread
http://forum.xda-developers.com/showthread.php?t=2488697
Of course on pc just use apktool to decompile and notepad++ (different from Windows notepad) to edit xml
Click to expand...
Click to collapse
Sir decompile is not my problem
Editing 150 xml is the problem
So im looking for a text editor which would edit many xml simultaneously
Sent from my C2305 using Tapatalk
abhishekr700 said:
Sir decompile is not my problem
Editing 150 xml is the problem
So im looking for a text editor which would edit many xml simultaneously
Sent from my C2305 using Tapatalk
Click to expand...
Click to collapse
Well with notepad++ you can find and replace
It leaves the find & replace window open when you browse between open xml tabs so manually it would only take 2 clicks to change xml tab then click replace then repeat on the next tab
I don't know if there is a button that finds & replaces across all open tabs - you will have to have a look
marcussmith2626 said:
Well with notepad++ you can find and replace
It leaves the find & replace window open when you browse between open xml tabs so manually it would only take 2 clicks to change xml tab then click replace then repeat on the next tab
I don't know if there is a button that finds & replaces across all open tabs - you will have to have a look
Click to expand...
Click to collapse
Thnks for showing me the correct path
Will write a tutorial for others too..SHOULD I WRITE IT?
Sent from my C2305 using Tapatalk

Categories

Resources