{"id":18746690,"url":"https://github.com/matrixeditor/dexrs","last_synced_at":"2025-10-13T14:10:16.114Z","repository":{"id":246751185,"uuid":"822058307","full_name":"MatrixEditor/dexrs","owner":"MatrixEditor","description":"Dalvik Executable (DEX) parser, disassembler and (partial) decompiler with a Python binding.","archived":false,"fork":false,"pushed_at":"2025-03-15T06:42:24.000Z","size":193,"stargazers_count":11,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-01T08:01:45.248Z","etag":null,"topics":["art","dalvik","dalvik-parser","dex","pyo3","smali"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/MatrixEditor.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-30T07:31:39.000Z","updated_at":"2025-07-05T09:38:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c8d0080-e932-4089-b95c-096dd5b0d6e7","html_url":"https://github.com/MatrixEditor/dexrs","commit_stats":null,"previous_names":["matrixeditor/dexrs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MatrixEditor/dexrs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixEditor%2Fdexrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixEditor%2Fdexrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixEditor%2Fdexrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixEditor%2Fdexrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatrixEditor","download_url":"https://codeload.github.com/MatrixEditor/dexrs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixEditor%2Fdexrs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015708,"owners_count":26085748,"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-10-13T02:00:06.723Z","response_time":61,"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":["art","dalvik","dalvik-parser","dex","pyo3","smali"],"created_at":"2024-11-07T16:26:32.502Z","updated_at":"2025-10-13T14:10:16.047Z","avatar_url":"https://github.com/MatrixEditor.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEXrs\n\n\u003e [!IMPORTANT]\n\u003e Branch `v2-rewrite` contains a complete rewrite of this library including a Python binding.  Installation is as follows:\n\u003e \n\u003e Crate:\n\u003e ```bash\n\u003e # add to project\n\u003e cargo add --git https://github.com/MatrixEditor/dexrs --branch dev/v2-rewrite\n\u003e # install lib\n\u003e cargo install --git https://github.com/MatrixEditor/dexrs --branch dev/v2-rewrite\n\u003e ```\n\u003e\n\u003e Python Binding\n\u003e ```bash\n\u003e pip install -v git+https://github.com/MatrixEditor/dexrs@dev/v2-rewrite\n\u003e ```\n\n**DEXrs** is an exploratory project in Rust aimed at developing a decompiler for Android executable files (DEX files).\n\n#### What this project already covers:\n\n- [x] A (*blazingly fast*) DEX file parser using lazy parsing\n- [x] A simple disassembler for Dalvik byte code\n- [x] A simplistic Smali decompiler\n\n#### Roadmap\n\n- [ ] Basic Java decompiler\n- [ ] Bytecode modification and DEX rebuild\n\n\n## Installation\n\n\nInstall DEXrs using Cargo:\n```bash\ncargo install --git https://github.com/MatrixEditor/dexrs dexrs\n```\n\n## Usage\n\n### Disassembling DEX files\n\nHere’s a quick example of how to disassemble a DEX file:\n\n```rust\nlet mut f = File::open(\"classes.dex\").expect(\"file not found\");\n// parse DEX input and verify its contents\nlet mut dex = Dex::read(\u0026mut f, true)?;\n\nlet class = dex.get_class_def(0)?;\nif let Some(method) = class.get_direct_method(0) {\n    for insn in method.disasm(\u0026mut dex)? {\n        println!(\"    {:#06x}: {:?}\", insn.range.start, insn);\n    }\n}\n```\n\n## Decompilation to Smali\n\n```rust\nuse dexrs::smali::SmaliWrite;\n\nlet mut f = File::open(\"classes.dex\").expect(\"file not found\");\nlet mut dex = Dex::read(\u0026mut f, true)?;\n\nlet class = dex.get_class_def(0)?;\nlet mut stdout = std::io::stdout();\nstdout.write_class(\u0026class, \u0026mut dex)?;\n```\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixeditor%2Fdexrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatrixeditor%2Fdexrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixeditor%2Fdexrs/lists"}