diff --git a/app/src/main/java/com/vectras/vm/SetupQemuActivity.java b/app/src/main/java/com/vectras/vm/SetupQemuActivity.java index b4f0624..2969548 100644 --- a/app/src/main/java/com/vectras/vm/SetupQemuActivity.java +++ b/app/src/main/java/com/vectras/vm/SetupQemuActivity.java @@ -177,7 +177,8 @@ public void executeShellCommand(String userCommand) { "-b", "/storage", "-b", "/data", "-w", "/root", - "--login" // The shell to execute inside PRoot + "/bin/sh", + "--login"// The shell to execute inside PRoot }; processBuilder.command(prootCommand); @@ -349,8 +350,7 @@ private void setupVectras() { executeShellCommand("set -e;" + " echo 'Starting setup...';" + " apk update;" + - " apk add sudo;" + - " sudo apk add tar libslirp libslirp-dev pulseaudio-dev glib-dev pixman-dev zlib-dev spice-dev" + + " apk add tar libslirp libslirp-dev pulseaudio-dev glib-dev pixman-dev zlib-dev spice-dev" + " libusbredirparser usbredir-dev libiscsi-dev sdl2 sdl2-dev libepoxy-dev virglrenderer-dev rdma-core" + " libusb ncurses-libs curl libnfs sdl2 gtk+3.0 fuse libpulse libseccomp jack pipewire liburing;" + " tar -xzvf " + tarPath + " -C /;" + diff --git a/app/src/main/java/com/vectras/vterm/Terminal.java b/app/src/main/java/com/vectras/vterm/Terminal.java index 957aed9..5f10eb7 100644 --- a/app/src/main/java/com/vectras/vterm/Terminal.java +++ b/app/src/main/java/com/vectras/vterm/Terminal.java @@ -109,7 +109,8 @@ public void executeShellCommand(String userCommand, boolean showResultDialog, Ac "-b", "/storage", "-b", "/data", "-w", "/root", - "--login" // The shell to execute inside PRoot + "/bin/sh", + "--login"// The shell to execute inside PRoot }; processBuilder.command(prootCommand); diff --git a/app/src/main/java/com/vectras/vterm/TerminalBottomSheetDialog.java b/app/src/main/java/com/vectras/vterm/TerminalBottomSheetDialog.java index 4a7a6df..b3ea323 100644 --- a/app/src/main/java/com/vectras/vterm/TerminalBottomSheetDialog.java +++ b/app/src/main/java/com/vectras/vterm/TerminalBottomSheetDialog.java @@ -189,7 +189,8 @@ public void executeShellCommand(String userCommand) { "-b", "/storage", "-b", "/data", "-w", "/root", - "--login" // The shell to execute inside PRoot + "/bin/sh", + "--login"// The shell to execute inside PRoot }; processBuilder.command(prootCommand);