I have done this sort of thing inside of my own java apps before (and I know it is no permitted on Android >=10 unless the target build is < Android 10). But I want to do this from a Tasker kid app and I think the basics are there given the info see
here for loading the binary as a resource.
To test this, I have installed my app, used a rooted file manager to copy a busybox executable into the app's "home folder" under /data/data, checked the permissions + owner, and then from the app run a shell command /data/data/kid_app_pkg_name/busybox without root.
I always get permission denied. If I use root, it runs fine. So I suspect the issue is permission somewhere in the directory tree using the fully qualified path to the busybox executable.
I checked to see what the home directory is set to in the shell executed by Tasker and it seems to be / on my phone. So does anyone know of a way to execute this busybox from within Tasker? Perhaps it can be done using Java? I have not looked into that yet.
Thanks