/capacitor-adb

a capacitor android plugin to use adb on an ionic android app

Primary LanguageJava

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