How to start daemon on android by adb
<p>Can you help me please, my head is swollen...</p>

<p>I am trying to run daemon on android emu/device by command:</p>

<pre><code>adb -s &lt;device_name&gt; shell su -c /dir/daemon &lt;port_number&gt;
</code></pre>

<p>but nothink happens, and no errors!</p>

<p>If I do:</p>

<pre><code>adb -s &lt;device&gt; shell
</code></pre>

<p>and then form shell cmdline:</p>

<pre><code>su -c /dir/daemon &lt;port_number&gt;
</code></pre>

<p>than its work fine. I try use shell-script and run:</p>

<pre><code>adb -s &lt;device_name&gt; shell sh su -c /dir/script.sh &lt;port_number&gt;
</code></pre>

<p>and I even try to generate script from Qt code with port number and use:</p>

<pre><code>adb -s &lt;device_name&gt; shell sh su -c /dir/script.sh
</code></pre>

<p>but its not helped... problem that if I enter to adb shell previous to run daemon - its work. Another problem is on different device/emu/iso_image different command format could not work. For example:</p>

<pre><code>adb -s &lt;device_name&gt; shell su -c /dir/daemon &lt;port_number&gt; // work at emu, but not at iso
</code></pre>

<p>and vice:</p>

<pre><code>adb -s &lt;device_name&gt; shell su -c "/dir/daemon &lt;port_number&gt;" // work at iso
</code></pre>

<p>etc.</p>

<p>Everybody can answer what's the matter?</p>

<p>Sorry for my english</p>