mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-29 23:09:48 +00:00
2.9.0 Update
This commit is contained in:
parent
28de7905dc
commit
3658d98e4b
13 changed files with 87 additions and 353 deletions
|
|
@ -164,22 +164,19 @@ public class SetupQemuActivity extends AppCompatActivity implements View.OnClick
|
|||
processBuilder.environment().put("TMPDIR", tmpDir.getAbsolutePath());
|
||||
processBuilder.environment().put("SHELL", "/bin/sh");
|
||||
|
||||
// Example PRoot command; replace 'libproot.so' and other paths as needed
|
||||
String[] prootCommand = {
|
||||
nativeLibDir + "/libproot.so", // PRoot binary path
|
||||
"--kill-on-exit",
|
||||
"--link2symlink",
|
||||
"-0",
|
||||
"-r", filesDir + "/distro", // Path to the rootfs
|
||||
"-b", "/dev",
|
||||
"-b", "/proc",
|
||||
"-b", "/sys",
|
||||
"-b", "/sdcard",
|
||||
"-b", "/storage",
|
||||
"-b", "/data",
|
||||
"-w", "/root",
|
||||
"--rootfs=" + filesDir + "/distro", // Path to the rootfs
|
||||
"--bind=/dev",
|
||||
"--bind=/proc",
|
||||
"--bind=/sys",
|
||||
"--bind=/sdcard",
|
||||
"--bind=/storage",
|
||||
"--bind=/data",
|
||||
"--cwd=/root",
|
||||
"/bin/sh",
|
||||
"--login"// The shell to execute inside PRoot
|
||||
"--login" // The shell to execute inside PRoot
|
||||
};
|
||||
|
||||
processBuilder.command(prootCommand);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue