Skip to content

Add option to not uninstall in flutter test command #166709

Description

@ScorpiosCrux

Use case

On Android, I have a DPM application where the application cannot be uninstalled. It can only be updated.

I am trying to write integration tests to run on a physical device. However, the flutter test command will try to uninstall the DPM app.

I get the error

db uninstall failed: ProcessException: Process exited abnormally with exit code 1:
Failure [DELETE_FAILED_DEVICE_POLICY_MANAGER]
  Command: /home/name/Android/Sdk/platform-tools/adb -s 9d3dd4405f4f260c uninstall com.org.example

Please provide a way around this.

Proposal

Ideally, I want a command in flutter test which will skip the uninstallation step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.team-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions