[Q] Allow device to be pinged
i need to ping my phone while on wifi. But it doesn't answer icmp requests since /proc/sys/net/ipv4/icmp_echo_ignore_all is always set to 1 after reboot.
I tried to set it through sysctl.conf
and also with a custom script in /data/local/userinit.d/99userinit containing :
echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_all
None worked. However i tried to put logs in my script to check wether it was actually run at startup or not, but i couldn't find my entries in logcat.
Can anyone help ?