{"id":20117451,"url":"https://github.com/REAndroid/APKEditor","last_synced_at":"2025-05-06T14:30:56.924Z","repository":{"id":64614072,"uuid":"576398953","full_name":"REAndroid/APKEditor","owner":"REAndroid","description":"Powerful android apk editor - aapt/aapt2 independent","archived":false,"fork":false,"pushed_at":"2024-11-08T19:57:49.000Z","size":98329,"stargazers_count":920,"open_issues_count":18,"forks_count":139,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-11-08T20:38:10.648Z","etag":null,"topics":["android","android-reverse-engineering","apk","apk-compiler","apk-editor","apk-merger","apkeditor","arsc","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/REAndroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-09T18:55:41.000Z","updated_at":"2024-11-08T19:57:53.000Z","dependencies_parsed_at":"2023-12-29T21:53:23.703Z","dependency_job_id":"b509f01d-01ec-4744-aff7-ffbe310e8469","html_url":"https://github.com/REAndroid/APKEditor","commit_stats":null,"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/REAndroid%2FAPKEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/REAndroid%2FAPKEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/REAndroid%2FAPKEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/REAndroid%2FAPKEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/REAndroid","download_url":"https://codeload.github.com/REAndroid/APKEditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224509480,"owners_count":17323077,"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":["android","android-reverse-engineering","apk","apk-compiler","apk-editor","apk-merger","apkeditor","arsc","java"],"created_at":"2024-11-13T19:00:32.177Z","updated_at":"2024-11-13T19:02:17.599Z","avatar_url":"https://github.com/REAndroid.png","language":"Java","readme":"\u003cdetails\u003e\u003csummary\u003e 👈 \u003ccode\u003e\u003ci\u003e Click arrows to expand/collapse details on this page \u003c/i\u003e\u003c/code\u003e\u003c/summary\u003e\u003c/details\u003e\n\n# APKEditor\n### Powerful android apk resources editor\nThis tool uses [ARSCLib](https://github.com/REAndroid/ARSCLib) to edit any apk resources and has six main features\n\n\u003cdetails\u003e\u003csummary\u003e\u003ccode\u003ejava -jar APKEditor.jar \u003cb\u003e-h\u003c/b\u003e\u003c/code\u003e\u003c/summary\u003e\n\n```ShellSession\n$ java -jar APKEditor.jar -h\nAPKEditor - x.x.x\nUsing: ARSCLib-x.x.x\nhttps://github.com/REAndroid/APKEditor\nAndroid binary resource files editor\nUsage: \n java -jar APKEditor.jar \u003ccommand\u003e \u003cargs\u003e\n commands: \n  1)  d | decode     -   Decodes android resources binary to readable json\n  2)  b | build      -   Builds android binary from json\n  3)  m | merge      -   Merges split apk files from directory or XAPK, APKM, APKS ...\n  4)  x | refactor   -   Refactors obfuscated resource names\n  5)  p | protect    -   Protects/Obfuscates apk resource\n  6)  info           -   Prints information of apk\n run with \u003ccommand\u003e -h to get detailed help about each command\n \n```\n\u003c/details\u003e\n\n#### 1- Decompile\n* Decompiles resources of apk to human readable json string.\n* Decompiles resources of apk to XML source code (for un-obfuscated apk only). Use  ``` -t xml ```\n\u003cdetails\u003e \u003csummary\u003e\u003ccode\u003ejava -jar APKEditor.jar \u003cb\u003ed\u003c/b\u003e -i path/to/your-file.apk\u003c/code\u003e\u003c/summary\u003e\n\n```ShellSession\n$ java -jar APKEditor.jar d -i test.apk -o test_json\n00.000 I: [DECOMPILE] Decompiling ...\n Input: test.apk\nOutput: test_json\n ---------------------------- \n00.036 I: [DECOMPILE] Loading ...\n00.129 I: [DECOMPILE] Decompiling to json ...\n30.093 I: [DECOMPILE] Done\n```\n\n\u003c/details\u003e\n\n#### 2- Build\nBuilds back to apk from decompiled json/XML files\n\u003cdetails\u003e \u003csummary\u003e\u003ccode\u003ejava -jar APKEditor.jar \u003cb\u003eb\u003c/b\u003e -i path/to/decompiled-directory\u003c/code\u003e\u003c/summary\u003e\n\n```ShellSession\n$ java -jar APKEditor.jar b -i test_json -o test_edited.apk\n\n00.000 I: [BUILD] Building ...\n Input: test_json/base\nOutput: test_edited.apk\n ---------------------------- \n00.048 I: [BUILD] Scanning directory ...\n00.247 I: [BUILD] Writing apk...\n22.032 [BUILD] Writing: method=STORED total=284921526 bytes : resources.arsc  \n25.009 I: [BUILD] Zip align ...\n27.101 I: [BUILD] Saved to: test_edited.apk\n30.217 I: [BUILD] Done\n```\n\u003c/details\u003e\n\n#### 3- Merge\nMerges multiple splitted apk files (directory, xapk, apkm, apks ...) to standalone apk\n\u003cdetails\u003e \u003csummary\u003e\u003ccode\u003ejava -jar APKEditor.jar \u003cb\u003em\u003c/b\u003e -i path/to/input\u003c/code\u003e\u003c/summary\u003e\n\n ```ShellSession\n$ java -jar APKEditor.jar m -i apk_files\n00.049 I: [MERGE] Merging ...\n   Input: apk_files\n Output: apk_files_merged.apk\n ---------------------------- \n00.050 I: [MERGE] Searching apk files ...\n00.060 I: [MERGE] Found apk files: 3           \n00.192 I: [MERGE] Found modules: 3\n00.302 I: [MERGE] Merging: base\n00.307 I: [MERGE] Added [base] classes.dex -\u003e classes.dex\n00.308 I: [MERGE] Merging resource table: base\n01.302 I: [MERGE] Merging: config.xxhdpi-1\n01.304 I: [MERGE] Merging resource table: config.xxhdpi-1\n01.386 [MERGE] tum_ic_visibility_white_24.png\n01.386 I: [MERGE] Merging: config.arm64_v8a-1\n01.390 [MERGE] : lib/arm64-v8a/libnativeai.so\n\n01.475 I: [MERGE] Sanitizing manifest ...\n01.478 I: [MERGE] Removed: extractNativeLibs\n01.480 I: [MERGE] Removed: isSplitRequired\n\n01.480 I: [MERGE] Writing apk...\n03.686 [MERGE] Writing: total=47693672 bytes : resources.arsc\n03.729 I: [MERGE] Zip align ... \n04.611 I: [MERGE] Saved to: apk_files_merged.apk\n04.700 I: [MERGE] Done\n\n```  \n![apkmerger](/.github/apkmerger.png)\n\n\u003c/details\u003e\n\n#### 4- Refactor\nRefactors obfuscated resource entry names\n\u003cdetails\u003e \u003csummary\u003e\u003ccode\u003ejava -jar APKEditor.jar \u003cb\u003ex\u003c/b\u003e -i path/to/input.apk\u003c/code\u003e\u003c/summary\u003e\n\n ```ShellSession\n$ java -jar APKEditor.jar x -i input.apk\n00.000 I: [REFACTOR] Refactoring ...\n   Input: input.apk\n Output: input_refactored.apk\n ---------------------------- \n00.017 I: [REFACTOR] Loading apk: input.apk\n00.952 I: [REFACTOR] Renamed entries: 5888\n00.954 I: [REFACTOR] Writing apk ...\n03.268 [REFACTOR] Writing: total=47589184 bytes : resources.arsc              \n03.350 I: [REFACTOR] Zip align ...\n03.504 I: [REFACTOR] Saved to: input_refactored.apk\n03.504 I: [REFACTOR] Done\n\n```  \n\n\u003c/details\u003e\n\n#### 5- Protect\nProtects apk resources against almost all known decompile/modify tools.\n\u003cdetails\u003e \u003csummary\u003e\u003ccode\u003ejava -jar APKEditor.jar \u003cb\u003ep\u003c/b\u003e -i path/to/input.apk\u003c/code\u003e\u003c/summary\u003e\n\n ```ShellSession\n00.026 I: [PROTECT] Protecting ...\n   Input: test.apk\n Output: test_protected.apk\n ---------------------------- \n00.027 I: [PROTECT] Loading apk file ...\n00.052 I: [PROTECT] Protecting files ..\n00.454 I: [PROTECT] Protecting resource table ..\n00.474 I: [PROTECT] Writing apk ...\n02.264 [PROTECT] Writing: total=47654392 bytes : resources.arsc              \n02.346 I: [PROTECT] Zip align ...\n02.451 I: [PROTECT] Saved to: test_protected.apk\n02.451 I: [PROTECT] Done\n\n```  \n\n\u003c/details\u003e\n\n#### 6- Info  (⭐NEW⭐)\nPrints/dumps from basic up to detailed information of apk.\n\u003cdetails\u003e \u003csummary\u003e\u003ccode\u003ejava -jar APKEditor.jar \u003cb\u003einfo\u003c/b\u003e -v -resources -i input.apk \u003c/code\u003e\u003c/summary\u003e\n\n ```ShellSession\nPackage name=com.mypackage id=0x7f\n  type string id=1 entryCount=1\n    resource 0x7f010000 string/app_name\n      () My Application\n      (-de) Meine Bewerbung\n      (-ru-rRU) Мое заявление\n  type mipmap id=2 entryCount=1\n    resource 0x7f020000 mipmap/ic_launcher_round\n      () res/mipmap/ic_launcher_round.png\n  type drawable id=3 entryCount=1\n    resource 0x7f030000 drawable/ic_launcher\n      () #006400\n\n```  \n\n\u003c/details\u003e\n\n\n---\n\n***Build executable jar***\n\u003cdetails\u003e \u003csummary\u003e \u003ccode\u003e ./gradlew fatJar \u003c/code\u003e \u003c/summary\u003e\n\n ```ShellSession\n \n# NB: Due to my lazyness , the dependency ARSCLib.jar is pre-built and placed under APKEditor/libs/ARSCLib.jar or you can build yourself and replace it.\ngit clone https://github.com/REAndroid/APKEditor\ncd APKEditor\n./gradlew fatJar\n# Executable jar will be placed ./build/libs/APKEditor-x.x.x.jar\n\n ```\n \u003c/details\u003e\n\n***Downloads***\n* [Latest release with pre-built executable jar](https://github.com/REAndroid/APKEditor/releases/latest)\n\n***Contribute***\n* Everyone is so welcome in this project, if you have some code improvements please make a pull request\n* Please share your ideas / thoughts in [discussions](https://github.com/REAndroid/APKEditor/discussions)\n* Please create issue you faced while using this tool along with your apk\n\n\n\n\u003cdetails\u003e \u003csummary\u003e\u003ci\u003e\u003cb\u003eContact\u003c/b\u003e\u003c/i\u003e\u003c/summary\u003e \n\n* Telegram: [@kikfox](https://t.me/kikfox)\n* Email: [thekikfox@gmail.com](mailto:thekikfox@gmail.com)\n\n\u003c/details\u003e\n","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FREAndroid%2FAPKEditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FREAndroid%2FAPKEditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FREAndroid%2FAPKEditor/lists"}