cordova - Executing shell command on Android -


i'm wondering if cordova or plugin cordova enables me execute command in android shell? similar doing adb shell mycoolbinary -dothisstuff on desktop machine connected phone.

googling returns tutorials how use cordova cli desktop application, absolutely not i'm looking for. want execute commands on phone.

i ended writing own plugin. put question doing root shell executes within android app. adapted cordova.

i don't have time make nice here gist: https://gist.github.com/pts93/d78ee885ee0c2f74892434008a953f8c

just replace files files plugin template: https://github.com/don/cordova-plugin-hello

you can in cordova app call this:

shell.execute("your shell command", success, failure); 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -