// }
// for battery
- if (checkOnOff(property.getPropertyValue().getAdvancedOptionSubValue(OPT_DEVICE, OPT_BATTERY))) {
+ cmd.add("-device");
+ cmd.add("virtio-power-pci");
+ /*if (checkOnOff(property.getPropertyValue().getAdvancedOptionSubValue(OPT_DEVICE, OPT_BATTERY))) {
cmd.add("-device");
cmd.add("virtio-power-pci");
- }
+ }*/
// for camera
if (checkOnOff(property.getPropertyValue().getAdvancedOptionSubValue(OPT_DEVICE, OPT_CAMERA))) {
}
// for jacks (enabled charger, earjack and usb)
- // for sensor (enabled accel, geo, gyro, light and proxi)
- OptionType jacks = property.getPropertyValue().getAdvancedOption(OPT_JACK);
+ cmd.add("-device");
+ cmd.add("virtio-jack-pci,jacks=earjack&charger&usb");
+ /* OptionType jacks = property.getPropertyValue().getAdvancedOption(OPT_JACK);
if (jacks != null) {
cmd.add("-device");
sb.insert(0, "virtio-jack-pci,jacks=");
cmd.add(sb.toString());
}
- }
+ } */
}
/* append user added options if exists */
}
// for battery
+ cmd.add("-device");
+ cmd.add("virtio-power-pci");
+ /*
if (checkOnOff(property.getPropertyValue().getAdvancedOptionSubValue(OPT_DEVICE, OPT_BATTERY))) {
cmd.add("-device");
cmd.add("virtio-power-pci");
}
+ */
// for sensor (accel, geo, gyro, light, proxi, haptic, pressure, ultra violet, heart rate meter)
OptionType sensor = property.getPropertyValue().getAdvancedOption(OPT_SENSOR);
}
// for jacks (enabled charger, and usb)
- OptionType jacks = property.getPropertyValue().getAdvancedOption(OPT_JACK);
+ cmd.add("-device");
+ cmd.add("virtio-jack-pci,jacks=charger&usb");
+ /* OptionType jacks = property.getPropertyValue().getAdvancedOption(OPT_JACK);
if (jacks != null) {
cmd.add("-device");
sb.insert(0, "virtio-jack-pci,jacks=");
cmd.add(sb.toString());
}
- }
+ } */
cmd.add("-device");
</item>
<item type="checkLabel" name="device" title="Device">
<item type="checkbox" name="camera" title="Camera"/>
- <item type="checkbox" name="battery" title="Battery"/>
+<!-- <item type="checkbox" name="battery" title="Battery"/> -->
<!-- <item type="checkbox" name="swap" title="Swap Image"> -->
<!-- <option name="defaultOnCreate">on</option> -->
<!-- </item> -->
<!-- <item type="checkbox" name="hwkey" title="HW Key"/> -->
</item>
- <item type="checkLabel" name="jack" title="Jack">
- <item type="checkbox" name="charger" title="Charger"/>
- <item type="checkbox" name="usb" title="USB"/>
- </item>
+<!-- <item type="checkLabel" name="jack" title="Jack"> -->
+<!-- <item type="checkbox" name="charger" title="Charger"/> -->
+<!-- <item type="checkbox" name="usb" title="USB"/> -->
+<!-- </item> -->
</deviceList>
</ItemList>
<item type="checkLabel" name="device" title="Device">
<!-- <item type="checkbox" name="nfc" title="NFC"/> -->
<item type="checkbox" name="camera" title="Camera"/>
- <item type="checkbox" name="battery" title="Battery"/>
+<!-- <item type="checkbox" name="battery" title="Battery"/> -->
<!-- <item type="checkbox" name="swap" title="Swap Image"> -->
<!-- <option name="defaultOnCreate">on</option> -->
<!-- </item> -->
<!-- <item type="checkbox" name="hwkey" title="HW Key"/> -->
</item>
- <item type="checkLabel" name="jack" title="Jack">
- <item type="checkbox" name="earjack" title="Ear Jack"/>
- <item type="checkbox" name="charger" title="Charger"/>
- <item type="checkbox" name="usb" title="USB"/>
- </item>
+<!-- <item type="checkLabel" name="jack" title="Jack"> -->
+<!-- <item type="checkbox" name="earjack" title="Ear Jack"/> -->
+<!-- <item type="checkbox" name="charger" title="Charger"/> -->
+<!-- <item type="checkbox" name="usb" title="USB"/> -->
+<!-- </item> -->
<item type="lineLabel" name="experimental" title="Experimental Options"/>
<item type="label" name="viewer" title="Viewer">
<item type="combo" name="type" title="Type">