Fix netd crash in checkUserNetworkAccessLocked()
SIGABRT happens when unprivileged applications call Network.bindSocket
with a local network (netId=99). Netd statically cast a LocalNetwork
object to PhysicalNetwork, call member function getPermission().
However, the function exists in PhysicalNetwork only.
This commit makes getPermission() as a pure virtual function in the
ancestor class and implements it in each subclass.
Test: atest netdclient_root_test
9 files changed