|
@@ -10,6 +10,7 @@ import android.os.SystemProperties;
|
|
|
|
|
|
import com.wdkl.callingbed2.MyApplication;
|
|
|
import com.wdkl.callingbed2.common.Constants;
|
|
|
+import com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand;
|
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
@@ -174,4 +175,11 @@ public class AutoRebootUtil {
|
|
|
System.exit(0);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public static void resetSystem() {
|
|
|
+ AutoRebootUtil.reboot(MyApplication.getAppContext());
|
|
|
+ if (MyApplication.serialPortUtil != null) {
|
|
|
+ CallingBedSendCommand.setNetStatus(MyApplication.serialPortUtil, "1");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|