On Wed, Apr 18, 2018 at 04:33:36PM +0200, Arie van Wingerden wrote:
> Found similar error here:
> https://stackoverflow.com/questions/49660145/error-2-no-such-file-or-directory-when-hosting-an-executable-within-android-a
This code is problematic.
Runtime.getRuntime().exec("/system/bin/chmod 777 " + filePath);
is not a good idea. I would not rely on the 'chmod' command being available
(i.e. busybox access). Perhaps this even gives the "no such file" ;)
There is setExecutable(true) in Java for that.
♪♫ Alex
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe