|
|
@ -1707,8 +1707,18 @@ public class MicroPhotoService extends Service {
|
|
|
|
exitValue = routeProcess2.waitFor();
|
|
|
|
exitValue = routeProcess2.waitFor();
|
|
|
|
|
|
|
|
|
|
|
|
routeCommand = "/system/xbin/su root /system/bin/ip rule add from all to 192.168.68.0/24 lookup eth0 prio 1000";
|
|
|
|
routeCommand = "/system/xbin/su root /system/bin/ip rule add from all to 192.168.68.0/24 lookup eth0 prio 1000";
|
|
|
|
Process routeProcess3 = Runtime.getRuntime().exec(routeCommand);
|
|
|
|
for (int idx = 0; idx < 3; idx++) {
|
|
|
|
exitValue = routeProcess3.waitFor();
|
|
|
|
Process routeProcess3 = Runtime.getRuntime().exec(routeCommand);
|
|
|
|
|
|
|
|
exitValue = routeProcess3.waitFor();
|
|
|
|
|
|
|
|
if (exitValue == 0) {
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
Thread.sleep(100);
|
|
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (exitValue != 0) {
|
|
|
|
if (exitValue != 0) {
|
|
|
|
|
|
|
|
|
|
|
|