[Toybox] Android O: XARGS - bad system call

enh enh at google.com
Thu Apr 13 09:29:08 PDT 2017


works fine for me with the toybox that's actually part of O. strace?

On Thu, Apr 13, 2017 at 6:39 AM, darken <darken at darken.eu> wrote:

> 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.thedark
>> en.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 at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
>
>


-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170413/f2b88979/attachment-0002.htm>


More information about the Toybox mailing list