Android Question Cannot bind netlink socket: Permission denied in ANDROID 13

msucho

Member
Licensed User
Longtime User
Hi Erel:,
This problem appears in Android 13 (it works fine in Android 12).
When I try to retrieve the ip gateway by phone shell:
Ph.Shell("ip", Array As String("route", "get", "8.8.8.8"), SB1, SB2)
Log("Result:" & SB1.ToString &","& SB2.ToString)

The results is the error:
"Cannot bind netlink socket: Permission denied"
Do you have any suggestion to resolve it?
Thanks in advance.
Marcelo
 

DonManfred

Expert
Licensed User
Longtime User
8.8.8.8 is a GATEWAY?
This IP is one of google DNS-Server-IPs

 
Upvote 0

msucho

Member
Licensed User
Longtime User
8.8.8.8 is a GATEWAY?
This IP is one of google DNS-Server-IPs

Hi:
No, the 8.8.8.8 is the ip target used by the command "route get 8.8.8.8" I put this IP to point the route outside tha LAN and get the default router or gateway on wifi.
Thanks.
 
Upvote 0

msucho

Member
Licensed User
Longtime User
Ok, sorry , I will not mention anymore for personal Names.
Anybody knows what is the solution for this restriction in Android 13?
Regards
 
Upvote 0
Top