https://github.com/kikfox/kikfox
(AAPT independent android resources read write tool) https://github.com/REAndroid/APKEditor
Convert android resources.arsc from/to xml
https://github.com/kikfox/kikfox
(AAPT independent android resources read write tool) https://github.com/REAndroid/APKEditor
Decoding works fine
An example with this short table.xml:
<table version="0.0.2">
<packages index="1" count="1">
<package index="0" id="127" name="what.the">
<specs index="2" count="1">
<spec index="1" id="17" entryCount="301" name="string">
<types index="1" count="3">
<type index="0" id="17" configFlags="-es" configFlagsSize="64" entryCount="301"/>
<type index="1" id="17" *configFlags="-b+es+419"* configFlagsSize="64" entryCount="301"/>
<type index="2" id="17" configFlags="-es-rUS" configFlagsSize="64" entryCount="301"/>
</types>
</spec>
</specs>
</package>
</packages>
</table>
Encoding has trouble
Once built back to .arsc format then again converted to xml:
<table version="0.0.2">
<packages index="1" count="1">
<package index="0" id="127" name="what.the">
<specs index="2" count="1">
<spec index="1" id="17" entryCount="301" name="string">
<types index="1" count="3">
<type index="0" id="17" configFlags="-es" configFlagsSize="64" entryCount="301"/>
<type index="1" id="17" configFlags="" configFlagsSize="64" entryCount="301"/>
<type index="2" id="17" configFlags="-es-rUS" configFlagsSize="64" entryCount="301"/>
</types>
</spec>
</specs>
</package>
</packages>
</table>
As you can see,It can not deal with depth more than 3 levels.
I: 00.015 Dumping ... 'D:\platform-tools\Java\resources.arsc'
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
at com.kikfox.lib.arsc.AItemString.decodeUtf8StringByteLength(AItemString.java:388)
at com.kikfox.lib.arsc.AItemString.decodeString(AItemString.java:358)
at com.kikfox.lib.arsc.AItemString.decodeString(AItemString.java:205)
at com.kikfox.lib.arsc.AItemString.onBytesChanged(AItemString.java:213)
at com.kikfox.lib.arsc.AItemString.loadBytes(AItemString.java:92)
at com.kikfox.lib.arsc.ARSCArrayOffsets.loadItemBytes(ARSCArrayOffsets.java:49)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCBlockArray.loadItemBytes(ARSCBlockArray.java:39)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCResource.loadBodyBytes(ARSCResource.java:65)
at com.kikfox.lib.arsc.ARSCResource.loadItemBytes(ARSCResource.java:56)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCBlockArray.loadItemBytes(ARSCBlockArray.java:39)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCResource.loadBodyBytes(ARSCResource.java:65)
at com.kikfox.lib.arsc.ARSCResource.loadItemBytes(ARSCResource.java:56)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.command.CommandDump.dump(CommandDump.java:35)
at com.command.CommandDump.run(CommandDump.java:28)
at com.command.BaseCommand.parse(BaseCommand.java:36)
at com.command.CommandDump.parse(CommandDump.java:13)
at com.command.Command.run(Command.java:34)
at com.kikfox.arscTool.Main.main(Main.java:15)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.