[Toybox] Rename toybox and execute without install

darken darken at darken.eu
Fri Feb 21 07:45:34 PST 2020


>
> No, but you can change the code in main.c function toy_find() currently
> line 33.


Awesome, I'll try that, thanks!

On Fri, Feb 21, 2020 at 11:35 AM Rob Landley <rob at landley.net> wrote:

> On 2/21/20 1:56 AM, darken wrote:
> > Thanks for the quick response Rob!
> >
> >     n -s $(which toybox) strawberry-toybox
> >     ./strawberry-toybox
> >
> > The created symlink would be a file outside the read-only app resources,
> so I
> > can't execute that on Android 10+.
> > And Android 5,6,7 doesn't extract any resources from the APK that not
> starting
> > with "lib" and ending with ".so".
>
> That's an android issue, not a toybox issue.
>
> >      When toybox doesn't recognize the name, it'll dereference one level
> of symlinks
> >
> >     to try to find a name it does recognize.
> >
> >
> > Is there a config setting I could change to make a build where toybox
> recognizes
> > alternative names
> > or to just change the name it's looking for to "libtoybox.so"?
>
> No, but you can change the code in main.c function toy_find() currently
> line 33.
>
> > ~Matthias
>
> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200221/5bd0b71b/attachment-0001.htm>


More information about the Toybox mailing list