Open gccfla opened 3 years ago
I would hedge a bet that the default selinux policy will deny using SIOCGARP on android.
https://android.googlesource.com/platform/system/sepolicy/+/refs/heads/master/public/ioctl_macros
It would be interesting to know if this problem is specific to android though.
The function in question is here https://github.com/xbmc/xbmc/blob/master/xbmc/platform/android/network/NetworkAndroid.cpp#L105
I installed Kodi 18.9 from Fedora repository on my Linux box (uname -r is 5.9.9-100.fc32.x86_64). I do not get "MAC discover failed..." warning, nor is there a corresponding message in debug log. So your SIOCGARP hypothesis may be right. But ioctl() is a hornets' nest I've lately managed to avoid.
Alas, my sleeping MiniDLNA remains comatose when I try to explore its contents. My tpcdump fu is weak, but after disabling my firewall (which I really hate doing),
# tcpdump -UlnXi enp0s10 ether proto 0x0842 or udp port 9
comes up empty, telling me (I think), no WoL packets are sent.
This issue is now marked stale because it has been open over a year without activity. Remove the stale label or add a comment to reset the stale state.
Bug report
Describe the bug
Here is a clear and concise description of what the problem is:
On Android, "Settings>System>Power saving>Try to wakeup remote servers on access" draws a "MACdiscover failed for 192.168.1.92".
Expected Behavior
Here is a clear and concise description of what was expected to happen:
Silence? Or maybe a reassuring message saying MAC address had been ascertained?
Actual Behavior
MAC address, needed for WoL somehow fails.
Possible Fix
Way above my pay grade!
To Reproduce
Steps to reproduce the behavior:
Debuglog
The debuglog can be found here:
https://paste.kodi.tv/ujotuhayes.kodi -- problem starts around line 234
Screenshots
Here are some links or screenshots to help explain the problem:
Sorry if I'm missing info. "Team Kodi" on IRC #kodi asked me to submit a bug report. I did my best.
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
All my Kodi boxes are Android. Log is from MiBox4, but same problem on NVidia Shield.
Your Environment
Used Operating system:
[x] Android
[ ] iOS
[ ] tvOS
[ ] Linux
[ ] OSX
[ ] Windows
[ ] Windows UWP
Operating system version/name:
Kodi version: 18.8
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.