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

Android 11 ffmpeg permissions #18

Open
1 of 7 tasks
Mariusz89B opened this issue Jul 14, 2022 · 4 comments
Open
1 of 7 tasks

Android 11 ffmpeg permissions #18

Mariusz89B opened this issue Jul 14, 2022 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@Mariusz89B
Copy link
Owner

Mariusz89B commented Jul 14, 2022

Bug report

Describe the bug

I have a question regarding permissions for executing scripts in Android, I have assigned permissions for executing ffmpeg but nevertheless I still end up getting "Permission denied" no matter what permissions I assign to the file.

Have not had these concerns on earlier versions of Android, so probably something that has changed in the later versions that I have not managed to figure out. Anyone possibly know how to get around this problem?

Expected Behavior

Allow writing recording file to disk.

Actual Behavior

Permission denied.

Possible Fix

Not available.

To Reproduce

Steps to reproduce the behavior:

Start recording on Android system.

Here I have assigned read, write and execution permissions for owner as well as deletion permissions.
Permissions for ffmpeg

And here is the subprocess output for running ffmpeg.
Subprocess command

output: probesize: /data/user/0/org.xbmc.kodi/recapp-posix/ffmpeg: Permission denied

Debuglog

log.txt

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • OSX

  • Windows

  • Windows UWP

  • Operating system version/name: NVIDIA Shield TV 9.1

  • Kodi version: 19.3

*note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.

m-TVGuide administration will consider your problem report however, we will not make any promises the problem will be solved.*

@Mariusz89B Mariusz89B added the bug Something isn't working label Jul 14, 2022
@Mariusz89B Mariusz89B self-assigned this Jul 14, 2022
@Mariusz89B Mariusz89B added question Further information is requested and removed bug Something isn't working labels Jul 14, 2022
@Mariusz89B Mariusz89B changed the title Android permissions Android ffmpeg permissions Jul 14, 2022
@Mariusz89B
Copy link
Owner Author

Mariusz89B commented Jul 26, 2022

The issue seems to be releated to Android Q executing permissions. After some initial tests by myself and @heppenowski, while moving ffmpeg manually in to root directory (special://xbmc, /data/data/org.xbmc.kodi/ffmpeg) with assigned permissions it is possible to execute and run ffmpeg, but Android will not allow to let python move ffmpeg files to root.

@Mariusz89B Mariusz89B changed the title Android ffmpeg permissions Android 11 ffmpeg permissions Jul 26, 2022
@Mariusz89B
Copy link
Owner Author

@Mariusz89B
Copy link
Owner Author

This issue might be solved if Kodi decided to ship ffmpeg binary, then it would be possible to execute it on Android 11.

@Shtolzer
Copy link

On Android 11 in Kodi 18.9 Leia this plugin works without errors and uses the same ffmpeg

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

No branches or pull requests

2 participants