"send Adb Shell Command over the TcpIp" action
we all know we can use "adb tcpip 5555" to open adbd, and then use "abd connect xxx.xxx.xxx.xxx:5555" to send adb command remotely. But we could also send command to "127.0.0.1:5555" on our phone it self.
On some devices, we may don't have root permission, and Tasker Shell Code action permission is greatly restricted, some commands such as "sendevent" could not be performed. But if we use tcpip adb port to send the command, the phone wouldbthink it as a computer sending adb commands, and perform the command.
Once the function is added, all we have to do is connect to the computer and run "adb tcpip 5555" , and pull out the cable, now you have the full adb permission! you can send every adb command ON YOUR PHONE TO ITSELF!
I know there is a pluhin could do this work, but on some devices, this app is easily gets killed and wont recieve mesdage to send command, so it would be much more reliable if tasker could add this action.
And also, there is open source lib could be used to add this function. https://github.com/cgutman/AdbLib