Mariusz89B / script.mtvguide

m-TVGuide, a completely free Kodi add-on with support for electronic tvguide (EPG). Allows streaming content from licensed television provider services and M3U playlists.
GNU Affero General Public License v3.0
29 stars 5 forks source link

Android 11 ffmpeg permissions #18

Open Mariusz89B opened 1 year ago

Mariusz89B commented 1 year ago

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:

*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 commented 1 year ago

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 commented 1 year ago

https://github.com/primaeval/plugin.video.iptv.recorder/issues/53

Mariusz89B commented 1 year ago

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