Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

permission is denied using Android Q ffmpeg": error=13, Permission denied #190

Closed
nivas412 opened this issue Aug 21, 2020 · 2 comments
Closed

Comments

@nivas412
Copy link

Description
Google doesn't allow apps to run binary files from /data/user directory.

One bad solution that I know is to change compileSdkVersion and targetSdkVersion to 28 or below and re-release my application which is not recommended.

Expected behavior
it should execute without permission denied error

Current behavior
permission denied error getting

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Post logs here or paste them to Ghostbin and insert the link here.

Environment
"react-native": "0.63.1",
"react-native-ffmpeg": "^0.4.4",

Other
only for android 10 having the issue when the app in target SDK 29

@nivas412
Copy link
Author

nivas412 commented Aug 22, 2020

For understanding you this was the issue :
https://stackoverflow.com/questions/60370424/permission-is-denied-using-android-q-ffmpeg-error-13-permission-denied
and
bravobit/FFmpeg-Android#126

please check to give me the solution I was stuck.

This was the solution they saying
Moved FFmpeg binary to the libs folder and added android:extractNativeLibs = "true" to the manifest so it can copy itself into /data/app/{package_name}/lib/{arch}/ and then execute it from there (which is supported on Android 10).

I have added this android:extractNativeLibs = "true" but unable to understand below line what need to do

  • Moved FFmpeg binary to the libs folder

@ahmadzahidglixen
Copy link

@nivas412 Hey!

Can you explain this part:
Moved FFmpeg binary to the libs folder

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants