Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

System.ArgumentOutOfRangeException: "" #212

@TheAirBlow

Description

@TheAirBlow

Ok my previout dumb issue was easy fix (#211), but NOT THIS TIME.

I get System.ArgumentOutOfRangeException with no description provided.
This time my path is /data/app/net.airblowprod.ubox-xq9tbYgsYqN_cFVlCoeX3A==/base.apk

For some background, I am coding an app for backuping an Android smartphone.

My code:

private static void PullPackage(string package, SyncService service, string path)
{
    string cmd = $"pm path {package} | awk -F':' '{{print $2}}'";
    var receiver = new ConsoleOutputReceiver();
    client.ExecuteRemoteCommand(cmd, device, receiver);
    string data = receiver.ToString().Substring(0, receiver.ToString().Length - 2);
    using (Stream stream = File.OpenWrite(path))
        service.Pull(data, stream, null, CancellationToken.None);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions