Commit 4f6274e0f1ff0fb464a4acb1b3bef5fe0c3dcbee

Authored by xiemeng
1 parent 7a3ef0ba

默认IMEI 视为无效

Showing 1 changed file with 6 additions and 0 deletions
@@ -216,6 +216,12 @@ META_RESULT SmartPhoneSN::WriteNvramLoop() @@ -216,6 +216,12 @@ META_RESULT SmartPhoneSN::WriteNvramLoop()
216 } 216 }
217 a_imei_ary[15] = 0; 217 a_imei_ary[15] = 0;
218 a_imei_ary2[15] = 0; 218 a_imei_ary2[15] = 0;
  219 +
  220 + if (strcmp(a_imei_ary,"352246078300483") == 0 || strcmp(a_imei_ary,"352246078300491"))
  221 + {
  222 + memset(a_imei_ary,0,16);
  223 + memset(a_imei_ary2,0,16);
  224 + }
219 calc_imei1 = META_NVRAM_Calculate_IMEI_CD(a_imei_ary, &checksum_v); 225 calc_imei1 = META_NVRAM_Calculate_IMEI_CD(a_imei_ary, &checksum_v);
220 calc_imei2 = META_NVRAM_Calculate_IMEI_CD(a_imei_ary2, &checksum_v); 226 calc_imei2 = META_NVRAM_Calculate_IMEI_CD(a_imei_ary2, &checksum_v);
221 g_pMainDlg->GetDlgItem(IDC_STATIC_IMEI1)->SetWindowText(a_imei_ary); 227 g_pMainDlg->GetDlgItem(IDC_STATIC_IMEI1)->SetWindowText(a_imei_ary);
Please register or login to post a comment