)]}'
{
  "commit": "d649d2bfebfeb0018b7333bd7bee1d5127661da2",
  "tree": "44b5ea6bdad06e3a40737dea8bab283aa4adaf63",
  "parents": [
    "3829a944235cd8e25142d72302dc89db4cd16934"
  ],
  "author": {
    "name": "Camille Simon",
    "email": "43054281+camsim99@users.noreply.github.com",
    "time": "Wed Sep 30 16:42:53 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Sep 30 16:42:53 2026 +0000"
  },
  "message": "[Android] Update the CLI to reject passing engine configuration flags with a prebuilt binary in release mode (#190870)\n\n\u003e [!CAUTION]\n\u003e This is a breaking change. Accompanying breaking change docs:\nhttps://github.com/flutter/website/pull/13796.\n\nFor security purposes*, modifies the Flutter CLI to throw a fatal error\n**on Android only** when `flutter run --release\n--use-application-binary` is invoked **in addition to** passing any\nother Android engine configuration flags. So, for example, the following\nrelease-mode invocations for a Flutter Android app will be valid with\nthis PR:\n\n- `flutter run --release`\n- `flutter run --release --verbose --enable-hcpp\n--any-other-engine-config-flag`\n- `flutter run --release --use-aplication-binary`\n\nThe following will not be valid:\n\n- `flutter run --release --use-application-binary --verbose\n--enable-hcpp --any-other-android-engine-config-flag`\n\n*See https://github.com/flutter/flutter/issues/190461 for details. This\nis part of that work.\n\n## Pre-launch Checklist\n\n- [x] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [x] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [x] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [x] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [x] I signed the [CLA].\n- [x] I listed at least one issue that this PR fixes in the description\nabove.\n- [x] I updated/added relevant documentation (doc comments with `///`).\n- [x] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [x] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [x] All existing and new tests are passing.\n\nIf you need help, consider asking for advice on the #hackers-new channel\non [Discord].\n\nIf this change needs to override an active code freeze, provide a\ncomment explaining why. The code freeze workflow can be overridden by\ncode reviewers. See pinned issues for any active code freezes with\nguidance.\n\n**Note**: The Flutter team is currently trialing the use of [Gemini Code\nAssist for\nGitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code).\nComments from the `gemini-code-assist` bot should not be taken as\nauthoritative feedback from the Flutter team. If you find its comments\nuseful you can update your code accordingly, but if you are unsure or\ndisagree with the feedback, please feel free to wait for a Flutter team\nmember\u0027s review for guidance on which automated comments should be\naddressed.\n\n\u003c!-- Links --\u003e\n[Contributor Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview\n[AI contribution guidelines]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines\n[Tree Hygiene]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n[test-exempt]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests\n[Flutter Style Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md\n[Features we expect every widget to implement]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement\n[CLA]: https://cla.developers.google.com/\n[flutter/tests]: https://github.com/flutter/tests\n[breaking change policy]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes\n[Discord]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md\n\n---------\n\nCo-authored-by: gemini-code-assist[bot] \u003c176961590+gemini-code-assist[bot]@users.noreply.github.com\u003e\nCo-authored-by: Gray Mackall \u003c34871572+gmackall@users.noreply.github.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2bad182aeff2a99bdc494232f9163de3b1172b1b",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/android/android_device.dart",
      "new_id": "13f9ac425a3c02985ee819a496593080a3dea73e",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/android/android_device.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "566861223159fc66ad9839629e855c17a5042d6a",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/android/android_engine_cli_flags.dart"
    },
    {
      "type": "modify",
      "old_id": "47755511a8e3e8927ef2561a127ba23274dedb94",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/commands/drive.dart",
      "new_id": "64985e7f506f9fe3e02c302259c81fe29a9825bc",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/commands/drive.dart"
    },
    {
      "type": "modify",
      "old_id": "3f5aee21bbb982df562d345ccb7afbffbfd3a07c",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/commands/run.dart",
      "new_id": "00862f1e25c029b08a97c7dfe2749201fc3040c0",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/commands/run.dart"
    },
    {
      "type": "modify",
      "old_id": "246574d590267e027aa1ed744325d620a6d70ca1",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/device.dart",
      "new_id": "806f0b9ef3f9f296b6e9da9fc424c8e6dd466a3c",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/device.dart"
    },
    {
      "type": "modify",
      "old_id": "80f95a1f44a0c40ed7c1979a1f8cd47e1eba450c",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/commands.shard/hermetic/drive_test.dart",
      "new_id": "1b1e168ba6081cac8dfaf7120481b05d1c90f030",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/commands.shard/hermetic/drive_test.dart"
    },
    {
      "type": "modify",
      "old_id": "b57af07f5476d77118fea74dd990a1d456f4a260",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/commands.shard/hermetic/run_test.dart",
      "new_id": "1146720a104eb6d6ed3a5a744e6628c6f69e5121",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/commands.shard/hermetic/run_test.dart"
    },
    {
      "type": "modify",
      "old_id": "4869697375a3da8c42836f5494bbaf3d024645f5",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/android/android_device_start_test.dart",
      "new_id": "ea955a8bb3e5ad8a5e0ad86fa77ec81afaf448ed",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/android/android_device_start_test.dart"
    },
    {
      "type": "modify",
      "old_id": "642c2271dcd16da477dbb3acee6571ea1d43629a",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/device_test.dart",
      "new_id": "540656f6fe372cfe9ccbbde1cfc44662ae16e870",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/device_test.dart"
    }
  ]
}
