From 277313a5bca6c32d992e979e2ac66fd76d911470 Mon Sep 17 00:00:00 2001 From: frankpreel Date: Wed, 30 Nov 2022 11:01:16 +0100 Subject: [PATCH 1/2] Allows the detection of On official ROM and on /e/ rom --- .../java/ecorp/easy/installer/tasks/DeviceDetectionTask.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ecorp/easy/installer/tasks/DeviceDetectionTask.java b/src/main/java/ecorp/easy/installer/tasks/DeviceDetectionTask.java index ba64c635..af8e6442 100644 --- a/src/main/java/ecorp/easy/installer/tasks/DeviceDetectionTask.java +++ b/src/main/java/ecorp/easy/installer/tasks/DeviceDetectionTask.java @@ -151,6 +151,10 @@ public class DeviceDetectionTask extends Task{ if (device.equals("Teracube_2e") && !datas[0].startsWith("2020")) { device ="emerald"; } + // OnePlus Nord + else if (device.equals("Nord") && "AC2003".equals(result.getAdbModel())) { + device ="OnePlusNord"; + } //if(device.equals("k63v2_64_bsp")) device="GS290"; //bad idea. Device not really compatible. result.setAdbDevice(device); -- GitLab From 08776fb35e1c249bbaea42285c850bf1c3d2c253 Mon Sep 17 00:00:00 2001 From: frankpreel Date: Thu, 1 Dec 2022 09:30:46 +0100 Subject: [PATCH 2/2] Add Iindia model --- .../java/ecorp/easy/installer/tasks/DeviceDetectionTask.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/ecorp/easy/installer/tasks/DeviceDetectionTask.java b/src/main/java/ecorp/easy/installer/tasks/DeviceDetectionTask.java index af8e6442..e326b1e8 100644 --- a/src/main/java/ecorp/easy/installer/tasks/DeviceDetectionTask.java +++ b/src/main/java/ecorp/easy/installer/tasks/DeviceDetectionTask.java @@ -151,8 +151,9 @@ public class DeviceDetectionTask extends Task{ if (device.equals("Teracube_2e") && !datas[0].startsWith("2020")) { device ="emerald"; } - // OnePlus Nord - else if (device.equals("Nord") && "AC2003".equals(result.getAdbModel())) { + // OnePlus Nord UE & India + else if (device.equals("Nord") && + ("AC2003".equals(result.getAdbModel()) || "AC2001".equals(result.getAdbModel())) ) { device ="OnePlusNord"; } -- GitLab