XML files corrupted after backup - Hero CDMA Themes and Apps

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

Related

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 .

how to edit a android xml file

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.

[Q] Has this happened to anyone else?

i switched roms acouple times today and this has happened one other time.
All my video files not the folders or subtitles or anything just the video files themselves have been deleted.
Using brilliant corners and bottle o smoke and bam they are gone...
all you have to do is make a no media file. basically make a new text doc on your computer and just save it as ".nomedia" You do not have to write anything in the file. This will tell the tablet not to delete any files out of this folder. put this file in every folder that has media items. I hope this helps.
Hmmm...I've never had that happen to me, but thanks for the tip fosser2
It's a known issue and easily fixed with the .nomedia file. Beware though that windows won't let you create such a file. I think most android file managers will allow you to create a file and rename it ".nomedia".
brettdwagner said:
It's a known issue and easily fixed with the .nomedia file. Beware though that windows won't let you create such a file. I think most android file managers will allow you to create a file and rename it ".nomedia".
Click to expand...
Click to collapse
Use notepad++ to make files of this type in windoze...
Sent from my Droid using XDA App
Thanks guys ill do this next time I put movies on.
brettdwagner said:
It's a known issue and easily fixed with the .nomedia file. Beware though that windows won't let you create such a file. I think most android file managers will allow you to create a file and rename it ".nomedia".
Click to expand...
Click to collapse
You can easily make this file form windows. Right-click on any explorer window and choose New>Text file. Then just rename it to .nomedia instead of NewTextDocument.txt or whatever the default is.
Scratch that. Windows says "type a file name" or something. Just use notepad++ as someone else mentioned...

[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.

Trying to convert apk to gpk

Hope this is ok to ask, I am hitting a brick wall..
I'll try and include as much detail as possible, so apologies if it's a bit long.
I am trying to convert apk to gpk - two apps in particular; MX Player and ES File Explorer
I have downloaded a tool with instructions from another forum using google translate from Burmese to English, but it's not perfect and still very hard to understand.
The name of the tool is GPKMaker.
From the instructions, I think I need the APK and the Data file folder from the same device that I am trying to install the gpk on. But I don't know how I would get the latter without installing it first..
I tried to use the MX Player Data folder
- com.mxtech.videoplayer.ad From another device to make the gpk.
I have attached a jpeg of instructions that also came with the tool (In Burmese - I can't translate).
From what I can make out, this is what I am required to have to make it work\install correctly:
(Using MX Player as the example)
FOLDER - MXPlayer with a subfolder and .ini file inside it
MXPlayer
game.ini
And inside the subfolder
MXPlayer.gpk
MXPlayer.png (Logo)
MXPlayer.xml
I have done that, and inside the game.ini file I have this written:
[MXPlayer]
package=com.mxtech.videoplayer.ad
version=1.7.40
Click to expand...
Click to collapse
and inside the XML file I have this written:
<?xml version="1.0" ?>
<Files>
<item type="gpp" path="MXPlayer.apk" offset="0" size="9976082"></item>
</Files>
Click to expand...
Click to collapse
I then place the main MXPlayer folder on the device I want to install it on, it appears and begins to install, but then stops and doesn't seem to go any further.
I'm guessing where I'm making the main mistake is the data folder.
But I can't find how or where I may get the correct folder from, would it have to be the same chipset? Or would the same cpu be sufficient?
I have tried the same steps above with the ES File Explorer and get the exact same results.
Hopefully someone can help me.
After searching extensively, I see GPK are also used for cracked/patching game files. But seems that would require the revers of what I am looking for.
As a result, there seems to be mutiple videos/links/programs for converting gpk to apk.
But no good to me, I want to convert into the file format everyone seems to be trying to get away from (typical)
Is this in the wrong subforum, or is nobody able to help?
I am really trying, but unfortunately getting nowhere.
Any reply may be helpful
[SOLVED] only if that's a real gpk file?
This is an easy fix.
That MXPlayer.gpk, is it a real .GPK file, not an .APK rename to a .gpk?
if it is a real .gpk, then you are not telling the device where the file is?
in your xml file you list MXPlayer.apk, but the file name is MXPlayer.gpk.
do that an you will the that it works.
(NOW) please tell me how did you convert an .APK file to a .GPK file, using that windows GPKMaker program?
please step-by-step.
Thanks.
Tomato_Jam said:
Hope this is ok to ask, I am hitting a brick wall..
I'll try and include as much detail as possible, so apologies if it's a bit long.
I am trying to convert apk to gpk - two apps in particular; MX Player and ES File Explorer
I have downloaded a tool with instructions from another forum using google translate from Burmese to English, but it's not perfect and still very hard to understand.
The name of the tool is GPKMaker.
From the instructions, I think I need the APK and the Data file folder from the same device that I am trying to install the gpk on. But I don't know how I would get the latter without installing it first..
I tried to use the MX Player Data folder
- com.mxtech.videoplayer.ad From another device to make the gpk.
I have attached a jpeg of instructions that also came with the tool (In Burmese - I can't translate).
From what I can make out, this is what I am required to have to make it work\install correctly:
(Using MX Player as the example)
FOLDER - MXPlayer with a subfolder and .ini file inside it
MXPlayer
game.ini
And inside the subfolder
MXPlayer.gpk
MXPlayer.png (Logo)
MXPlayer.xml
I have done that, and inside the game.ini file I have this written:
and inside the XML file I have this written:
I then place the main MXPlayer folder on the device I want to install it on, it appears and begins to install, but then stops and doesn't seem to go any further.
I'm guessing where I'm making the main mistake is the data folder.
But I can't find how or where I may get the correct folder from, would it have to be the same chipset? Or would the same cpu be sufficient?
I have tried the same steps above with the ES File Explorer and get the exact same results.
Hopefully someone can help me.
Click to expand...
Click to collapse

Categories

Resources