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
_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to