init.rc
service exampleservice /system/bin/exampleservice user <user> group <group> disabled oneshot
setprop ctl.start exampleservice:arg1 arg2 arg3
#include <cutils/properties.h>
property_set("ctl.start", "exampleservice:arg1 arg2 arg3");
My modifications:
./device/asus/flo/init.flo.rc
service wfd /system/bin/wfd
user root
group input
disabled
oneshot
myjni.cpp
sprintf(buf, "wfd: -c %s:%d ", pszIP, port);
property_set("ctl.start", buf);