)]}'
{
  "commit": "9d80afcdecf4f9641a9bed1e03d3a17ca44b4e1f",
  "tree": "51ec6ac91bf09908ae32098170bc1ccb503cd5d3",
  "parents": [
    "666d2c4e831d40738b8692464d57b4aaa9478acd"
  ],
  "author": {
    "name": "David Bebawy",
    "email": "dbebawy@users.noreply.github.com",
    "time": "Thu Oct 29 14:18:27 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Oct 29 14:18:27 2026 +0000"
  },
  "message": "[flutter_tools] Explain unsupported Android AOT builds on Linux arm64 hosts (#194453)\n\nOn Linux arm64 hosts, any profile or release Android build fails with a\nraw `ProcessException`, because the Flutter SDK does not include\n`gen_snapshot` for Android on this host. This PR replaces that with a\n`ToolExit` that says the configuration is not supported, shows the path\nthe tool expected, and links the feature request.\n\nIf a `gen_snapshot` has been placed at the expected path (for example, a\nself-built binary), the build still uses it, so existing workarounds\nkeep working.\n\nSince #193647 the build target has no access to `OperatingSystemUtils`,\nso it recognizes a Linux arm64 host from the `linux-arm64` directory\nthat the cached artifacts put `gen_snapshot` in. Builds that use a local\nengine are not affected.\n\nOutput of the `flutter assemble` step that `flutter build apk --release`\nruns, captured in a linux/arm64 Debian container with the SDK at\n`/flutter` (master 8274c72edd4, then with this change applied):\n\nBefore:\n\n```\nTarget android_aot_release_android-arm64 failed: ProcessException: Failed to find \"/flutter/bin/cache/artifacts/engine/android-arm64-release/linux-arm64/gen_snapshot\" in the search path.\n  Command: /flutter/bin/cache/artifacts/engine/android-arm64-release/linux-arm64/gen_snapshot\n```\n\nAfter:\n\n```\nTarget android_aot_release_android-arm64 failed: Error: Building Android apps in release mode is not supported on Linux arm64 hosts because the Flutter SDK does not include gen_snapshot for this host (expected at /flutter/bin/cache/artifacts/engine/android-arm64-release/linux-arm64/gen_snapshot).\nSee https://github.com/flutter/flutter/issues/75864 for details.\n```\n\nThis does not add Linux arm64 host support for Android builds; that is\ntracked in #75864.\n\nFixes https://github.com/flutter/flutter/issues/168980\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 in-code documentation (doc comments with\n`///`).\n- [x] If this PR introduces a new feature or capability, I created and\nlinked a website documentation issue or PR in [flutter/website] (or\nverified none is needed).\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\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/CONTRIBUTING.ai.md\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/website]: https://github.com/flutter/website\n[breaking change policy]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5861f31ee7c506aca9ffe01137122d41b46c5d57",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/build_system/targets/android.dart",
      "new_id": "28eb0cc4e74411a045c22024a5000bb73a6a2709",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/build_system/targets/android.dart"
    },
    {
      "type": "modify",
      "old_id": "92a9adffcd4b2bad4baeb8b40246ade72020a8c5",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/build_system/targets/android_test.dart",
      "new_id": "d06b21caf35e64dfaeccaecddd64d99546f0f147",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/build_system/targets/android_test.dart"
    }
  ]
}
