Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 519dfb28 authored by Frank Preel's avatar Frank Preel
Browse files

2e & emerald models

parent adbe70c7
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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);
                }