AndroidAudioConverter icon indicating copy to clipboard operation
AndroidAudioConverter copied to clipboard

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

Open jhui20130703 opened this issue 5 years ago • 5 comments

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.

jhui20130703 avatar Jul 23 '20 03:07 jhui20130703

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

Wisdozzh avatar Sep 23 '20 07:09 Wisdozzh

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

T7Droid avatar Sep 27 '20 18:09 T7Droid

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

paragwadhwani avatar Oct 30 '20 11:10 paragwadhwani

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

yyms3275 avatar May 13 '21 05:05 yyms3275

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

1656150492 avatar Jul 26 '21 06:07 1656150492