Skip to content

Unable to install APK to usb device #108

@zamonary1

Description

@zamonary1

I use this library in my project involving a usb connected device, and this library just hangs forever. I am using it as a git repo in cargo.toml.
I think that i am doing something wrong.

use adb_client::{ADBDeviceExt, ADBUSBDevice};

fn main() {
    let product_id = 0x0000;
    let vendor_id = 0x0000; // edited out

    let mut device = ADBUSBDevice::new(vendor_id, product_id).unwrap();

    device
        .install(&"/home/zamonary1/Загрузки/SlimeVR-android.apk")
        .unwrap();
}

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