From 1b40738b716e31991313653a3d011cc31d3d4359 Mon Sep 17 00:00:00 2001 From: liuguijing <1440265357@qq.com> Date: Thu, 22 May 2025 11:22:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BE=AE=E6=8B=8D=E5=89=AF?= =?UTF-8?q?=E6=9C=BA=E6=8B=8D=E7=85=A7=E7=BC=BA=E5=B0=91=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/xypower/mpapp/MicroPhotoService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/xypower/mpapp/MicroPhotoService.java b/app/src/main/java/com/xypower/mpapp/MicroPhotoService.java index 906b617c..3e49640d 100644 --- a/app/src/main/java/com/xypower/mpapp/MicroPhotoService.java +++ b/app/src/main/java/com/xypower/mpapp/MicroPhotoService.java @@ -1798,7 +1798,7 @@ public class MicroPhotoService extends Service { public void setStaticNetwork(final String iface, final String ip, final String netmask, final String gateway) { - if (getCustomAppId() == 2 || getCustomAppId() == 1) { +// if (getCustomAppId() == 2) { // N938 new Thread(new Runnable() { @Override @@ -1806,7 +1806,7 @@ public class MicroPhotoService extends Service { setStaticNetwork(iface, ip, gateway, "192.168.68.0", 24); } }).start(); - } +// } if (!TextUtils.equals("0.0.0.0", ip)) { if (false) { @@ -1922,9 +1922,9 @@ public class MicroPhotoService extends Service { Process process = Runtime.getRuntime().exec("/system/xbin/su root"); DataOutputStream os = new DataOutputStream(process.getOutputStream()); -// os.writeBytes("/system/bin/ip link set eth0 down\n"); + // os.writeBytes("/system/bin/ip link set eth0 down\n"); os.writeBytes("/system/bin/ip addr add 192.168.68.91/24 broadcast 192.168.68.255 dev eth0\n"); -// os.writeBytes("/system/bin/ip link set eth0 up\n"); + // os.writeBytes("/system/bin/ip link set eth0 up\n"); // os.writeBytes("/system/bin/ip route delete 192.168.68.0/24 table 20 2>/dev/null || true\n"); os.writeBytes("/system/bin/ip route replace 192.168.68.0/24 dev eth0 proto static scope link table 20\n"); os.writeBytes("/system/bin/ip route flush cache\n");