Huawei Mate 9: What is wrong with this phones .xml files!? - Huawei Mate 9 Questions & Answers

I don't even know what to ask other than why are these .xml files not displaying even though...there is clearly data in them?!
None of the .apk files can be edited as they all have, "broken", .xml files. What is this!?
No browser or, viewer or explorer will parse these files. Why?

What apks are you trying to edit?
And are you decompiling them?
Most seem to display fine, but using root explorer's view option.

Related

Is it necessary to unsign a *.dll file before editing it?

Does anybody know, if it's necessary to unsign a *.dll file from the windows folder on the phone memory when you want to edit it using Reshacker?
Or can i edit it directly whitout unsigning?
You should be okay editing it without unsigning, but you will probably need to sign it after you've edited it.

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

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] 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