{"id":20188648,"url":"https://github.com/der3318/repackapk-readme","last_synced_at":"2026-03-04T22:31:52.610Z","repository":{"id":92549104,"uuid":"378590484","full_name":"der3318/repackapk-readme","owner":"der3318","description":"Notes and Libraries for Android Application Package Postprocessing","archived":false,"fork":false,"pushed_at":"2021-07-04T09:01:11.000Z","size":84838,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T07:14:05.646Z","etag":null,"topics":["apk","notes","tutorial"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/der3318.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-20T08:00:25.000Z","updated_at":"2021-07-04T09:01:13.000Z","dependencies_parsed_at":"2023-06-09T02:15:45.535Z","dependency_job_id":null,"html_url":"https://github.com/der3318/repackapk-readme","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/der3318/repackapk-readme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/der3318%2Frepackapk-readme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/der3318%2Frepackapk-readme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/der3318%2Frepackapk-readme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/der3318%2Frepackapk-readme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/der3318","download_url":"https://codeload.github.com/der3318/repackapk-readme/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/der3318%2Frepackapk-readme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30096762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T21:59:23.547Z","status":"ssl_error","status_checked_at":"2026-03-04T21:57:50.415Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["apk","notes","tutorial"],"created_at":"2024-11-14T03:30:03.602Z","updated_at":"2026-03-04T22:31:52.583Z","avatar_url":"https://github.com/der3318.png","language":null,"readme":"\n## 🧷 Reverse \u0026 Build APK\n\n![JRE](https://img.shields.io/badge/JRE-java%20runtime%201.8-blue.svg)\n![apktool.jar](https://img.shields.io/badge/apktool.jar-2.4.1-green.svg)\n![signapk.jar](https://img.shields.io/badge/signapk.jar-anrdroid%20toolkit-brightgreen.svg)\n![openssl](https://img.shields.io/badge/openssl-optional-yellow.svg)\n\nReverse an APK file to modify some built-in configs and functionalities, and repack the contents back to the managed format. In order to make the repacked APK installable, you'll also need to attach a signiture on the file.\n\n\n### 📝 Step-By-Step Commands\n\nDownload the files provided in this repository. Make sure you have your own JRE8 installed if the OS is NOT windows x64. Use your own key files, or some usable samples can be found in the [release page](https://github.com/der3318/repackapk-readme/releases/tag/2021.07.04).\n\nOpen the cmd prompt and navigate to the folder where the files locates:\n\n```shell\n# decode the original APK file\n\u003e Runtime\\bin\\java.exe -Duser.language=en -Dfile.encoding=UTF8 -jar apktool.jar d [APK-FILE](.apk) -o DecodedFiles\n\n# modify the source files in DecodedFiles/ to customize your need\n\n# rebuild the APK after things are done\n\u003e Runtime\\bin\\java.exe -Duser.language=en -Dfile.encoding=UTF8 -jar apktool.jar b DecodedFiles\n\n# sign the rebuilt APK with key, and output as \"RebuiltAndSigned.apk\"\n\u003e Runtime\\bin\\java.exe -Duser.language=en -Dfile.encoding=UTF8 -jar signapk.jar [PUBLIC-KEY](.x509.pem) [PRIVATE-KEY](.pk8) DecodedFiles/dist/[APK-FILE](.apk) RebuiltAndSigned.apk\n```\n\n\n### 💡 How to Get .x509.pem \u0026 .pk8 From .pfx\n\nPFX file is a single, password protected certificate archive that contains the entire certificate chain plus the matching private key. Install [openssl](https://github.com/openssl/openssl#build-and-install) and run the following steps to convert:\n\n```shell\n# generate \"DerChien.pem\" from \"DerChien.pfx\"\n\u003e openssl pkcs12 -in DerChien.pfx -out DerChien.pem\n\n# retrieve required info from .pem file and save as \"DerChien.x509.pem\"\ncopy \"CERIFICATE\" section (included) into DerChien.x509.pem\n\n# retrieve required info from .pem file and save as \"DerChien.rsa.pem\"\ncopy \"PRIVATE KEY\" section (included) into DerChien.rsa.pem\n\n# convert \"DerChien.rsa.pem\" to \"DerChien.pk8\"\n\u003e openssl pkcs8 -topk8 -outform DER -in DerChien.rsa.pem -inform PEM -out DerChien.pk8 -nocrypt\n```\n\n![pem.png](/pem.png)\n\n\n### 📌 References\n- https://github.com/iBotPeaches/Apktool\n- https://ibotpeaches.github.io/Apktool/install/\n- https://stackoverflow.com/questions/4217107/how-to-convert-pfx-file-to-keystore-with-private-key\n- https://www.javatt.com/p/79533\n- https://www.twblogs.net/a/5c7c0f49bd9eee31cea5f78a\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fder3318%2Frepackapk-readme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fder3318%2Frepackapk-readme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fder3318%2Frepackapk-readme/lists"}