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

Commit 33848422 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

add support for volla phone

parent b8046eb3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -126,14 +126,16 @@ public class DeviceDetectionTask extends Task<Device>{
                     result.setName(stringPart.substring("product:".length() ));
                }else if(stringPart.contains("model:")){
                      logger.debug("  \"model\" keyword has been found");
                     result.setModel(stringPart.substring("model:".length() ));
                      String model = stringPart.substring("model:".length() );
                      if(model.equals("Volla_Phone")) model = "GS290";
                      result.setModel(model);
                }else if(stringPart.contains("device:")){
                    logger.debug("  \"device\" keyword has been found");
                     
                     // temp workaround because on Teracube: /e/ device is "2e" while stock is "teracube_2e" 
                    String device = stringPart.substring("device:".length() );
                    if(device.equals("2e")) device ="Teracube_2e";
                    
                    if(device.equals("k63v2_64_bsp")) device="GS290";
                    result.setDevice(device);
                }
            }