capacitor-adb
v0.1.4
Published
android adb capacitor plugin
Downloads
3
Maintainers
Readme
capacitor-shell
android shell capacitor plugin
Install
npm install capacitor-shell
npx cap sync
API
executeNormalCommand(...)
executeAdbCommand(...)
getConnectIpPort(...)
getPairipPort(...)
wifidebuggingenabled()
usbdebuggingenabled()
getandroidversion()
executeNormalCommand(...)
executeNormalCommand(options: { command: string; }) => Promise<{ output: string; exitCode: number; errorOutput: string; }>
| Param | Type |
| ------------- | --------------------------------- |
| options
| { command: string; } |
Returns: Promise<{ output: string; exitCode: number; errorOutput: string; }>
executeAdbCommand(...)
executeAdbCommand(options: { command: string; }) => Promise<{ output: string; exitCode: number; errorOutput: string; }>
| Param | Type |
| ------------- | --------------------------------- |
| options
| { command: string; } |
Returns: Promise<{ output: string; exitCode: number; errorOutput: string; }>
getConnectIpPort(...)
getConnectIpPort(options: { timeout: number; }) => Promise<{ host: string; port: string; wifidebugenabled: boolean; }>
| Param | Type |
| ------------- | --------------------------------- |
| options
| { timeout: number; } |
Returns: Promise<{ host: string; port: string; wifidebugenabled: boolean; }>
getPairipPort(...)
getPairipPort(options: { timeout: number; }) => Promise<{ host: string; port: string; wifidebugenabled: boolean; }>
| Param | Type |
| ------------- | --------------------------------- |
| options
| { timeout: number; } |
Returns: Promise<{ host: string; port: string; wifidebugenabled: boolean; }>
wifidebuggingenabled()
wifidebuggingenabled() => Promise<{ enabled: boolean; }>
Returns: Promise<{ enabled: boolean; }>
usbdebuggingenabled()
usbdebuggingenabled() => Promise<{ enabled: boolean; }>
Returns: Promise<{ enabled: boolean; }>
getandroidversion()
getandroidversion() => Promise<{ version: string; }>
Returns: Promise<{ version: string; }>