UNPKG

android-bot

Version:

Android-bot is built on the AutoBot JavaScript library and provides features such as wireless screen casting and real-time control within a local network, key simulation, screen recording, screenshot capture, layout analysis, file management, application

23 lines (22 loc) 1.36 kB
import getPort from "./getport"; declare function getDevicesList(): Promise<Array<string>>; interface ForwardInfo { deviceId: string; pcPort: string; devicePort: string; } declare function getForwardList(): Promise<Array<ForwardInfo>>; declare function getForwardInfoByDeviceId(id: string): Promise<ForwardInfo | null>; declare function execAdbShell(deviceId: string, shellStr: string, showlog?: boolean): Promise<{ stdout: string; stderr: string; }>; declare function pushFile(deviceId: string, srcFilePath: string, targetFilePath: string): Promise<boolean>; declare function installApk(deviceId: string, apkFilePath: string): Promise<boolean>; declare function isInstallServer(deviceId: string): Promise<boolean>; declare function getPackageList(deviceId: string): Promise<any[]>; declare function activeAutoBotServer(deviceId: string): Promise<boolean>; declare function activeWifiAdb(deviceId: string): Promise<boolean>; declare function forward2PC(deviceId: string, port: number, phonePort?: number): Promise<boolean>; declare function removeForward(deviceId: string, port: string | number): Promise<boolean>; export { ForwardInfo, pushFile, installApk, removeForward, getForwardList, getForwardInfoByDeviceId, getPackageList, execAdbShell, forward2PC, getPort, activeAutoBotServer, activeWifiAdb, isInstallServer, getDevicesList, };