renote the getSn func

This commit is contained in:
zhongchao
2021-05-27 16:08:04 +08:00
parent fddb6f0e7d
commit aecdc24636

View File

@@ -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() {