Restrict getNetworkType and getPhoneType