<div dir="ltr"><div dir="auto"><div>I'm not sure how to use strace, how do I get a strace binary into the Android O image?<br></div><div dir="ltr"><br>Can't reproduce it on the X86 Android O emulator image.<br>But can reproduce it on my Pixel running Android O.<br></div></div><div>Tried the latest toybox build too but it's not the build, and when running it as shell user (adb) it works:<br></div><div class="gmail_extra"><div dir="ltr"><br>> sailfish:/data/local/tmp $ ./toybox_new find '/data/local/tmp' -maxdepth 0 -print0 | ./toybox_new xargs -0 echo<br>> /data/local/tmp<br>> sailfish:/data/local/tmp $ ./toybox_old find '/data/local/tmp' -maxdepth 0 -print0 | ./toybox_old xargs -0 echo<br>> /data/local/tmp<br>> sailfish:/data/local/tmp $ ./toybox_new --version<br>> toybox 0.7.3-37-g04940678c81a<br>> sailfish:/data/local/tmp $ ./toybox_old --version<br>> toybox 0.7.2-37-g109a28b8a749<br><br></div><div>So it works as shell user, but not as app user.<br>But it also works if the app runs the native toybox from /system.<br>Is this some kind of SELinux issue? <br>Preventing xargs from forking processes or something like that?<br><br></div>Why would it work on the emulator though...<br><br><div class="gmail_quote">2017-04-13 18:29 GMT+02:00 enh <span dir="ltr"><<a href="mailto:enh@google.com" target="_blank">enh@google.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">works fine for me with the toybox that's actually part of O. strace?</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-7276372412607695730m_-391133154145972544gmail-m_3968212698554764679m_-485922110573403503h5">On Thu, Apr 13, 2017 at 6:39 AM, darken <span dir="ltr"><<a href="mailto:darken@darken.eu" target="_blank">darken@darken.eu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="m_-7276372412607695730m_-391133154145972544gmail-m_3968212698554764679m_-485922110573403503h5"><div dir="ltr"><div>On a Pixel device running Android O, xarg doesn't seem to work.<br></div><div>The commands were run from an normal user (non-system app) without root.<br></div><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">V/Shell:Interactive: Input : SDMBOX=/data/user/0/eu.thedark<wbr>en.sdm/files/toybox_sdm<br></blockquote><div><br></div><div>Toybox build i used: <a href="https://github.com/d4rken/toybox" target="_blank">https://github.com/d4rken/toyb<wbr>ox</a><br><br></div><div>Just running the FIND applet works:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">V/Shell:Interactive: Input : $SDMBOX find '/data/user/0/eu.thedarken.sdm<wbr>/files'<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">V/Shell:Interactive: Output: /data/user/0/eu.thedarken.sdm/<wbr>files<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">V/Shell:Interactive: Output: /data/user/0/eu.thedarken.sdm/<wbr>files/uuid-token<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">V/Shell:Interactive: Output: /data/user/0/eu.thedarken.sdm/<wbr>files/toybox_sdm<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">D/Shell:Interactive: runCommand(...): Command.Result(exitcode=0)<br></blockquote><br></div><div>With XARGS it doesn't work:<br></div><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">V/Shell:Interactive: Input : $SDMBOX find '/data/user/0/eu.thedarken.sdm<wbr>/files' -maxdepth 0 -print0 | $SDMBOX xargs -0 $SDMBOX echo<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">V/Shell:Interactive: Error : Bad system call<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">D/Shell:Interactive: runCommand(...): Command.Result(exitcode=159)<br> </blockquote></div></div><div><br></div><div>Any idea why? Or how I could find out why?<br></div><div><br>~Matthias<br>
</div></div>
<br></div></div>______________________________<wbr>_________________<br>
Toybox mailing list<br>
<a href="mailto:Toybox@lists.landley.net" target="_blank">Toybox@lists.landley.net</a><br>
<a href="http://lists.landley.net/listinfo.cgi/toybox-landley.net" rel="noreferrer" target="_blank">http://lists.landley.net/listi<wbr>nfo.cgi/toybox-landley.net</a><br>
<br></blockquote></div><span class="m_-7276372412607695730m_-391133154145972544gmail-m_3968212698554764679m_-485922110573403503HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-7276372412607695730m_-391133154145972544gmail-m_3968212698554764679m_-485922110573403503m_-1493077787627371240gmail_signature">Elliott Hughes - <a href="http://who/enh" target="_blank">http://who/enh</a> - <a href="http://jessies.org/%7Eenh/" target="_blank">http://jessies.org/~enh/</a><br>Android native code/tools questions? Mail me/drop by/add me as a reviewer.</div>
</font></span></div>
</blockquote></div><br></div>
</div>