{"id":19339721,"url":"https://github.com/rubenv/node-apk-parser","last_synced_at":"2026-03-05T21:06:52.536Z","repository":{"id":8083100,"uuid":"9496523","full_name":"rubenv/node-apk-parser","owner":"rubenv","description":"Extract Android Manifest info from an APK file.","archived":false,"fork":false,"pushed_at":"2020-04-17T17:59:19.000Z","size":6161,"stargazers_count":80,"open_issues_count":5,"forks_count":26,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-02T06:43:11.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubenv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-17T12:04:46.000Z","updated_at":"2024-09-13T06:51:07.000Z","dependencies_parsed_at":"2022-08-06T08:15:47.861Z","dependency_job_id":null,"html_url":"https://github.com/rubenv/node-apk-parser","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fnode-apk-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fnode-apk-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fnode-apk-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fnode-apk-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubenv","download_url":"https://codeload.github.com/rubenv/node-apk-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250357566,"owners_count":21417307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T03:23:30.197Z","updated_at":"2026-03-05T21:06:52.484Z","avatar_url":"https://github.com/rubenv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apk-parser - Android apk-file parser\n\n\u003e Extract Android Manifest info from an APK file.\n\n[![Build Status](https://travis-ci.org/rubenv/node-apk-parser.png?branch=master)](https://travis-ci.org/rubenv/node-apk-parser)\n\nWhile there are some implementations for this out in the wild, none of them handle all of the intricacies of the APK file-format. This module uses the `aapt` tool from the Android SDK to solve that problem. The tool will be downloaded and installed during `npm install`. Tested on Linux and OS X.\n\n## Using 64-bit Ubuntu?\n\nNewer versions of Ubuntu don't support 32-bit executables by default. `aapt` is a 32-bit executable. In order for `apk-parser` to work from 64-bit Ubuntu, you need to execute the following commands to install 32-bit support:\n\n```ruby\nsudo dpkg --add-architecture i386\nsudo apt-get -qqy update\nsudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386\n```\n\n## Getting started\n\nAdd apk-parser to your project: `npm install --save apk-parser`.\n\nSample usage:\n\n```js\nvar parseApk = require('apk-parser');\nparseApk('myApkFile.apk', function (err, data) {\n    // Handle error or do something with data.\n});\n```\n\nThe returned data object is an object-representation of the `AndroidManifest.xml` file. Here's a sample file:\n\n```js\n{\n    \"manifest\": [\n        {\n            \"@package\": \"com.example.android.snake\",\n            \"uses-permission\": [\n                {\n                    \"@android:name\": \"android.permission.INTERNET\"\n                }\n            ],\n            \"application\": [\n                {\n                    \"@android:label\": \"Snake on a Phone\",\n                    \"activity\": [\n                        {\n                            \"@android:theme\": \"@0x1030006\",\n                            \"@android:name\": \"Snake\",\n                            \"@android:screenOrientation\": 1,\n                            \"@android:configChanges\": \"(type 0x11)0xa0\",\n                            \"intent-filter\": [\n                                {\n                                    \"action\": [\n                                        {\n                                            \"@android:name\": \"android.intent.action.MAIN\"\n                                        }\n                                    ],\n                                    \"category\": [\n                                        {\n                                            \"@android:name\": \"android.intent.category.LAUNCHER\"\n                                        }\n                                    ]\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}\n```\n\nThings to note:\n\n* The top-level element is a key named `manifest`.\n* Attributes are encoded by prepending their name with `@`.\n* Child nodes can be accessed by name. The value is always an array, as there might be more than one array.\n* This representation is unaware of the meaning of this file (you might know that there will always only be one `application` tag, the module does not). This make sure that it never breaks with future Android releases.\n\nYou can increase the buffer size when needed, but do note that it comes with a memory cost:\n\n```js\nparseApk('myApkFile.apk', 8 * 1024 * 1024, function (err, data) {\n    // Handle error or do something with data.\n});\n```\n\n## Contributing\nAll code lives in the `lib` folder. Try to stick to the style conventions used in existing code.\n\nTests can be run using `grunt test`. A convenience command to automatically run the tests is also available: `grunt watch`. Please add test cases when adding new functionality: this will prove that it works and ensure that it will keep working in the future.\n    \n## License \n\n    (The MIT License)\n\n    Copyright (C) 2013-2015 by Ruben Vermeersch \u003cruben@rocketeer.be\u003e\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fnode-apk-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenv%2Fnode-apk-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fnode-apk-parser/lists"}