)]}'
{
  "commit": "e3005e3402d9cfa2043114c8bc53c59d12e9b98e",
  "tree": "48d11881528e9020978456ddece829237546ba04",
  "parents": [
    "2a6369fc07bd0f5acc7f58cdf703df4489a2666f"
  ],
  "author": {
    "name": "flutteractionsbot",
    "email": "154381524+flutteractionsbot@users.noreply.github.com",
    "time": "Wed Sep 02 14:26:34 2026 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Sep 02 21:26:34 2026 +0000"
  },
  "message": "[CP-beta]Fix Android license detection for cmdline-tools 23.0+ (#192132)\n\nThis pull request is created by [automatic cherry pick workflow](https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request)\r\nPlease fill in the form below, and a flutter domain expert will evaluate this cherry pick request.\r\n\r\n### Issue Link:\r\nhttps://github.com/flutter/flutter/issues/191487\r\n\r\n### Impact Description:\r\nAndroid SDK Command-line Tools 23.0 deprecated `sdkmanager --licenses` in favor of the new `android` CLI. When invoked, `sdkmanager --licenses` now only outputs a deprecation notice (`Warning: The --licenses option is no longer needed.`) rather than the parseable license summary `flutter doctor` previously depended on.\r\n\r\nAs a result, `flutter doctor` fails to parse license status and reports `✗ Android license status unknown.` while prompting users to run `flutter doctor --android-licenses`, which fails to resolve the issue. \r\n\r\n### Changelog Description:\r\n[flutter/191487] When using Android SDK Command-line Tools 23.0+ for Android, flutter doctor incorrectly reports \"Android license status unknown\".\r\n\r\n### Workaround:\r\n1. Downgrade Android SDK Command-line Tools to version 22.0 via the Android Studio SDK Manager or CLI.\r\n2. If licenses have already been accepted on disk in `\u003cAndroid-SDK\u003e/licenses/`, Android Gradle builds still succeed and the `flutter doctor` warning can be safely ignored (if the user knows to ignore).\r\n\r\n### Risk:\r\nWhat is the risk level of this cherry-pick?\r\n\r\n### Test Coverage:\r\nAre you confident that your fix is well-tested by automated tests?\r\n\r\n### Validation Steps:\r\n1. Ensure Android SDK Command-line Tools 23.0 is installed (verify in `$ANDROID_HOME/cmdline-tools/latest/source.properties` that `Pkg.Revision\u003d23.0`).\r\n2. Run `flutter doctor -v`.\r\n3. Verify that under `Android toolchain`, it reports `• All Android licenses accepted.` instead of `✗ Android license status unknown.`\r\n4. (Optional negative check) Temporarily rename the `$ANDROID_HOME/licenses` directory, run `flutter doctor -v`, and verify it reports `Android licenses not accepted`. Restore the directory.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "15ff20f5f9c0b835e8816c9b51e4e392f7e80df3",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/android/android_workflow.dart",
      "new_id": "91ec78218fd989586b90c3b0a599b31b8a5059e6",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/android/android_workflow.dart"
    },
    {
      "type": "modify",
      "old_id": "fbacdecb9cf59b0a3f81084c179cbe777147061a",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/android/android_workflow_test.dart",
      "new_id": "4541888898b1e60fc47e24023a0f83c5279f9e3e",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/android/android_workflow_test.dart"
    }
  ]
}
