How to start daemon on android by adb -
can me please, head swollen...
i trying run daemon on android emu/device command:
adb -s <device_name> shell su -c /dir/daemon <port_number>
but nothink happens, , no errors!
if do:
adb -s <device> shell
and form shell cmdline:
su -c /dir/daemon <port_number>
than work fine. try use shell-script , run:
adb -s <device_name> shell sh su -c /dir/script.sh <port_number>
and try generate script qt code port number , use:
adb -s <device_name> shell sh su -c /dir/script.sh
but not helped... problem if enter adb shell previous run daemon - work. problem on different device/emu/iso_image different command format not work. example:
adb -s <device_name> shell su -c /dir/daemon <port_number> // work @ emu, not @ iso
and vice:
adb -s <device_name> shell su -c "/dir/daemon <port_number>" // work @ iso
etc.
everybody can answer what's matter?
sorry english
adb shell su -c "/dir > /dev/null 2> /dev/null < /dev/null &"
or
shell su -c /data/local/tmp/start_daemon.sh #!/system/bin/sh /data/local/tmp/nohup /data/local/tmp/daemon <portn_number> &
Comments
Post a Comment