The environment one is exposed to when connecting to an Android device via DroidSSHd is quite restricted: TRAMP fails at the very beginning because of missing "env" -- https://bugs.launchpad.net/emacs/+bug/1041474 .
But I guess the restrictions are similar to what one gets through adb.
So, perhaps, tramp-adb.el which already takes all these restrictions and specifics of Android into account can be adapted also to work through SSH connection to Android (DroidSSHd)?
BTW, a TRAMP backend working according to the simplistic FISH protocol for file transer over SSH (which doesn't require any server side special programs) might also work in the caes of connecting to Android.
The environment one is exposed to when connecting to an Android device via DroidSSHd is quite restricted: TRAMP fails at the very beginning because of missing "env" -- https://bugs.launchpad.net/emacs/+bug/1041474 .
But I guess the restrictions are similar to what one gets through adb.
So, perhaps, tramp-adb.el which already takes all these restrictions and specifics of Android into account can be adapted also to work through SSH connection to Android (DroidSSHd)?