Does not work on Android 10
Since android 10, running executable files from data/data/app_package is no longer allowed and we always get a permission denied error
@anubhavmalik Could you please tell me what mobile phone you used for testing? I use Samsung s10, Android 10 can work well. Or, can you reply to Google's link about not supporting running executable files in the /data/data directory? In fact, in the original repository, the author also used the method of copying the executable file to /data/data to run ffmpeg. So if Google really doesn't allow running executable file in /data/data, most projects that use ffmpeg must be rebuild.
Here is the link to that thread. When I execute binary from /data/data/myAppPackage/ it shows a permission denied error on Android 10 (using OnePlus 7).
Note : They have said that executables can still be run from /data/app/yourpackagecodepath/ but the issue here is that this path is only readable and executable not writable so cannot copy the binary here. Have to include it in jni Libs and load it from this location then.
From what I have understood after a long session of searching is that this seems to be a part of a long term plan, they introduced dynamic delivery and app bundles and now they are restricting running executables from app's home directory so that we include our binaries in the bundle itself.
Which renders even the Original library's way obsolete. I had just started using your wrapper and frankly I thought the original library should have given this option to download binaries later and then set them as source for carrying out commands but only one person is so thoughtful to do than and have written an implementation and that is you.
Thank you for creating this by the way, saved me a lot of time. But it seems that I won't be able to use this awesome library anyway because of this particular limitation with Android 10.
Meanwhile, I'll be searching for ways to somehow overcome this. If I find one, I will definitely create a PR with the change.
Thanks for the explanation, I'll also study how to solve this problem
Here
did you figured out how to solve this problem