Skip to content

PackageManager.InstallPackage throw exception #1

Description

@raozhihao

.net :4.7.2
file version:1.3.0.0
nuget version:2.5.1

when i use InstallPackage,
always reporting an exception

AdvancedSharpAdbClient.Exceptions.AdbException:“missing , in ID_SEND_V1”

code:

public string InstallApp(string appPath)
{
    PackageManager manager = new PackageManager(this.client, device);
            
    manager.InstallPackage(appPath, reinstall: true);
    return "Success";
}

Activity

  1. raozhihao commented on Sep 30, 2021

    @raozhihao
    Author

    use AdvancedAdbClient.Install is ok

  2. yungd1plomat commented on Sep 30, 2021

    @yungd1plomat
    Member

    You need Root for PackageManager, because it's push apk into device and then install it. (only root has access to /data/local/tmp/... not sure how adb does it then...)
    AdvancedAdbClient.Install uses stream to install package and it doesn't need Root.

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

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions