You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.5 KiB
62 lines
1.5 KiB
import Extra from './Extra';
|
|
declare class ADBCommander {
|
|
_commandFactory(command: string): Promise<{
|
|
err: any;
|
|
result?: undefined;
|
|
} | {
|
|
result: any;
|
|
err?: undefined;
|
|
}>;
|
|
deviceList(): Promise<{
|
|
deviceList: string[];
|
|
err: any;
|
|
}>;
|
|
reverse(deviceSN: string, localPort: string, remotePort: string): Promise<{
|
|
err: any;
|
|
result?: undefined;
|
|
} | {
|
|
result: any;
|
|
err?: undefined;
|
|
}>;
|
|
forward(deviceSN: string, localPort: string, remotePort: string): Promise<{
|
|
err: any;
|
|
result?: undefined;
|
|
} | {
|
|
result: any;
|
|
err?: undefined;
|
|
}>;
|
|
version(): Promise<{
|
|
version: any;
|
|
err: any;
|
|
}>;
|
|
print(cmd: string): Promise<void>;
|
|
uninstall(deviceSN: string, pkg: string): Promise<{
|
|
result: any;
|
|
err: any;
|
|
}>;
|
|
install(deviceSN: string, apkPath: string): Promise<{
|
|
result: any;
|
|
err: any;
|
|
}>;
|
|
isInstalled(deviceSN: string, pkg: string): Promise<{
|
|
isInstalled: boolean;
|
|
err: any;
|
|
}>;
|
|
startActivity(deviceSN: string, action?: string, component?: string, extra?: Extra[]): Promise<{
|
|
result: any;
|
|
err: any;
|
|
}>;
|
|
exeCommand(command: string): Promise<{
|
|
err: any;
|
|
result?: undefined;
|
|
} | {
|
|
result: any;
|
|
err?: undefined;
|
|
}>;
|
|
getProp(deviceSN: string): Promise<{
|
|
result: any;
|
|
err: any;
|
|
}>;
|
|
}
|
|
declare const adbCommander: ADBCommander;
|
|
export = adbCommander;
|
|
|