[Feature Request] Start FTP Server via Intents
I would like to request the ability to start an FTP server directly without opening the app, via the use of intents with an automation app like Tasker or MacroDroid. It would operate the same as the intents functionality offered in MiXplorer and Banana Studio FTP Server applications.
If we are to implement this we can export me.zhanghai.android.files.ftpserver.FtpServerReceiver and add a START action to it. However, this would also mean any app on the device will be able to change your FTP server status without your knowledge/approval, so it may be questionable security-wise . Do you know if/how the other apps are defending against it?
I'm not aware what protections are used (if any) in those other apps. I only know that they offer public intents that can be used to automate starting an FTP server. For me personally, it would be helpful as I could toggle an FTP server on/off directly from a widget my homescreen. Note, that the intent would also need to be able to STOP the server as well.
These are the intents that MiXplorer uses, for a point of reference:
Target: Broadcast Receiver Package: com.mixplorer Class: com.mixplorer.BroadcastReceiver Action: com.mixplorer.ACTION_SERVER Extras: • type: ftp or http or tcp • on: true or false (optional) • path: /path/to/folder (optional)
And these are the intents that Banana Studio FTP Server uses:
Package: net.xnano.android.ftpserver Class: net.xnano.android.ftpserver.receivers.CustomBroadcastReceiver Actions: • net.xnano.android.ftpserver.START_SERVER • net.xnano.android.ftpserver.STOP_SERVER