Coder Social home page Coder Social logo

arashvscode / xml2axml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sectiontn/xml2axml

0.0 0.0 0.0 55 KB

This tool can be used to convert binary xml file into human readable xml file and to convert normal xml file into binary xml file.

License: Apache License 2.0

Java 100.00%

xml2axml's Introduction

Description

This tool is used to decode binary xml file from android apps into human readable xml file and to encode human readable xml file into binary xml file.

Adding in project

Just copy axml folder and add it in your project directory or download AxmlXml.jar from releases and put it in libs folder of your project.

Usage - Decoding binary xml

If you want to decode a binary xml file from sdcard and take decoded xml as a String. Then call this function.

InputStream inputFile = new FileInputStream("BinaryXmlFilePath");
String decodedXml = AxmlUtil.decode(inputFile);  

If you want to decode a binary xml file and put it somewhere in sdcard then call this function

InputStream inputFile = new FileInputStream("BinaryXmlFilePath");
AxmlUtil.decode(inputFile, "OutputFilePath");

Usage - Encoding normal xml

If you want to encode a xml file and take encoded xml as byte array then use this function

byte[] encodedXml = AxmlUtil.encodeFile("NormalXmlFilePath");

If tou want to encode xml file and put it somewhere in sdcard then use this function

AxmlUtil.encodeFile("NormalXmlFilePath", "OutputFilePath");

Usage - Using cli version

To decode a binary xml file use this command

java -jar AxmlXml-CLI.jar -d inputFilePath outputFilePath

To encode a xml file use this command

java -jar AxmlXml-CLI.jar -e inputFilePath outputFilePath

Note

Don't forget to add this rule in your proguard config file if you are using proguard.

-keep class axml.xml.** { *; } 

If you don't add this in proguard then AxmlUtil will not work while encoding a xml file.

xml2axml's People

Contributors

arashvscode avatar codehasan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.