Loading src/com/android/settings/RadioInfo.java +3 −3 Original line number Diff line number Diff line Loading @@ -1167,7 +1167,7 @@ public class RadioInfo extends Activity { private final void pingHostname() { try { try { Process p4 = Runtime.getRuntime().exec("ping -c 1 www.google.com"); Process p4 = Runtime.getRuntime().exec("ping -c 1 9.9.9.9"); int status4 = p4.waitFor(); if (status4 == 0) { mPingHostnameResultV4 = "Pass"; Loading @@ -1178,7 +1178,7 @@ public class RadioInfo extends Activity { mPingHostnameResultV4 = "Fail: IOException"; } try { Process p6 = Runtime.getRuntime().exec("ping6 -c 1 www.google.com"); Process p6 = Runtime.getRuntime().exec("ping6 -c 1 2620:fe::fe"); int status6 = p6.waitFor(); if (status6 == 0) { mPingHostnameResultV6 = "Pass"; Loading @@ -1200,7 +1200,7 @@ public class RadioInfo extends Activity { HttpURLConnection urlConnection = null; try { // TODO: Hardcoded for now, make it UI configurable URL url = new URL("https://www.google.com"); URL url = new URL("https://9.9.9.9"); urlConnection = (HttpURLConnection) url.openConnection(); if (urlConnection.getResponseCode() == 200) { mHttpClientTestResult = "Pass"; Loading src/com/android/settings/wifi/WifiStatusTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -343,7 +343,7 @@ public class WifiStatusTest extends Activity { private final void pingHostname() { try { // TODO: Hardcoded for now, make it UI configurable Process p = Runtime.getRuntime().exec("ping -c 1 -w 100 www.google.com"); Process p = Runtime.getRuntime().exec("ping -c 1 -w 100 9.9.9.9"); int status = p.waitFor(); if (status == 0) { mPingHostnameResult = "Pass"; Loading @@ -363,7 +363,7 @@ public class WifiStatusTest extends Activity { HttpURLConnection urlConnection = null; try { // TODO: Hardcoded for now, make it UI configurable URL url = new URL("https://www.google.com"); URL url = new URL("https://9.9.9.9"); urlConnection = (HttpURLConnection) url.openConnection(); if (urlConnection.getResponseCode() == 200) { mHttpClientTestResult = "Pass"; Loading Loading
src/com/android/settings/RadioInfo.java +3 −3 Original line number Diff line number Diff line Loading @@ -1167,7 +1167,7 @@ public class RadioInfo extends Activity { private final void pingHostname() { try { try { Process p4 = Runtime.getRuntime().exec("ping -c 1 www.google.com"); Process p4 = Runtime.getRuntime().exec("ping -c 1 9.9.9.9"); int status4 = p4.waitFor(); if (status4 == 0) { mPingHostnameResultV4 = "Pass"; Loading @@ -1178,7 +1178,7 @@ public class RadioInfo extends Activity { mPingHostnameResultV4 = "Fail: IOException"; } try { Process p6 = Runtime.getRuntime().exec("ping6 -c 1 www.google.com"); Process p6 = Runtime.getRuntime().exec("ping6 -c 1 2620:fe::fe"); int status6 = p6.waitFor(); if (status6 == 0) { mPingHostnameResultV6 = "Pass"; Loading @@ -1200,7 +1200,7 @@ public class RadioInfo extends Activity { HttpURLConnection urlConnection = null; try { // TODO: Hardcoded for now, make it UI configurable URL url = new URL("https://www.google.com"); URL url = new URL("https://9.9.9.9"); urlConnection = (HttpURLConnection) url.openConnection(); if (urlConnection.getResponseCode() == 200) { mHttpClientTestResult = "Pass"; Loading
src/com/android/settings/wifi/WifiStatusTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -343,7 +343,7 @@ public class WifiStatusTest extends Activity { private final void pingHostname() { try { // TODO: Hardcoded for now, make it UI configurable Process p = Runtime.getRuntime().exec("ping -c 1 -w 100 www.google.com"); Process p = Runtime.getRuntime().exec("ping -c 1 -w 100 9.9.9.9"); int status = p.waitFor(); if (status == 0) { mPingHostnameResult = "Pass"; Loading @@ -363,7 +363,7 @@ public class WifiStatusTest extends Activity { HttpURLConnection urlConnection = null; try { // TODO: Hardcoded for now, make it UI configurable URL url = new URL("https://www.google.com"); URL url = new URL("https://9.9.9.9"); urlConnection = (HttpURLConnection) url.openConnection(); if (urlConnection.getResponseCode() == 200) { mHttpClientTestResult = "Pass"; Loading