; ***********************************************
; Company: Sony Ericsson Mobile Communications AB
; Author: Studenka Lundahl(23010485)
; First release: 2006-05-29
; ***********************************************
; Revision History:
; Date      User        Rev    Description
; ******    ********    ***    ***********************
; 060529    23010485    R1A    Initial version
;
;
; Description
; ***********
; This script file will change the first 20 units in unit id 0x0006 to zeros
;
; BEGINNING OF SCRIPT FILE
begin;

; Create a variable to hold the complete data array that are to be read from the ME
createvar GD_COPS_Dynamic1Variable;

showmessage Please wait ...;

; Read the data from the product
readgdfs 0x00 0x06 GD_COPS_Dynamic1Variable;

; Create a variable that will tamper the EMP CRC but not the SEMC simlock
createvar vChange_EMP_CRC 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00;


; Copy the Phone Lock Code data from the GD_COPS_Dynamic2Variable variable
setvar GD_COPS_Dynamic1Variable[0] vChange_EMP_CRC[0];
setvar GD_COPS_Dynamic1Variable[1] vChange_EMP_CRC[1];
setvar GD_COPS_Dynamic1Variable[2] vChange_EMP_CRC[2];
setvar GD_COPS_Dynamic1Variable[3] vChange_EMP_CRC[3];
setvar GD_COPS_Dynamic1Variable[4] vChange_EMP_CRC[4];
setvar GD_COPS_Dynamic1Variable[5] vChange_EMP_CRC[5];
setvar GD_COPS_Dynamic1Variable[6] vChange_EMP_CRC[6];
setvar GD_COPS_Dynamic1Variable[7] vChange_EMP_CRC[7];
setvar GD_COPS_Dynamic1Variable[8] vChange_EMP_CRC[8];
setvar GD_COPS_Dynamic1Variable[9] vChange_EMP_CRC[9];
setvar GD_COPS_Dynamic1Variable[10] vChange_EMP_CRC[10];
setvar GD_COPS_Dynamic1Variable[11] vChange_EMP_CRC[11];
setvar GD_COPS_Dynamic1Variable[12] vChange_EMP_CRC[12];
setvar GD_COPS_Dynamic1Variable[13] vChange_EMP_CRC[13];
setvar GD_COPS_Dynamic1Variable[14] vChange_EMP_CRC[14];
setvar GD_COPS_Dynamic1Variable[15] vChange_EMP_CRC[15];
setvar GD_COPS_Dynamic1Variable[16] vChange_EMP_CRC[16];
setvar GD_COPS_Dynamic1Variable[17] vChange_EMP_CRC[17];
setvar GD_COPS_Dynamic1Variable[18] vChange_EMP_CRC[18];
setvar GD_COPS_Dynamic1Variable[19] vChange_EMP_CRC[19];

; Write the changed variable to ME
writegdfs 0x00 0x06 GD_COPS_Dynamic1Variable;

; END OF SCRIPT FILE
end;
