From 75f0fdc73c5f7c9aefb8eba834abd58e5c09e7da Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 11 May 2025 03:35:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 9388288f..e3a4a25d 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -4421,10 +4421,13 @@ int CPhoneDevice::ExecuteCommand(const std::string& cmd) void CPhoneDevice::ShutdownEthernet() { + XYLOG(XYLOG_SEVERITY_DEBUG, "Make Ethernet Down"); std::string cmd = "/system/xbin/su root ifconfig "; cmd += m_network->iface; cmd += " down"; - ExecuteCommand(cmd); + int resCode = ExecuteCommand(cmd); + XYLOG(XYLOG_SEVERITY_DEBUG, "Ethernet is Down %d", resCode); + // const char* args[] = {"root", "ifconfig", m_network->iface.c_str(), "down", NULL}; #if 0