[Toybox] Android O: XARGS - bad system call

darken darken at darken.eu
Thu Apr 13 06:39:13 PDT 2017


On a Pixel device running Android O, xarg doesn't seem to work.
The commands were run from an normal user (non-system app) without root.

V/Shell:Interactive: Input : SDMBOX=/data/user/0/eu.
> thedarken.sdm/files/toybox_sdm
>

Toybox build i used: https://github.com/d4rken/toybox

Just running the FIND applet works:

V/Shell:Interactive: Input : $SDMBOX find '/data/user/0/eu.thedarken.
> sdm/files'
>
V/Shell:Interactive: Output: /data/user/0/eu.thedarken.sdm/files
>
V/Shell:Interactive: Output: /data/user/0/eu.thedarken.sdm/files/uuid-token
>
V/Shell:Interactive: Output: /data/user/0/eu.thedarken.sdm/files/toybox_sdm
>
D/Shell:Interactive: runCommand(...): Command.Result(exitcode=0)
>

With XARGS it doesn't work:

V/Shell:Interactive: Input : $SDMBOX find '/data/user/0/eu.thedarken.sdm/files'
> -maxdepth 0  -print0 | $SDMBOX xargs -0 $SDMBOX echo
>
V/Shell:Interactive: Error : Bad system call
>
D/Shell:Interactive: runCommand(...): Command.Result(exitcode=159)
>

Any idea why? Or how I could find out why?

~Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170413/e11dfffd/attachment.htm>


More information about the Toybox mailing list