rednaga / axmlprinter Goto Github PK
View Code? Open in Web Editor NEWLibrary for parsing and printing compiled Android manifest files
License: Apache License 2.0
Library for parsing and printing compiled Android manifest files
License: Apache License 2.0
[53%]tstrazzere@mil0:[~/repo/unpackme/contents] $ axmlprinter AndroidManifest.xml
java.io.EOFException
at android.content.res.IntReader.readInt(IntReader.java:104)
at android.content.res.IntReader.readShort(IntReader.java:69)
at android.content.res.chunk.sections.StringSection.readPool(StringSection.java:108)
at android.content.res.chunk.sections.StringSection.readSection(StringSection.java:71)
at android.content.res.chunk.sections.GenericChunkSection.<init>(GenericChunkSection.java:37)
at android.content.res.chunk.sections.StringSection.<init>(StringSection.java:48)
at android.content.res.chunk.ChunkUtil.createChunk(ChunkUtil.java:52)
at android.content.res.AXMLResource.read(AXMLResource.java:92)
at diff.rednaga.AXMLPrinter.main(AXMLPrinter.java:69)
<?xml version="1.0" encoding="utf-8"?>
Likely related to qihoo360 / jiagu protector
Sample : e15f2b96e52d78f317de97295e22f0c3ace38961
<permission
android:label="@7F04000F"
android:name="com.sprint.permission.INSTALL_UPDATES"
android:protectionLevel=""
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:description="@7F04000E"
>
</permission>
<permission
android:label="@7F040010"
android:name="com.sprint.permission.INSTALL_LOCAL_UPDATES"
android:protectionLevel=""
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:description="@7F04000E"
>
</permission>
<permission
android:label="@7F040022"
android:name="com.sprint.permission.UNINSTALL_UPDATES"
android:protectionLevel=""
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:description="@7F040021"
>
</permission>
<permission
android:label="@7F040024"
android:name="com.sprint.permission.UNINSTALL_SELF"
android:protectionLevel=""
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:description="@7F040023"
>
</permission>
In this specific example, they should be parsed as "signature"
How to restore to xml after toXml() can read xml
I just downloaded / built the source code, and there seem to be some major issues.
Built on macOS High Sierra using Java JDK v8u151
Extracting Instagram (com.instagram.android
)
This is the behavior I'm seeing:
<
or a >
(happens at the first <TextView />
)Here's the full output. The results were similar for several apps / layout files:
<?xml version="1.0" encoding="utf-8"?>
<
LinearLayou
xmlns:androi="*http://schemas.android.com/apk/res/androi"
androi:
orientatio="0"
androi:i="@7F0B00D4"
androi:
backgroun="@7F020033"
androi:
paddingLef="@7F0A0022"
androi:
paddingRigh="@7F0A0022"
androi:
layout_widt="-1"
layout_heigh="@7F0A001F"
>
<:com.instagram.common.ui.widget.imageview.CircularImageVie
androi:layout_gravit=""
androi:i="@7F0B00D5"
styl="@7F0E0029"
>
</:com.instagram.common.ui.widget.imageview.CircularImageVie>
<
LinearLayou
androi:gravit=""
androi:
orientatio="1"
androi:
layout_widt="-1"
layout_heigh="-1"ndroi:
androi:layout_marginLef="@7F0A0023"
androi:layout_marginRigh="@7F0A0023"
>
TextVie
androi: textStyl=""
androi: ellipsiz="3"
androi:i="@7F0B00D6"
androi:
layout_widt="-2"
layout_heigh="-2" androi:
androi:
singleLin="true"
>
<TextVie>
TextVie
androi: textColo="@7F08005A"
androi: ellipsiz="3"
androi:i="@7F0B00D7"
androi:
layout_widt="-2"
layout_heigh="-2" androi:
androi:
singleLin="true"
>
<TextVie>
</
LinearLayou>
</
LinearLayou>
Need to be able to handle non-null spaces strings as string attributes.
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.