Skip to content

legendary0001/capacitor-adb

Repository files navigation

capacitor-shell

android shell capacitor plugin. you need to have adb binary in your app

Install

npm install capacitor-shell
npx cap sync

API

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; }>