Skip to content

Commit 3a088e1

Browse files
committed
Shell
1 parent 1782fea commit 3a088e1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/src/main/java/com/sevtinge/hyperceiler/utils/shell/ShellExec.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
*/
8181
public class ShellExec {
8282
private final static String TAG = "ShellExec";
83-
private final Process process;
84-
private final DataOutputStream os;
83+
private Process process;
84+
private DataOutputStream os;
8585
private static IPassCommands pass0;
8686
private static IPassCommands pass1;
8787
private Error mError;
@@ -90,7 +90,7 @@ public class ShellExec {
9090
private final ArrayList<String> error = new ArrayList<>();
9191
private final ArrayList<String> cList = new ArrayList<>();
9292

93-
private final boolean result;
93+
private boolean result;
9494
private boolean init;
9595
private boolean destroy;
9696
private boolean appending = false;
@@ -174,7 +174,8 @@ public ShellExec(String command, boolean root, boolean result, @Nullable IResult
174174
init = true;
175175
destroy = false;
176176
} catch (IOException e) {
177-
throw new RuntimeException("ShellExec boot failed!!\n" + e);
177+
init = false;
178+
// throw new RuntimeException("ShellExec boot failed!!\n" + e);
178179
// AndroidLogUtils.logE(TAG, "ShellExec E", e);
179180
// init = false;
180181
}

0 commit comments

Comments
 (0)