script.xbmc.boblight
script.xbmc.boblight copied to clipboard
Nvidia Shield TV fixes
There are currently two issues with the library download for Nvidia Shield TV (android TV 7.0)
- The script downloads the wrong version of the library (android instead of androidarm64)
- When run, SElinux denies permission, which is I both can be solved using adb of course. I've suggested a solution for 1, I'm not sure 2. can be easily fixed without access to root and/or selinux tools.
For reference, running $ restorecon /data/data/org.xbmc.kodi/files/libboblight.so
should fix the SElinux permission error.
Further reference, the SElinux fault as shown by logcat (note that this was during debugging, tcontext was modified by hand to try and solve the issue and does not match original):
08-03 18:33:45.808 16761 16761 W Thread-3: type=1400 audit(0.0:77): avc: denied { execute } for path="/data/data/org.xbmc.kodi/files/libboblight.so" dev="mmcblk0p29" ino=594626 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=file permissive=0
Can the binary be shipped with the KODI apk? Can "restorecon" be used without root?
Both are very unlikely