Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Set adp permissions in test #1

@johnpryan

Description

@johnpryan

The adb commands can be called directly by the test in main(), instead of requiring this in the instructions:

Future<void> main() async {
  final Map<String, String> envVars = Platform.environment;
  final String adbPath = envVars['ANDROID_SDK_ROOT'] + '/platform-tools/adb.exe';
  await Process.run(adbPath , ['shell' ,'pm', 'grant', 'com.example.apppackage', 'android.permission.READ_EXTERNAL_STORAGE']);
  await Process.run(adbPath , ['shell' ,'pm', 'grant', 'com.example.apppackage', 'android.permission.READ_PHONE_STATE']);
  await integrationDriver();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions