question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission denied running version command when targeting Android Q

See original GitHub issue

Not sure if it’s because I am running Android Q beta, or I’m doing something wrong but I am getting the following:

2019-07-26 12:29:01.320 24329-24408/com.android.testffmpeg E/FFmpeg: Exception while trying to run: [/data/user/0/com.android.testffmpeg/files/ffmpeg, -version] java.io.IOException: Cannot run program “/data/user/0/com.android.testffmpeg/files/ffmpeg”: error=13, Permission denied at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050) at nl.bravobit.ffmpeg.ShellCommand.run(ShellCommand.java:15)

All I am doing is calling this function:

`
private fun versionFFmpeg() { FFmpeg.getInstance(TestFFmpegApplication.instance.applicationContext) .execute(arrayOf(“-version”), object : ExecuteBinaryResponseHandler() { override fun onSuccess(message: String?) { Timber.d(message) }

            override fun onProgress(message: String?) {
                Timber.d(message)
            }
        })

}

`

The only setup I have in the code is this:

implementation ‘nl.bravobit:android-ffmpeg:1.1.7’

Can anyone see what it is I am missing, or perhaps there is an issue running on Android Q?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:12
  • Comments:40

github_iconTop GitHub Comments

24reactions
kazemihabibcommented, Dec 27, 2019

Hi, I didn’t try it myself but probably you can fix it with adding

android:requestLegacyExternalStorage="true"

to application in AndroidManifest.xml

23reactions
pratikbutanicommented, May 5, 2020

Just change targetSdkVersion 29 to 28 in build.gradle

It worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

permission is denied using Android Q ffmpeg": error=13 ...
One bad solution that I know is to change compileSdkVersion and targetSdkVersion to 28 or below and re-release my application which is not ......
Read more >
Permissions updates in Android 11 - Android Developers
Permission dialog visibility ... Starting in Android 11, if the user taps Deny for a specific permission more than once during your app's...
Read more >
Request location permissions - Android Developers
Get started · Principles of Wear OS development · Upgrade to the latest version of Wear OS ... Permission messages · Selection controls...
Read more >
Storage updates in Android 11 - Android Developers
Users can see which apps have the READ_EXTERNAL_STORAGE permission in system settings. On the Settings > Privacy > Permission manager > Files and...
Read more >
Permissions on Android - Android Developers
Get started · Principles of Wear OS development · Upgrade to the latest version of Wear OS ... Permission messages · Selection controls...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found