Skip to content

Commit

Permalink
pkvm: Ready to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
wasdwasd0105 committed Oct 4, 2022
1 parent 2e5b5d7 commit cf5afd5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -759,20 +759,19 @@ public String start() {
qemuArgv.append(param);
}
Log.d(TAG, String.valueOf(qemuArgv));
Shell.cmd(qemuExecDir + qemuArgv).exec();
Shell.Result result;
result = Shell.cmd(qemuExecDir + qemuArgv).exec();

//qemuShell.newJob().add(qemuExecDir + qemuArgv).exec();


// res = start(Config.storagedir, LimboApplication.getBasefileDir(),
// libFilename, FileUtils.getNativeLibDir(LimboApplication.getInstance()) + "/" + libFilename,
// Config.SDLHintScale, params);
if (result.isSuccess()){
return "VM shutdown";
}else{
return "QEMU return error!";
}

} catch (Exception ex) {
ToastUtils.toastLong(LimboApplication.getInstance(), ex.getMessage());
return "0";
return "1";
}
return "VM shutdown";
}

private void changeVncPass(final Context context, final long delay) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package com.max2idea.android.limbo.machine;

import com.limbo.emu.lib.R;
import com.max2idea.android.limbo.main.Config;
import com.max2idea.android.limbo.main.LimboApplication;

Expand All @@ -32,7 +33,7 @@ public class Machine extends Observable {

private String name;
private String keyboard;
private String mouse = "ps2";
private String mouse = "usb-tablet";
private int enableVNC = 1;
private String arch;
private String machineType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public enum Arch {
public static String defaultVNCHost = "127.0.0.1";
//It seems that new versions of qemu expect a relative number
// so we stop using absolute port numbers
public static final int defaultVNCPort = 1;
public static final int defaultVNCPort = 0;

//Keyboard Layout
public static String defaultKeyboardLayout = "en-us";
Expand Down
Binary file modified limbo-android-lib/src/main/res/drawable-hdpi/limbo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified limbo-android-lib/src/main/res/drawable-ldpi/limbo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified limbo-android-lib/src/main/res/drawable-mdpi/limbo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cf5afd5

Please sign in to comment.