{ "info": { "author": "candledragle", "author_email": "s_abcabc@126.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "\n## APK parse\n\n reference [androguard][androguard-url].\n\n\n[androguard-url]: https://github.com/androguard/androguard\n\n## Example:\n\n```\n\n apkf = APK(\"myfile.apk\")\n apkf = APK(read(\"myfile.apk\"), raw=True)\n```\n\n### package\n\nReturn the name of the package\n\n```\n\n >>> apkf.package\n com.android.vending\n\n >>> apkf.get_package()\n com.android.vending\n```\n\n### file_md5\n\nReturn the file md5 of the apk\n\n```\n\n >>> apkf.file_md5\n 40bdd920a3a3d2acf432e3c5b485eb11\n```\n\n### cert_md5\n\nReturn the cert md5 of the apk\n\n```\n\n >>> apkf.cert_md5\n cde9f6208d672b54b1dacc0b7029f5eb\n```\n\n### file_size\n\nReturn the apk file size\n\n```\n\n >>> apkf.file_size\n 11194863\n```\n\n### androidversion\n\nReturn the apk version\n\n```\n\n >>> apkf.androidversion\n {'Code': u'80341200', 'Name': u'5.4.12'}\n```\n\n### get_androidversion_code()\n\nReturn the android version code\n\n```\n\n >>> apkf.get_androidversion_code()\n 80341200\n```\n\n### get_androidversion_name()\n\nReturn the android version name\n\n```\n\n >>> apkf.get_androidversion_name()\n 5.4.12\n```\n\n\n### get_min_sdk_version()\n\nReturn the android:minSdkVersion attribute\n\n```\n\n >>> apkf.get_min_sdk_version()\n 9\n```\n\n\n### get_target_sdk_version()\n\nReturn the android:targetSdkVersion attribute\n\n```\n\n >>> apkf.get_target_sdk_version()\n 21\n```\n\n### get_libraries()\n\nReturn the android:name attributes for libraries\n\n```\n\n >>> apkf.get_libraries()\n []\n```\n\n### get_files()\n\nReturn the files inside the APK\n\n```\n\n >>> apkf.get_files()\n [u'AndroidManifest.xml', u'assets/keys/dcb-pin-encrypt-v1/1',...]\n```\n\n### get_files_types()\n\nReturn the files inside the APK with their associated types (by using python-magic)\nPlease `pip install python-magic`\n\n```\n >>> apkf.get_files_types()\n {u'res/layout/play_card_bundle_item_small.xml': \"Android's binary XML\",...}\n```\n\n\n### get_main_activity()\n\nReturn the name of the main activity\n\n```\n\n >>> apkf.get_main_activity()\n com.android.vending.AssetBrowserActivity\n```\n\n### get_activities()\n\nReturn the android:name attribute of all activities\n\n```\n\n >>> apkf.get_activities()\n ['com.android.vending.AssetBrowserActivity', ...]\n```\n\n### get_services()\n\nReturn the android:name attribute of all services\n\n```\n\n >>> apkf.get_services()\n ['com.android.vending.GCMIntentService', ...]\n```\n\n### get_receivers()\n\nReturn the android:name attribute of all receivers\n\n```\n\n >>> apkf.get_receivers()\n ['com.google.android.gcm.GCMBroadcastReceiver', ...]\n```\n\n\n### get_providers()\n\nReturn the android:name attribute of all providers\n\n```\n\n >>> apkf.get_providers()\n ['com.google.android.finsky.providers.RecentSuggestionsProvider', ...]\n```\n\n### get_permissions()\n\nReturn permissions\n\n```\n\n >>> apkf.get_permissions()\n ['com.android.vending.permission.C2D_MESSAGE', ...]\n```\n\n### show()\n\nReturn FILES, PERMISSIONS, MAIN ACTIVITY...\n\n```\n\n >>> apkf.show()\n FILES: ...\n```\n\n### parse_icon()\n\nParse ICON of the apk, storage on icon_path\n\n```\n\n >>> apkf.parse_icon(icon_path='/tmp')\n ...\n```\n\n### cert_text\n\n```\n\n >>> apkf.cert_text\n Certificate:\n Data:Version: 3 (0x2)\n ...\n\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/candledragle/apk_parse.git", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "apk-parse", "package_url": "https://pypi.org/project/apk-parse/", "platform": "", "project_url": "https://pypi.org/project/apk-parse/", "project_urls": { "Homepage": "https://github.com/candledragle/apk_parse.git" }, "release_url": "https://pypi.org/project/apk-parse/1.0.0/", "requires_dist": null, "requires_python": ">=2.7", "summary": "parse the Apk file AndroidManifest.xml", "version": "1.0.0" }, "last_serial": 4620531, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f4aa791142882de6f32407db07b2132d", "sha256": "0797e9ce5b3218484085dedd5f71e0aed0845952df93b7303a24f353ab00e6dd" }, "downloads": -1, "filename": "apk_parse-1.0.0-py3.6.egg", "has_sig": false, "md5_digest": "f4aa791142882de6f32407db07b2132d", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": ">=2.7", "size": 62529, "upload_time": "2018-12-20T11:58:45", "url": "https://files.pythonhosted.org/packages/23/a1/68cb7a5e3a73ac9736d48f61b911dd4cda09dc55d7a313992b235ae2bb7c/apk_parse-1.0.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "ad78b55a108257a67bab9f0a654e1e26", "sha256": "b03fdf14275a5e9ad26058827fcd02f11751dbe22fe1b4b01a4e2febf8b42b21" }, "downloads": -1, "filename": "apk_parse-1.0.0-py3.7.egg", "has_sig": false, "md5_digest": "ad78b55a108257a67bab9f0a654e1e26", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=2.7", "size": 62537, "upload_time": "2018-12-20T11:58:46", "url": "https://files.pythonhosted.org/packages/16/9e/caf084013aff123e845293917808417dd1a6102ad90e21585c086e7c544e/apk_parse-1.0.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "3acbffba3f59b8d1a2cfe5d9033b55f7", "sha256": "0518c891d8bb903e952a5b70de0d9fe5f478594e37bdb0826561ecc4d86fccfa" }, "downloads": -1, "filename": "apk_parse-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3acbffba3f59b8d1a2cfe5d9033b55f7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7", "size": 50171, "upload_time": "2018-12-20T11:58:42", "url": "https://files.pythonhosted.org/packages/1e/6e/23b4ed8ff4eb832e1db9a6dc85aaa3c7cd95eff390f8e325b9a0fc5c606d/apk_parse-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a8adf77c7ffb03df3323f7c6cddb96e", "sha256": "348be49a12c08a623ecee27a967ad24478b038f280898f4e3cc4f1e2a70432a5" }, "downloads": -1, "filename": "apk_parse-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4a8adf77c7ffb03df3323f7c6cddb96e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 50024, "upload_time": "2018-12-20T11:58:49", "url": "https://files.pythonhosted.org/packages/10/a3/4de3596eef8d017850a6b984540ef004fc60d442eff4cc131e864d921506/apk_parse-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f4aa791142882de6f32407db07b2132d", "sha256": "0797e9ce5b3218484085dedd5f71e0aed0845952df93b7303a24f353ab00e6dd" }, "downloads": -1, "filename": "apk_parse-1.0.0-py3.6.egg", "has_sig": false, "md5_digest": "f4aa791142882de6f32407db07b2132d", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": ">=2.7", "size": 62529, "upload_time": "2018-12-20T11:58:45", "url": "https://files.pythonhosted.org/packages/23/a1/68cb7a5e3a73ac9736d48f61b911dd4cda09dc55d7a313992b235ae2bb7c/apk_parse-1.0.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "ad78b55a108257a67bab9f0a654e1e26", "sha256": "b03fdf14275a5e9ad26058827fcd02f11751dbe22fe1b4b01a4e2febf8b42b21" }, "downloads": -1, "filename": "apk_parse-1.0.0-py3.7.egg", "has_sig": false, "md5_digest": "ad78b55a108257a67bab9f0a654e1e26", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=2.7", "size": 62537, "upload_time": "2018-12-20T11:58:46", "url": "https://files.pythonhosted.org/packages/16/9e/caf084013aff123e845293917808417dd1a6102ad90e21585c086e7c544e/apk_parse-1.0.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "3acbffba3f59b8d1a2cfe5d9033b55f7", "sha256": "0518c891d8bb903e952a5b70de0d9fe5f478594e37bdb0826561ecc4d86fccfa" }, "downloads": -1, "filename": "apk_parse-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3acbffba3f59b8d1a2cfe5d9033b55f7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7", "size": 50171, "upload_time": "2018-12-20T11:58:42", "url": "https://files.pythonhosted.org/packages/1e/6e/23b4ed8ff4eb832e1db9a6dc85aaa3c7cd95eff390f8e325b9a0fc5c606d/apk_parse-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a8adf77c7ffb03df3323f7c6cddb96e", "sha256": "348be49a12c08a623ecee27a967ad24478b038f280898f4e3cc4f1e2a70432a5" }, "downloads": -1, "filename": "apk_parse-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4a8adf77c7ffb03df3323f7c6cddb96e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 50024, "upload_time": "2018-12-20T11:58:49", "url": "https://files.pythonhosted.org/packages/10/a3/4de3596eef8d017850a6b984540ef004fc60d442eff4cc131e864d921506/apk_parse-1.0.0.tar.gz" } ] }