Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error. error=13, Permission denied in Android Q(10) #38

Open
jhui20130703 opened this issue Jul 23, 2020 · 5 comments
Open

Error. error=13, Permission denied in Android Q(10) #38

jhui20130703 opened this issue Jul 23, 2020 · 5 comments

Comments

@jhui20130703
Copy link

The targetSdkVersion<=28 used in the development project before, the audio conversion is normal. Later, I changed targetSdkVersion=29, and running the project found that AMR conversion to MP3 failed.
The exception message:
java.io.IOException: Cannot run program "/data/user/0/package name/files/ffmpeg": error=13, Permission denied,
Please help me with the author and developers. thank you all.

@Wisdozzh
Copy link

From Android Q onwards, you cannot execute binaries in your app's private data directory.
From the issuetracker: https://issuetracker.google.com/issues/128554619

Change only on Build.gradle file targetSdkVersion 29 to 28 and Re-Install your app on your device - It is resolved your permission issue for temporary because of the targetSdkVersion 29 is required platform for released build on play store so I suggest to you use this library

@T7Droid
Copy link

T7Droid commented Sep 27, 2020

Try adding this line to your Manifest file, inside the application tag:

android:requestLegacyExternalStorage=true

This should solve the Write/Reading permissions problem.

I'm using the targetSdkVersion=30

@paragwadhwani
Copy link

From Android Q onwards, you cannot execute binaries in your app's private data directory.
From the issuetracker: https://issuetracker.google.com/issues/128554619

Change only on Build.gradle file targetSdkVersion 29 to 28 and Re-Install your app on your device - It is resolved your permission issue for temporary because of the targetSdkVersion 29 is required platform for released build on play store so I suggest to you use this library

I tried this but its a temporary solution Please suggest a permanent solution for this

@yyms3275
Copy link

The targetSdkVersion<=28 used in the development project before, the audio conversion is normal. Later, I changed targetSdkVersion=29, and running the project found that AMR conversion to MP3 failed.
The exception message:
java.io.IOException: Cannot run program "/data/user/0/package name/files/ffmpeg": error=13, Permission denied,
Please help me with the author and developers. thank you all.

I solved the same problem as below.
I solved the problem by using a different library.

https://github.com/tanersener/mobile-ffmpeg

@1656150492
Copy link

Try adding this line to your Manifest file, inside the application tag:

android:requestLegacyExternalStorage=true

This should solve the Write/Reading permissions problem.

I'm using the targetSdkVersion=30

I wrote it like this, but it's useless

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

No branches or pull requests

6 participants