fixbug of ADAS send sn problem and note the foreCast latlon of adasRecognize data

This commit is contained in:
zhongchao
2021-05-27 16:07:38 +08:00
parent 8f0f61f554
commit fddb6f0e7d
9 changed files with 61 additions and 29 deletions

View File

@@ -8,6 +8,7 @@ import android.telephony.TelephonyManager;
import android.telephony.cdma.CdmaCellLocation;
import android.telephony.gsm.GsmCellLocation;
import com.mogo.cloud.passport.MoGoAiCloudClientConfig;
import com.mogo.commons.AbsMogoApplication;
import com.mogo.commons.debug.DebugConfig;
import com.mogo.utils.DeviceIdUtils;
@@ -64,10 +65,14 @@ public class Utils {
public static final String PROPERTIES = "android.os.SystemProperties";
public static String getSn() {
if ( DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_SELF_INNOVATE ) {
return DeviceIdUtils.getDeviceId(AbsMogoApplication.getApp());
}
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() {