Skip to content

Commit 23a6c7d

Browse files
committed
-p
1 parent b6fb386 commit 23a6c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Android/app/src/main/java/com/dergoogler/plugin/TerminalPlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public boolean execute(String action, JSONArray data, CallbackContext callbackCo
3030
JSONObject envp = data.getJSONObject(1);
3131

3232
this.terminalCallbackContext = callbackContext;
33-
String[] commands = {"su", "-c", cmd};
33+
String[] commands = {"su", "-p", "-c", cmd};
3434

3535
cordova.getThreadPool().execute(() -> {
3636
try {

0 commit comments

Comments
 (0)