From aecdc24636322fd0b0b2a5f3661d38e780ea4760 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Thu, 27 May 2021 16:08:04 +0800 Subject: [PATCH] renote the getSn func --- .../java/com/mogo/commons/network/Utils.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/foudations/mogo-commons/src/main/java/com/mogo/commons/network/Utils.java b/foudations/mogo-commons/src/main/java/com/mogo/commons/network/Utils.java index 6fe456a84c..ce63c20e22 100644 --- a/foudations/mogo-commons/src/main/java/com/mogo/commons/network/Utils.java +++ b/foudations/mogo-commons/src/main/java/com/mogo/commons/network/Utils.java @@ -65,14 +65,14 @@ public class Utils { public static final String PROPERTIES = "android.os.SystemProperties"; public static String getSn() { - return "X2020210526D3DC7BA891CE2D76"; -// if ( DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_SELF_INNOVATE ) { -// return DeviceIdUtils.getDeviceId(AbsMogoApplication.getApp()); -// } -// if(DebugConfig.getCarMachineType() == DebugConfig.CAR_MACHINE_TYPE_LENOVO){ -// return MoGoAiCloudClientConfig.getInstance().getSn(); -// } -// return getSystemProperties( GSM_SERIAL ); +// return "X2020210526D3DC7BA891CE2D76"; + if ( DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_SELF_INNOVATE ) { + return DeviceIdUtils.getDeviceId(AbsMogoApplication.getApp()); + } + if(DebugConfig.getCarMachineType() == DebugConfig.CAR_MACHINE_TYPE_LENOVO){ + return MoGoAiCloudClientConfig.getInstance().getSn(); + } + return getSystemProperties( GSM_SERIAL ); } public static String getFotaVersion() {