The AndroidManifest.xml file when compiled and packaged in the apk turns into a binary xml file. I give this information in case there is a difference between this one and regular binary xml files, but I'm not certain if there is.
I need to get information contained in this xml file. There are tools for java and python but I haven't found anything for .Net. How can I read this file in .NET?
This is the most promising solution I've found but it still doesn't display the text in a human readable format.
using (BinaryReader b = new BinaryReader(File.Open(filePath, FileMode.Open), Encoding.ASCII)) {
int pos = 0;
int length = (int)b.BaseStream.Length;
while (pos < length) {
char v = b.ReadChar();
Console.Write(v);
pos += sizeof(char);
}
}
Any ideas what I'm doing wrong ?
I've tried with different encodings when creating the BinaryReader and they haven't worked.
Thanks.