Tasker Plugin to send ADB Shell commands
Tasker Plugin to send ADB Shell commands https://play.google.com/store/apps/details?id=com.ADBPlugin
Most of the actual "plugin" stuff can be found at https://github.com/Jolanrensen/ADBPlugin/tree/master/app/src/main/java/com/ADBPlugin. The rest consists of libraries and the necessary locale/tasker-api stuff. The latest (debug) build of the app can be found at https://github.com/Jolanrensen/ADBPlugin/blob/master/app/build/outputs/apk/app-debug.apk
This Tasker plugin allows you to send a (series of) ADB Shell command(s) to a remote device (or the device itself) that has ADB over WiFi enabled. This app does need Tasker to work! (https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm, this is a paid app with a 7 days free trial)
On the target device you can do anything you would normally be able to do when using the terminal or ADB Shell of that device. This includes opening apps, moving files, simulating input et cetera (The sky is the limit and Google is your friend).
My app can be used as an action in Tasker and needs to be configured properly when added to a task to work.
NOTE:
Now for some useful commands!
The idea to create this app came from https://play.google.com/store/apps/details?id=com.cgutman.androidremotedebugger, which allows the user to connect to a remote device via an interface in the app itself. Please read the description of that app too, it contains some tips on enabling ADB over WiFi. I use the same AdbLib Java library in my app.
I use the AdbLib library found at https://github.com/cgutman/AdbLib and use https://github.com/cgutman/AdbLibTest as an example for how to use the library. I adapted this example to work with a given command and converted it to a Tasker plugin.
For help, you can email me or visit the XDA-Developers thread at https://forum.xda-developers.com/u/tasker-tips-tricks/plugin-remote-adb-shell-t3562013. This thread also contains some useful tips for accessing the local device running the task without root.
I made the app free so anyone can try it for themselves but of course donations are always welcome at http://paypal.me/JolanRensen.