Skip to main content
Version: 1.1.0

Usage

You can use an instance of your custom transport to create an Adb instance. The Adb instance is used to run ADB commands or other services.

declare class Adb {
constructor(transport: AdbTransport);
}
import type { AdbTransport } from "@yume-chan/adb";
import { Adb } from "@yume-chan/adb";

declare const transport: AdbTransport; // Your custom transport instance
const adb = new Adb(transport);

console.log(await adb.getProp("ro.build.version.sdk")); // Example ADB command
Next Step

See API section for all supported ADB commands.