Snapshot of openstf/adbkit-apkreader: 140★, JavaScript. Extracts information from APK files.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
This project along with other ones in OpenSTF organisation is provided as is for community, without active development.
You can check any other forks that may be actively developed and offer new/different features here.
Active development has been moved to DeviceFarmer organisation.
adbkit-apkreader
adbkit-apkreader provides a Node.js API for extracting information from Android APK files. For example, it allows you to read the AndroidManifest.xml of an existing APK file.
Requirements
Node.js 4.x or newer. Older versions are not supported.
A convenience constant with the value 'AndroidManifest.xml'. Can use useful with other API methods in certain circumstances.
ApkReader.open(file)
Alternate syntax to manually creating an ApkReader instance. Currently, only files are supported, but support for streams might be added at some point.
Note that currently this method cannot reject as the file is opened lazily, but this may change in the future and therefore returns a Promise for fewer future compatibility issues. On a related node, calling the constructor directly is still possible, but discouraged.
file The path to the APK file.
Returns: A Promise that resolves with an ApkReader instance.
reader.readContent(path)
Reads the content of the given file inside the APK.
path The path to the file. For example, giving 'META-INF/MANIFEST.MF' as the path would read the content of that file.
Returns: A Promise that resolves with a Buffer containing the full contents of the file.
reader.readManifest()
Reads and parses the AndroidManifest.xml file inside the APK and returns a simplified object representation of it.
Returns: A Promise that resolves with a JavaScript Object representation of the manifest. See example output below. Rejects on error (e.g. if parsing was unsuccessful).
Reads and parses the binary XML file at the given path inside the APK file. Attempts to be somewhat compatible with the DOM API.
path The path to the binary XML file inside the APK. For example, giving 'AndroidManifest.xml' as the path would parse the manifest (but you'll probably want to use reader.readManifest() instead).
Returns: A Promise that resolves with a JavaScript Object representation of the root node of the XML file. All nodes including the root node have the properties listed below. Rejects on error (e.g. if parsing was unsuccessful).
namespaceURI The namespace URI or null if none.
nodeType1 for element nodes, 2 for attribute nodes, and 4 for CData sections.
nodeName The node name.
For element nodes, the following additional properties are present:
attributes An array of attribute nodes.
childNodes An array of child nodes.
For attribute nodes, the following additional properties are present:
name The attribute name.
value The attribute value, if possible to represent as a simple value.
typedValue May be available when the attribute represents a complex value. See android.util.TypedValue for more information. Has the following properties:
value The value, which might null, String, Boolean, Number or even an Object for the most complex types.
type A String representation of the type of the value.
rawType A raw integer presentation of the type of the value.
For CData nodes, the following additional properties are present:
data The CData.
typedValue May be available if the section represents a more complex type. See above for details.
reader.usingFileStream(path, action)
Opens a readable Stream to the given file inside the APK and runs the given action with it. The APK file is kept open while the action runs, allowing you to process the stream. Once the action finishes, the APK will be automatically closed.
path The path to the file. For example, giving 'META-INF/MANIFEST.MF' as the path would open that file.
action(stream) A function that processes the stream somehow. MUST return a Promise that resolves when you're done processing the stream. The value that the Promise resolves with will also be the value that usingFileStream() resolves with.
stream A readable Stream of the file content. You should either consume or end the stream yourself before resolving the action.
Returns: A Promise that resolves with whatever action resolves with.
More information
android.util.TypedValue For more information about value types.
Dong Liu's excellent Java-based APK parser, which was used as a reference implementation.
A detailed blog port about Android's binary XML format
Stackoverflow discussion about the topic
android-apktool The most advanced CLI/Java-based APK tool.
Does openstf/adbkit-apkreader have a project website?
No homepage URL was recorded for openstf/adbkit-apkreader in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Does openstf/adbkit-apkreader have any tags?
TopGit's last sync did not record any GitHub topics for openstf/adbkit-apkreader. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on openstf/adbkit-apkreader?
The most recent commit recorded on openstf/adbkit-apkreader was 3.6 years ago, based on the GitHub push timestamp. The repository has 43 forks — one of the better signals of community interest.
How many stars does openstf/adbkit-apkreader have?
openstf/adbkit-apkreader has 140 GitHub stars — refresh the page for the live number, or check github.com/openstf/adbkit-apkreader. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is openstf/adbkit-apkreader open source?
TopGit's metadata for openstf/adbkit-apkreader does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
Where do I read more about openstf/adbkit-apkreader?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/openstf/adbkit-apkreader is the definitive source.
Read full README in the tab above.
Want a second opinion on adbkit-apkreader?
Ask an AI that can read this page — one click and you get its take on adbkit-apkreader.