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

Commit 2197b420 authored by Jackeagle's avatar Jackeagle
Browse files

DeviceDetectionTask: Force set the device name to "herolte" for the S7.



- Due to variations in product and device names, the S7 is displayed as "Not supported" because Easy Installer expects it to be set to "herolte."

Signed-off-by: default avatarJackeagle <jackeagle102@gmail.com>
parent 0695e186
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -156,6 +156,10 @@ public class DeviceDetectionTask extends Task<Phone>{
                        ("AC2003".equals(result.getAdbModel()) || "AC2001".equals(result.getAdbModel())) ) {
                        device ="OnePlusNord";
                    }
                    // Samsung Galaxy S7
                    else if (device.equals("heroltexx") && ("SM_G930F".equals(result.getAdbModel())) ) {
                        device ="herolte";
                    }

                    //if(device.equals("k63v2_64_bsp")) device="GS290"; //bad idea. Device not really compatible.
                    result.setAdbDevice(device);