Closed atsakiridis closed 6 years ago
Seems it's still occurring in @ognjenns's device. Somehow although for emulator all is good in Nexus 5X it breaks, and the problem isn't that the DNS settings aren't configured. Logs clearly show that they are but somehow don't take effect
Was closed by mistake due to a merge
Turns out this was indeed fixed, it's just that we still get the log error somehow:
12-08 11:46:09.189 7784-7816/org.restcomm.android.olympus I/NotificationManager: Updating DNS servers for dnsjava with: 192.168.1.1, i/f: wlan0
...
12-08 11:46:11.015 7784-7816/org.restcomm.android.olympus V/JainSipClient: bind()
12-08 11:46:11.024 7784-7816/org.restcomm.android.olympus V/JainSipClient: getIPAddress(): 192.168.1.31
12-08 11:46:11.080 7784-7816/org.restcomm.android.olympus V/JainSipClient: jainSipRegister()
12-08 11:46:11.082 7784-7816/org.restcomm.android.olympus V/JainSipClient: jainSipRegister(), jobs status: Job count: 1, details:
...
12-08 11:46:11.110 7784-7816/org.restcomm.android.olympus E/libc: Access denied finding property "net.dns1"
12-08 11:46:11.110 7816-7816/? W/2.168.1.31/5090: type=1400 audit(0.0:1666): avc: denied { read } for name="u:object_r:net_dns_prop:s0" dev="tmpfs" ino=11476 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:net_dns_prop:s0 tclass=file permissive=0
12-08 11:46:11.111 7784-7816/org.restcomm.android.olympus E/libc: Access denied finding property "net.dns2"
12-08 11:46:11.111 7784-7816/org.restcomm.android.olympus E/libc: Access denied finding property "net.dns3"
Let's open a new issue to investigate why this happens: #770
Seems that the way jain-sip is retrieving the name servers to use breaks with Oreo. For more info check Privacy section of https://developer.android.com/about/versions/oreo/android-8.0-changes.html. Here's the console log when this issue occurs: