how to edit a android xml file - General Questions and Answers

yea so I'm wondering how do you edit a android xml file exactly ?

An xml file is just text and some formatting. You can edit xml files with any text editor, even notepad.
For this kind of thing, I recommend PsPad...it's free and is able to handle the formatting/tabbing of all sorts of files.

now i'm getting there lol but when i open it up its all hex

i would like to learn this as well..thanks

furrelkt said:
i would like to learn this as well..thanks
Click to expand...
Click to collapse
Have you tried PsPad ?

i need help
the_scotsman said:
An xml file is just text and some formatting. You can edit xml files with any text editor, even notepad.
For this kind of thing, I recommend PsPad...it's free and is able to handle the formatting/tabbing of all sorts of files.
Click to expand...
Click to collapse
I have opened some xml, plist etc files before. I came across one recently that will not open no matter the editor. It says error blah blah blah.
i guess it's the encoding thing. please can you help?
I have also attached the file i want to open and the image of the error message received so you can be informed of exactly what I am saying.

Related

XML files corrupted after backup

I'm trying to backup .apk files to my sdcard via AppManager and then open up the XML files to see if I can tweak it, however whenever I try to do this, with any .apk file, it's always messed up and no matter what program I use to edit the .xml file it won't display and it comes up with errors.
Anyone know why this is and/or how to fix it?
Gregalous said:
I'm trying to backup .apk files to my sdcard via AppManager and then open up the XML files to see if I can tweak it, however whenever I try to do this, with any .apk file, it's always messed up and no matter what program I use to edit the .xml file it won't display and it comes up with errors.
Anyone know why this is and/or how to fix it?
Click to expand...
Click to collapse
They are a strange mix of binary and hex. It's not a human readable xml.
So is there any way to edit them?
Gregalous said:
So is there any way to edit them?
Click to expand...
Click to collapse
Seems like there is a program that will read and convert them to human readable, but you can't edit them and have the changes saved. I will post back when I find it.
The java program is called AXMLPrinter2 and can be run from a command prompt, which converts to TXT.
I'll refer to Stericson's post here on editing Android XML files

Cant figure out how to change Sprint banner

I dont know how to use CDMA workshop or Hex edit, but I really want to change my Sprint banner. Is there a way to do this using terminal emulator?
No, but a hex editor is pretty self explanatory imo.
If only I had your level of skill and intelligence. I could not even get past step 1. I download the file. The instructions say to remove the .txt extension, but when I download it, it is already in .xml but it is a .txt document, and I cant figure out how to change it.
http://forum.xda-developers.com/showthread.php?t=801537
fmedina2 said:
If only I had your level of skill and intelligence. I could not even get past step 1. I download the file. The instructions say to remove the .txt extension, but when I download it, it is already in .xml but it is a .txt document, and I cant figure out how to change it.
http://forum.xda-developers.com/showthread.php?t=801537
Click to expand...
Click to collapse
goto your folder options in windows and uncheck "hide extensions for known file types".. then you can see the .txt extension in windows
http://www.wikihow.com/Disable-Hidden-File-Extensions-in-Windows-XP Same instructions for XP, Vista, 7
Otherwise CDMA workshop is on isohunt.com if you search for it. Get the cracked version. It will report a false positive with most anti-virus.. no virus though.
Editing now. Never tried to use adb, lets see if I can conquer that...
After I put in the modified version of the .xml how do I 'close the file', or put the framework-res folders contents back into the .apk since I unzipped it. Or do I just push the .apk and leave the extracted folder alone?
Nvm, got it.
fmedina2 said:
Nvm, got it.
Click to expand...
Click to collapse
Assuming this means you got it working? Best bet, for future reference, for help with a specific mod, is to try and post in that particular thread. I know the guy who did the hex edit approach, and he's pretty willing to help .

[Q] XML editing (this certain file)

My problem isnt to know what i should edit, it's more like when i open this file (attached here) i'm getting random text which most likely indicates that it's unreadable.
I tried using notepad at first, then dreamweaver and at last some XML editor from microsoft. All failed. I dont think it's something wrong with the file since it works fine.
Anyone able to get it right? Thanks in advance.

Any way to possibly edit the PSoriginalWallpaper with more colors?

Any way to possibly edit the PSoriginalWallpaper with more colors?
or the other one the second psp wave wallpaper?
I really like them but i wish that it had a black a slick black color like the original PS3 had before FW 3.0
I've searched but its all confusing.
BTW i have a R800x with the held back FW 2.3.3 Verizon
You can download this:
https://market.android.com/details?...azyzenlab.wavelivewallpaper.lite&rdot=1&pli=1
And you can make the background black like you want.
Or alternatively
"market.android.com/details?id=com.danielcotton.ps3lwp"
Copy/paste into browser!
I was looking for a free solution
Ive googled and few threads talk about possibility of editing .apk extracted as zip files that are Live wallpaper ...
But no in details how to go about....
and i've tried the simple method of text / hex edit and it's all scrambled files ....
MDX260 said:
I was looking for a free solution
Ive googled and few threads talk about possibility of editing .apk extracted as zip files that are Live wallpaper ...
But no in details how to go about....
and i've tried the simple method of text / hex edit and it's all scrambled files ....
Click to expand...
Click to collapse
Lol dude you aint gonna be able to hex edit a jar/apk file.
You need a decompiler
signature tool
alot of tools to do it depending on what apk it is.
for editing png you will just want to extract the data
rename the apk to .jar extension
then use an extraction tool to unpack the jar.
the files your looking for will more then likely be in /res/drawable-hdpi/
also you're going to need photoshop to do the img edits more then likely
Well image editing is not a prob for me, I'm a web designer.
I've messed around with codes all my life but I don't know how apk files are made .
I've searched and seen people saying .apk is just a zip which does extract when renamed and i do see alot of text files and a few files that aren't text editable
MDX260 said:
Well image editing is not a prob for me, I'm a web designer.
I've messed around with codes all my life but I don't know how apk files are made .
I've searched and seen people saying .apk is just a zip which does extract when renamed and i do see alot of text files and a few files that aren't text editable
Click to expand...
Click to collapse
I think thats because the live wall paper apks dont actually contain the image data from the live wall-papers
I will do a search and try to find where the apk is referencing

[Q] How to modify any android apk file?

I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
To edit any apk is necessary Apktool. Look this guide and try edit:
http://www.xda-developers.com/decompile-edit-and-recompile-in-one-tool-with-apk-studio/
gamer22881 said:
I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
Click to expand...
Click to collapse
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
ИΘΘK¡€ said:
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
Click to expand...
Click to collapse
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
gamer22881 said:
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
Click to expand...
Click to collapse
It will help you with actually being able to make edits to text files without screwing up all of the line endings and encoding.

Categories

Resources