{"id":13692538,"url":"https://github.com/JakeWharton/diffuse","last_synced_at":"2025-05-02T19:32:13.987Z","repository":{"id":43751580,"uuid":"48683075","full_name":"JakeWharton/diffuse","owner":"JakeWharton","description":"Diffuse is a tool for diffing APKs, AABs, AARs, and JARs","archived":false,"fork":false,"pushed_at":"2025-04-28T23:17:07.000Z","size":3617,"stargazers_count":2064,"open_issues_count":20,"forks_count":109,"subscribers_count":37,"default_branch":"trunk","last_synced_at":"2025-04-29T00:31:29.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/JakeWharton.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2015-12-28T08:43:22.000Z","updated_at":"2025-04-28T23:16:34.000Z","dependencies_parsed_at":"2023-10-05T02:28:45.441Z","dependency_job_id":"66153d24-afdf-4716-94a5-d1f9184971ef","html_url":"https://github.com/JakeWharton/diffuse","commit_stats":{"total_commits":582,"total_committers":19,"mean_commits":30.63157894736842,"dds":0.3969072164948454,"last_synced_commit":"ae5a227f375a0a34a18c2727d9452e07a5303ae1"},"previous_names":["jakewharton/dex-method-list","jakewharton/dex-member-list"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeWharton%2Fdiffuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeWharton%2Fdiffuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeWharton%2Fdiffuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeWharton%2Fdiffuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakeWharton","download_url":"https://codeload.github.com/JakeWharton/diffuse/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252095367,"owners_count":21693906,"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":[],"created_at":"2024-08-02T17:00:59.239Z","updated_at":"2025-05-02T19:32:13.560Z","avatar_url":"https://github.com/JakeWharton.png","language":"Kotlin","readme":"Diffuse\n=======\n\nDiffuse is a tool for diffing APKs, AABs, AARs, and JARs in a way that aims to provide both a\nhigh-level view of what changes along with important detailed output.\n\nIt is meant to be used on small changes, such as those that occur in a single PR or git SHA. Here\nis an example of updating the [Dagger](https://github.com/google/dagger/) library in the\n[SDK Search](https://github.com/JakeWharton/SdkSearch/) app:\n\n```\n$ diffuse diff sdk-search-release-1.apk sdk-search-release-2.apk\n\nOLD: sdk-search-release-1.apk (signature: V2)\nNEW: sdk-search-release-2.apk (signature: V2)\n\n\n          │          compressed           │          uncompressed\n          ├───────────┬───────────┬───────┼───────────┬───────────┬────────\n APK      │ old       │ new       │ diff  │ old       │ new       │ diff\n──────────┼───────────┼───────────┼───────┼───────────┼───────────┼────────\n      dex │ 664.8 KiB │ 664.8 KiB │ -25 B │   1.5 MiB │   1.5 MiB │ -112 B\n     arsc │ 201.7 KiB │ 201.7 KiB │   0 B │ 201.6 KiB │ 201.6 KiB │    0 B\n manifest │   1.4 KiB │   1.4 KiB │   0 B │   4.2 KiB │   4.2 KiB │    0 B\n      res │ 418.2 KiB │ 418.2 KiB │ -14 B │ 488.3 KiB │ 488.3 KiB │    0 B\n    asset │       0 B │       0 B │   0 B │       0 B │       0 B │    0 B\n    other │  37.1 KiB │  37.1 KiB │   0 B │  36.3 KiB │  36.3 KiB │    0 B\n──────────┼───────────┼───────────┼───────┼───────────┼───────────┼────────\n    total │   1.3 MiB │   1.3 MiB │ -39 B │   2.2 MiB │   2.2 MiB │ -112 B\n\n\n DEX     │ old   │ new   │ diff\n─────────┼───────┼───────┼────────────\n   count │     1 │     1 │  0\n strings │ 14220 │ 14218 │ -2 (+6 -8)\n   types │  2258 │  2257 │ -1 (+0 -1)\n classes │  1580 │  1579 │ -1 (+0 -1)\n methods │ 11640 │ 11641 │ +1 (+6 -5)\n  fields │  4369 │  4369 │  0 (+0 -0)\n\n\n ARSC    │ old  │ new  │ diff\n─────────┼──────┼──────┼──────\n configs │   51 │   51 │  0\n entries │ 1950 │ 1950 │  0\n\n\n=================\n====   APK   ====\n=================\n\n    compressed     │   uncompressed   │\n───────────┬───────┼─────────┬────────┤\n size      │ diff  │ size    │ diff   │ path\n───────────┼───────┼─────────┼────────┼───────────────────────────────────────────────────────────\n 664.8 KiB │ -25 B │ 1.5 MiB │ -112 B │ ∆ classes.dex\n     458 B │ -14 B │   272 B │    0 B │ ∆ res/drawable-hdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png\n───────────┼───────┼─────────┼────────┼───────────────────────────────────────────────────────────\n 665.2 KiB │ -39 B │ 1.5 MiB │ -112 B │ (total)\n\n\n\n=================\n====   DEX   ====\n=================\n\nSTRINGS:\n\n   old   │ new   │ diff\n  ───────┼───────┼────────────\n   14220 │ 14218 │ -2 (+6 -8)\n\n  + %s does not implement %s\n  + %s.androidInjector() returned null\n  + androidInjector\n  + b1b69b7d0f149276095d82b6e0b884f82ac4d3f4\n  + getAndroidInjector\n  + ~~R8{\"compilation-mode\":\"release\",\"min-api\":24,\"pg-map-id\":\"5362c3b\",\"version\":\"1.5.59\"}\n\n  - %s does not implement %s or %s\n  - %s.activityInjector() returned null\n  - 0e95da1111e6daf6172ec76c544c88764db28334\n  - HasActivityInjector.java\n  - Ldagger/android/HasActivityInjector;\n  - activityInjector\n  - getActivityInjector\n  - ~~R8{\"compilation-mode\":\"release\",\"min-api\":24,\"pg-map-id\":\"3041c7f\",\"version\":\"1.5.59\"}\n\n\nTYPES:\n\n   old  │ new  │ diff\n  ──────┼──────┼────────────\n   2258 │ 2257 │ -1 (+0 -1)\n\n  - Ldagger/android/HasActivityInjector;\n\n\nMETHODS:\n\n   old   │ new   │ diff\n  ───────┼───────┼────────────\n   11640 │ 11641 │ +1 (+6 -5)\n\n  + com.jakewharton.sdksearch.AppComponent getAndroidInjector() → DispatchingAndroidInjector\n  + com.jakewharton.sdksearch.DaggerReleaseAppComponent getAndroidInjector() → DispatchingAndroidInjector\n  + com.jakewharton.sdksearch.SdkSearchApplication androidInjector() → AndroidInjector\n  + com.jakewharton.sdksearch.SdkSearchApplication androidInjector() → DispatchingAndroidInjector\n  + dagger.android.AndroidInjection inject(Object, HasAndroidInjector)\n  + dagger.android.HasAndroidInjector androidInjector() → AndroidInjector\n\n  - com.jakewharton.sdksearch.AppComponent getActivityInjector() → DispatchingAndroidInjector\n  - com.jakewharton.sdksearch.DaggerReleaseAppComponent getActivityInjector() → DispatchingAndroidInjector\n  - com.jakewharton.sdksearch.SdkSearchApplication activityInjector() → AndroidInjector\n  - com.jakewharton.sdksearch.SdkSearchApplication activityInjector() → DispatchingAndroidInjector\n  - dagger.android.HasActivityInjector activityInjector() → AndroidInjector\n```\n\n\nUsage\n-----\n\n`diffuse` has multiple subcommands. The primary one is `diff` which takes two binaries and displays\na summary and detailed listing of changes between them.\n\n```\n$ diffuse diff old.apk new.apk\n\n$ diffuse diff --aab old.aab new.aab\n\n$ diffuse diff --aar old.aar new.aar\n\n$ diffuse diff --jar old.jar new.jar\n```\n\nFor a single binary, the `info` subcommand will show a summary table of the binary contents.\n\n```\n$ diffuse info my.apk\n\n$ diffuse info --aab my.aab\n\n$ diffuse info --aar my.aar\n\n$ diffuse info --jar my.jar\n```\n\nFinally, the `members` subcommand lists the methods, fields, or both of a binary. This mimics\nthe behavior of `dex-member-list`, the tool from which Diffuse is derived.\n\n```\n$ diffuse members my.apk\n\n$ diffuse members --methods my.apk\n\n$ diffuse members --aar --fields my.aar\n```\n\nSee more information about the subcommands and their options/arguments by running with `--help`.\n\n\n## Install\n\n**Mac OS**\n\n```\n$ brew install JakeWharton/repo/diffuse\n```\n\n**Other**\n\nDownload ZIP from\n[latest release](https://github.com/JakeWharton/diffuse/releases/latest).\n\n\nLicense\n-------\n\n    Copyright 2015 Jake Wharton\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":["Инструменты анализа","Binary Data"],"sub_categories":["Diff Enhancers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJakeWharton%2Fdiffuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJakeWharton%2Fdiffuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJakeWharton%2Fdiffuse/lists"}