import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.util.logging.Level;
import org.eclipse.swt.widgets.Display;
// for sensor
cmd.add("-device");
- cmd.add("virtio-sensor-pci");
+ cmd.add("virtio-sensor-pci,sensors=accel&gyro");
// for battery
cmd.add("-device");
// for jack
cmd.add("-device");
- cmd.add("virtio-jack-pci");
+ cmd.add("virtio-jack-pci,jacks=charger&usb");
cmd.add("-device");
cmd.add("codec-pci");
@Override
public Process launch(List<String> cmd) {
ProcessBuilder pb = new ProcessBuilder(cmd);
+ if (EmulatorManager.isLinux()) {
+ Map<String, String> env = pb.environment();
+ String value = env.get("LD_LIBRARY_PATH");
+ env.put("LD_LIBRARY_PATH", ((value == null) ? "" : value + ":") + FilePathResources.getBinPath() + ":" + FilePathResources.getRemotePath() + File.separator + "lib:");
+ EMLogger.getLogger().log(Level.INFO, "LD_LIBRARY_PATH: " + env.get("LD_LIBRARY_PATH"));
+ }
if (this.binPath == null || this.binPath.isEmpty()) {
pb.directory(new File(FilePathResources.getBinPath()));