Skip to content

Add cold boot launch option to flutter daemon #83471

Closed

Description

@Hamdor

Use case

Sometimes android based emulators need a full boot. The option to do so was added to the flutter CLI with #82647.
I mainly use the VS code extension (https://github.com/Dart-Code/Dart-Code) to handle flutter related tasks (for example launch emulators). To support cold boot lauching of emulators it would be necessary to support the cold boot launch over the JSON-RPC interface aswell since this extension uses it.
I think it would be a good idea to hold both interfaces (CLI, JSON-RPC) consistent and thus add the cold boot option there aswell.

Proposal

I would propose to add an optional boolean parameter to the JSON-RPC interface of the flutter daemon which would work as follows:

If parameter "coldboot" is present and set to "true", it will cold boot the android based emulator.
If parameter "coldboot" is present and set to "false", it will not cold boot the android based emulator.
If parameter "coldboot" is not present, it will not cold boot the android based emulator.
If the requested emulator instance is not of type android, it will be ignored silently.

Activity

  1. added
    in triagePresently being triaged by the triage team
    platform-androidAndroid applications specifically
    c: proposalA detailed proposal for a change to Flutter
    c: new featureNothing broken; request for a new capability
    toolAffects the "flutter" command-line tool. See also t: labels.
    and removed
    in triagePresently being triaged by the triage team
    on May 27, 2021
  2. github-actions commented on Aug 1, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  3. locked as resolved and limited conversation to collaborators on Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterplatform-androidAndroid applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions