Project

General

Profile

Bug #4761

Updated by Junxiao Shi about 6 years ago

After enabling UDP multicast in [nfd-wrapper.cpp](https://github.com/named-data-mobile/NFD-android/blob/27f43393b2fd2c6274055348754711828e200c74/app/src/main/jni/nfd-wrapper.cpp#L80), I got following error: 

 10-23 13:57:01.498 3927-3976/net.named_data.nfd.service.NfdService A/nfd.NfdWrapper: Cannot bind multicast rx socket to wlan0: Operation not permitted 

 [SO_BINDTODEVICE](https://github.com/named-data/NFD/blob/f48d0809f085b32670b4163328ce88c6cad0291d/daemon/face/multicast-udp-transport.cpp#L122) need root privilege, but Android doesn't allow application in user space to enter root.

Back