{"id":17713702,"url":"https://github.com/huythanh0x/decompile_2048_apk_to_java","last_synced_at":"2025-09-02T13:05:20.451Z","repository":{"id":259179825,"uuid":"876514992","full_name":"Huythanh0x/decompile_2048_apk_to_java","owner":"Huythanh0x","description":"A sample step by step decompile apk file to Java(Gradle project)","archived":false,"fork":false,"pushed_at":"2024-10-22T06:25:23.000Z","size":3553,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-23T07:48:06.783Z","etag":null,"topics":["apk","decompile","jadx","reverse-engineering"],"latest_commit_sha":null,"homepage":"https://huythanh0x.github.io/decompile_2048_apk_to_java/","language":"Java","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/Huythanh0x.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-22T05:22:03.000Z","updated_at":"2024-10-22T06:25:27.000Z","dependencies_parsed_at":"2024-10-23T09:24:35.023Z","dependency_job_id":"2853a802-5299-4598-9730-96b9bd7c4b07","html_url":"https://github.com/Huythanh0x/decompile_2048_apk_to_java","commit_stats":null,"previous_names":["huythanh0x/decompile_2048_apk_to_java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Huythanh0x/decompile_2048_apk_to_java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Huythanh0x%2Fdecompile_2048_apk_to_java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Huythanh0x%2Fdecompile_2048_apk_to_java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Huythanh0x%2Fdecompile_2048_apk_to_java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Huythanh0x%2Fdecompile_2048_apk_to_java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Huythanh0x","download_url":"https://codeload.github.com/Huythanh0x/decompile_2048_apk_to_java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Huythanh0x%2Fdecompile_2048_apk_to_java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273287681,"owners_count":25078575,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","decompile","jadx","reverse-engineering"],"created_at":"2024-10-25T10:05:50.353Z","updated_at":"2025-09-02T13:05:20.399Z","avatar_url":"https://github.com/Huythanh0x.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Decompiled Android Game 2048\n\nThis project aims to demonstrate the process of decompiling the APK file of the game [2048](https://github.com/uberspot/2048-android) and converting it into a buildable Gradle Java project.\n\n![dependency graph](screenshots/dependency_graph.png)\n## Steps\n\n1. **Grab APK File**\n    - Obtain the APK file by building it from the source available on the [2048 GitHub repository](https://github.com/gabrielecirulli/2048).\n\n2. **Create APK Dependency Graph**\n    - Use a [Apk Dependency Graph (ADG)](https://github.com/alexzaitsev/apk-dependency-graph) generate the APK dependency graph. This is helpful for understanding the structure of the APK and also the relationships between classes.\n\n3. **Export Project Using [Jadx](https://github.com/skylot/jadx)**\n    - Utilize Jadx to decompile the APK and export it as a Gradle project.\n\n4. **Import Gradle Project and Set Up Environment**\n    - **Open Project with Android Studio**\n        - Open the decompiled project in Android Studio. This step would create a new Android Studio project with some automatic configurations (`gradlew`, `gradle.properties`, etc.)\n    - **Update Environment**\n        - Set the appropriate Java version.\n        - Update the Gradle version.\n        - Set the compile SDK level. (default would not match to the original APK)\n        - Add necessary Gradle configurations.\n\n5. **Remove Decompiled Library Code and Resources**\n    - Remove Android support packages, XML resources, and drawables from the decompiled code.\n\n6. **Remove `R.java`**\n    - Delete the generated `R.java` class for ID resources.\n\n7. **Fix Decompiler and Logic Errors**\n    - Address decompiler errors and logic issues.\n    - Use external tools like Bytecode Viewer and JEB to assist in fixing errors.\n\n## Tools Used\n\n- **Jadx**: For decompiling the APK and exporting it as a Gradle project.\n- **Android Studio**: For importing and setting up the Gradle project.\n- **Bytecode Viewer**: For viewing and analyzing bytecode.\n- **JEB**: For advanced decompilation and debugging.\n- **Apk Dependency Graph**: For generating the APK dependency graph.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request with your changes.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuythanh0x%2Fdecompile_2048_apk_to_java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuythanh0x%2Fdecompile_2048_apk_to_java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuythanh0x%2Fdecompile_2048_apk_to_java/lists"}