Skip to content

Commit 806def2

Browse files
committed
add skin argument to create avd command
1 parent a4f9eeb commit 806def2

File tree

1 file changed

+9
-8
lines changed
  • mode/src/processing/mode/android

1 file changed

+9
-8
lines changed

mode/src/processing/mode/android/AVD.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ protected boolean create(final AndroidSDK sdk) throws IOException {
374374
"-c", DEFAULT_SDCARD_SIZE,
375375
"-d", device,
376376
"-p", avdPath.getAbsolutePath(),
377-
"-f"
377+
"--skin", skin,
378+
"--force"
378379
};
379380

380381
ProcessBuilder pb = new ProcessBuilder(cmd);
@@ -412,13 +413,13 @@ protected boolean create(final AndroidSDK sdk) throws IOException {
412413

413414
if (process.exitValue() == 0) {
414415
// Add skin to AVD's config file
415-
File configFile = new File(avdPath, "config.ini");
416-
if (configFile.exists()) {
417-
try (PrintWriter output = new PrintWriter(new FileWriter(configFile.getAbsolutePath(), true))) {
418-
output.printf("%s\r\n", "skin.name=" + skin);
419-
}
420-
catch (Exception e) {}
421-
}
416+
// File configFile = new File(avdPath, "config.ini");
417+
// if (configFile.exists()) {
418+
// try (PrintWriter output = new PrintWriter(new FileWriter(configFile.getAbsolutePath(), true))) {
419+
// output.printf("%s\r\n", "skin.name=" + skin);
420+
// }
421+
// catch (Exception e) {}
422+
// }
422423
return true;
423424
}
424425

0 commit comments

Comments
 (0)