3 ms·
It's still possible, you just have to dance around a little more In one project we work around this by shipping a tiny wrapper in the APK to exec that then use
by shockinglytrue 6y ago
It's still possible, you just have to dance around a little more
In one project we work around this by shipping a tiny wrapper in the APK to exec that then uses dlopen() on the target, which is now built as a library.
Pretty sure a generic hack could be made to run unmodified executables this way. Certainly in the security community userland ELF loaders are very old news, even X11R6 had its own at one point
- AshamedCaptain 6y agoAnd the next release Android uses noexec and therefore you can't even mmap(...PROT_EXEC) the binary. So you now have yo copy the binaries to RAM by yourself on exec(). And then at some point you realize that, like Cygwin, you have built a system where fork() fails randomly by design. And then Google blacklists both fork and exec.
- shockinglytrue 6y agoNot sure why you're being downvoted, this unfortunately all makes sense