Loading src/main/java/ecorp/easy/installer/tasks/DeviceDetectionTask.java +8 −2 Original line number Diff line number Diff line Loading @@ -146,8 +146,14 @@ public class DeviceDetectionTask extends Task<Phone>{ }else if(stringPart.contains("device:")){ logger.debug(" \"device\" keyword has been found"); String device = stringPart.substring("device:".length() ); if(device.equals("Teracube_2e") && datas[0].startsWith("2020")) device ="Teracube_2e"; if(device.equals("Teracube_2e") && datas[0].startsWith("2021")) device ="emerald"; // Teracube, going to assume that anything that starts with 2020 is "2e", otherwise it's "emerald". if(device.equals("Teracube_2e")) { device ="emerald"; if (datas[0].startsWith("2020")) device ="Teracube_2e"; } //if(device.equals("k63v2_64_bsp")) device="GS290"; //bad idea. Device not really compatible. result.setAdbDevice(device); } Loading Loading
src/main/java/ecorp/easy/installer/tasks/DeviceDetectionTask.java +8 −2 Original line number Diff line number Diff line Loading @@ -146,8 +146,14 @@ public class DeviceDetectionTask extends Task<Phone>{ }else if(stringPart.contains("device:")){ logger.debug(" \"device\" keyword has been found"); String device = stringPart.substring("device:".length() ); if(device.equals("Teracube_2e") && datas[0].startsWith("2020")) device ="Teracube_2e"; if(device.equals("Teracube_2e") && datas[0].startsWith("2021")) device ="emerald"; // Teracube, going to assume that anything that starts with 2020 is "2e", otherwise it's "emerald". if(device.equals("Teracube_2e")) { device ="emerald"; if (datas[0].startsWith("2020")) device ="Teracube_2e"; } //if(device.equals("k63v2_64_bsp")) device="GS290"; //bad idea. Device not really compatible. result.setAdbDevice(device); } Loading