;=========================================================================
;                   LG Electronics Inc.
;                   CDMA Handsets Laboratory.
;                   Development Dept. 3
;=========================================================================
;  Made by  : LGE
;  Version  : V02
;  Date     : 10/26/2006
;-------------------------------------------------------------------------
;	File Modification history
; When			Who			Comments
; 2007/09/03		leeyongkyu		create	
;-------------------------------------------------------------------------
;spc "000000"                         ; does not need at LGDP DLL
;wait 2
mode offline-d
nv_read esn
nv_read verno_maj
nv_read verno_min
nv_read scm
nv_read slot_cycle_index
nv_read mob_firm_rev
nv_read mob_model
wait 2

;=========================================================================
; SYSTEM ITEM
;=========================================================================
nv_write slot_cycle_index {2}
nv_write pref_mode     {0, "automatic"}
nv_write pref_mode     {1, "automatic"}
nv_write pcdmach        {0, 283, 384}
nv_write pcdmach        {1, 283, 384}
nv_write scdmach        {0, 691, 777}
nv_write scdmach        {1, 691, 777}
nv_write nam_chksum {0, 0xffff}
nv_write nam_chksum {1, 0xffff}
nv_write min1           {0, "000-0000", "000-0000"}
nv_write min1           {1, "000-0000", "000-0000"}
nv_write min2           {0, "000", "000"}
nv_write min2           {1, "000", "000"}
nv_write mob_term_home    {0, true, true}
nv_write mob_term_home    {1, true, true}
nv_write mob_term_for_sid {0, true, true}
nv_write mob_term_for_sid {1, true, true}
nv_write mob_term_for_nid {0, true, true}
nv_write mob_term_for_nid {1, true, true}
nv_write accolc {0, 0, 0}
nv_write accolc {1, 0, 0}
nv_write min_chksum {0, 0xffff, 0xffff}
nv_write min_chksum {1, 0xffff, 0xffff}
nv_write name_nam       {0, "NAM1"}
nv_write name_nam       {1, "NAM2"}
nv_write lock_code      {"0000"}
nv_write sec_code       {"000000"}
nv_write imsi_mcc       {0, "311"}
nv_write imsi_mcc       {1, "311"}
nv_write imsi_11_12     {0, "27"}
nv_write imsi_11_12     {1, "27"}
nv_write imsi_addr_num    {0, 255}
nv_write imsi_addr_num    {1, 255} 
nv_write dir_number_pcs {0, "0000000000"}
nv_write dir_number_pcs {1, "0000000000"}
nv_write sid_nid_lock {0,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535}
nv_write sid_nid_lock {1,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535}
nv_write system_pref {0, "automatic b"}
nv_write system_pref {1, "automatic b"}
nv_write home_sid_nid {0,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535}
nv_write home_sid_nid {1,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535,0,65535}
nv_write imsi_t_s1      {0, "000-0000", "000-0000"}
nv_write imsi_t_s1      {1, "000-0000", "000-0000"}
nv_write imsi_t_s2      {0, "000", "000"}
nv_write imsi_t_s2      {1, "000", "000"}
nv_write imsi_t_mcc     {0, "311"}
nv_write imsi_t_mcc     {1, "311"}
nv_write imsi_t_11_12   {0, "27"}
nv_write imsi_t_11_12   {1, "27"}
nv_write imsi_t_addr_num    {0, 255}
nv_write imsi_t_addr_num    {1, 255}
nv_write pref_voice_so {0,  1, 0x0003, 0x0003, 0x0003}
nv_write pref_voice_so {1,  1, 0x0003, 0x0003, 0x0003}
nv_write band_pref {0, "pref_any"}
nv_write band_pref {1, "pref_any"}
nv_write roam_pref {0, "pref_any"}
nv_write roam_pref {1, "pref_any"}
nv_write mru3_table {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
nv_write mru3_table {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
nv_write stand_alone_mode {0}


;=========================================================================
; OTA ITEM
;=========================================================================
nv_write otapa_enabled      {0, 1}
nv_write otapa_enabled      {1, 1}
nv_write nam_lock           {0, 0}
nv_write nam_lock           {1, 0}
nv_write spc_change_enabled {1}


;=========================================================================
; AUTH ITEM
;=========================================================================
nv_write a_key {0, 0x00000000, 0x00000000 }
nv_write a_key {1, 0x00000000, 0x00000000 }
nv_write ssd_a {0, 0x00000000, 0x00000000 }
nv_write ssd_a {1, 0x00000000, 0x00000000 }
nv_write ssd_b {0, 0x00000000, 0x00000000 }
nv_write ssd_b {1, 0x00000000, 0x00000000 }
nv_write count {0, 0}
nv_write count {1, 0}

;=========================================================================
; DATA ITEM
;=========================================================================
nv_write data_pkt_orig_str      {5, "#777"}    ; {length,"dialstring"}  valu range 1-16   default value #777
nv_write data_mdr_mode          {3}            ; Service Option 33 (1x channel) = 3 Use only low-speed packet data = 2
nv_write data_auto_packet_detection {0}        ; 0-Disable   1-Enable
nv_write data_so_set            {0}            ; DS_SO_SET_PRE707 =  0     IS-707.0 (pre-707) service option numbers
nv_write diag_default_baudrate  {0x000e}       ; 0x000e(38.4kbps), 0x0011(115.2kbps) 
nv_write data_qnc_enabled       {0}            ; 0-QNC Disable  1-QNC Enable (alltel doesn't support QNC anymore.)
nv_write ppp_user_id            {24,"0000000000@mycricket.com"}         ; Max of 127 chars in User ID
nv_write ppp_password           {7,"cricket"}
nv_write data_scrm_enabled      {1}            ; 0-SCRM Disable 1-SCRM Enable
nv_write data_trtl_enabled      {1}            ; 0-TRTL Disable 1-TRTL Enable
nv_write pref_for_rc            {3}            ; 1(RC1),2(RC2),3(RC3),4(RC4),5(RC5)    
nv_write ds_default_baudrate    {0x0011}       ; 0x0000 (19.2kbps),0x0011(115.2kbps)
nv_write ds_qcmip               {0}            ; 0-SIP(MobileIP disable), 1-MIP preferred(Default Value), 2-MIP only
nv_write ds_mip_active_prof     {0}            ; current active profile index
nv_write ds_mip_enable_prof     {1,1,0,0,0,0}  ; diable - 0, enable - 1 {1st Profile, 2nd Profile, 3rd Profile, .... }
nv_write ds_mip_retries         {2}            ; number of retries
nv_write ds_mip_retry_int       {8}            ; retry interval = n*250(ms) + 1000ms (3 sec)
nv_write ds_mip_pre_re_rrq_time {10}            ; pre-registration time - minute
nv_write ds_mip_num_prof        {2}            ; number of profiles (max 6) 
nv_write ds_mip_2002bis_mn_ha_auth  {0}        ; disable - 0, enable -1
nv_write ds_mip_qc_drs_opt      {1}            ; dormant handoff optimization. disable - 0, enable - 1
                                               ; Comment : MIP general profile information {index, nai_length, nai, mn-ha spi-set, mn-ha spi, mn-aaa spi-set, mn-aaa spi,
                                               ; Comment : reverse tunneling, home address, primary ha address, secondary ha address}
nv_write ds_mip_gen_user_prof {0,0,"",1,257,1,1000,1,0x00000000,0x00000000,0x00000000}
nv_write ds_mip_gen_user_prof {1,0,"",1,257,1,1000,1,0x00000000,0x00000000,0x00000000}
;DNS IP Settings not supporting any more
;nv_write primary_dns            {0xA666A520}     ;Alltel DNS spec. Server IP = 166.102.165.11 -> 166.102.165.32
;nv_write secondary_dns          {0xCF5B0520}     ;Alltel DNS spec. Server IP = 166.102.165.13 -> 207.91.5.32

;Alltel doesn't use DMU.
;nv_write ds_mip_dmu_pkoid       {0,10}         ; { Index , Public key organization indentifier }
;nv_write ds_mip_dmu_mn_auth     {0,0x01,0xB2,0x07}            ; { Index , DMU MN authenticator - 111111base10 } 

;1X model...
;nv_write hdr_an_auth_user_id_long {0,""}       ; { Length , EVDO AN authetication user id }
nv_write dun_cable_mode         {1}            ; 0=disable cable dun,1=enable cable dun
nv_write dun_bt_mode            {1}            ; 0=disable bt dun,1=enable bt dun

					       ; Comment : MIP&SIP NAI(Network Access Identifier) for DUN 
nv_write ds_mip_rm_nai {0,0,""}	               ;	{index,nai_length,nai}					       
nv_write ds_sip_rm_nai {0,""}		       ;	{nai_length,nai}

nv_write fallback_flag          {1}            ; 0 - Auto , 1 - 1X , 2 - QNC 
;----------------------------------------------------------------------
nv_write ppp_carrier            {2}            ; 0-Verizon 1-USC 7-SCRIPT. Test NV Item.  
;efs write "DMU/10.key"		               ; MIP DMU(Dynamic Mipkeys Update) key file

;CS DLL don't write this item
;remove the ppp password setting in script file. (Becuase ppp_password value is changed after DMU nego.)
;{16(password_len),0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF}
;nv_write ppp_password          {16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}      

;CS DLL don't write this item 
;{0~5(index),16(mn_ha_ss_length),0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,
;16(mn_aaa_ss_length),0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF}
;remove the ds_mip_ss_user_prof setting in script file. (Becuase ppp_password value is changed after DMU nego.)
;nv_write ds_mip_ss_user_prof {0,16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}

;CS DLL don't write this item 
;Comment : remove the hdr_an_auth_passwd_long setting in script file. (Becuase it uses ppp_password value that changed after DMU nego.)
;{16(password_len),0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF,0x~0xFF}
; 1X model..
;nv_write hdr_an_auth_passwd_long  {0,""}

;=========================================================================
;BREW ITEM
;=========================================================================
nv_write brew_primary_ip {166,102,165,11}
nv_write brew_secondary_ip {166,102,165,13}
nv_write brew_carrier_id {82}
nv_write brew_platform_id {1255}
nv_write brew_bkey {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}
nv_write brew_server    {"Leap-prod-vip.qualcomm.com,Leap-test-vip.qualcomm.com"}
nv_write brew_download_flags {0x0444}
nv_write brew_auth_policy {1}
nv_write brew_privacy_policy {3}
nv_write brew_sid_length {16}
nv_write brew_disallow_dormancy {1}


;=========================================================================
; MMS ITEM
;=========================================================================
nv_write mms_set_auto_receive                   {1}
nv_write mms_set_read_ack              {1}
nv_write mms_set_delivery_ack          {0} 
nv_write mms_set_tone_alert                     {29}
nv_write mms_set_vibrate_alert                  {0}
nv_write mms_set_reminder_alert                 {3}
nv_write mms_mmsc_url                           {24, "http://mms.mycricket.com"}
nv_write mms_mmsc_upload_url                    {4, "1111" }
nv_write mms_mmsc_uaprof_url           {, ""}
nv_write mms_send_retry_num                     {0}   ; 0, 1, 2, 3
nv_write mms_send_from_add                           {0}
nv_write mms_mmsc_user_agent  {5, "AX300"}
nv_write mms_mmsc_server_post_url               {13, "/servlets/mms"}
nv_write mms_mmsc_server_post_cgi               {12, "?message-id="}
nv_write mms_test_authorization                 {0}
nv_write mms_test_mmsc_url                      {36, "http://mms.alltel.com/servlets/mms_t"}
nv_write mms_test_mmsc_upload_url               {14, "mml.alltel.com" }
nv_write mms_gateway_server_name_ip  {21, "http://mms.alltel.com"} 
nv_write mms_http_method_uri     		 {34, "http://mms.alltel.com/servlets/mms"} 
nv_write mms_mmsc_secondary_name_ip  {0, ""} 

;=========================================================================
;MMS IMAGE ITEM
;=========================================================================
efs write "mms/DecodeErrorAnimation.jpg"
efs write "mms/DecodeErrorImage.jpg"
efs write "mms/NotSupportedImage_UnknownImage.jpg"
efs write "mms/phoneOnConversation.jpg"
efs write "mms/TooBigErrorImage.jpg"


;=========================================================================
; WAP ITEM 
;=========================================================================
nv_write wap_primary_domain_name {"wap.mycricket.com"}
nv_write wap_primary_port {"8080"}
nv_write wap_primary_lvl_port {"0443"}
nv_write wap_secondary_domain_name {"wap.mycricket.com"}
nv_write wap_secondary_port {"8080"}
nv_write wap_secondary_lvl_port {"0443"}
nv_write wap_username {"0000000000@mycricket.com"}
nv_write wap_password {"cricket"}
nv_write wap_homepage {"proxy:homepage"}
nv_write wap_uaprof {""}


;=========================================================================
; MSG ITEM
;=========================================================================

;=========================================================================
; SMS ITEM
;=========================================================================
nv_write msg_settings_auto_save         {0}
nv_write msg_settings_auto_delete       {0}
nv_write msg_settings_entry_mode        {1}
nv_write msg_settings_vibrate_alert   {0}
nv_write msg_settings_speed_messaging {1}
nv_write sms_priority_sel   {0}
nv_write sms_mo_so    {1}
nv_write sms_mo_l3_ack    {1}
nv_write sms_settings_callback_number   {1}
nv_write sms_orig_msg_id    {1}
nv_write sms_mo_max_userdata   {160}
nv_write sms_settings_signature  {0}
nv_write sms_settings_direct_view  {0}
nv_write sms_settings_voicemail_alert {31}
nv_write sms_settings_textmsg_alert {29}
nv_write sms_settings_email_alert       {29}
nv_write sms_settings_page_alert        {29}
nv_write sms_settings_all_alert         {0xFFFF}
nv_write sms_2min_alert_sel            {3}
nv_write sms_cb_num    {10, "0000000000"}
nv_write sms_ems_enable               {1}
nv_write sms_settings_auto_play       {0}

 
;=========================================================================
; EMS ITEM
;=========================================================================

;=========================================================================
;UI ITEM
;=========================================================================
nv_write curr_nam                 {0}
nv_write auto_nam                 {0}
nv_write ear_level                {0x4}
nv_write speaker_level            {0x4}
nv_write ringer_level             {0x4}
nv_write beep_level               {0x4}
nv_write cont_key_dtmf            {1}
nv_write banner         	  {"",0}     
nv_write auto_answer              {0, 0}
nv_write auto_redial              {0, 0}
nv_write back_light               {10}
nv_write lock                     {0}
nv_write auto_lock                {0}
nv_write call_rstrc               {0}
nv_write onetouch_dial            {1}
nv_write beep_lvl_shadow          {0x4}
nv_write ear_lvl_shadow           {0x4}
nv_write send_pin                 {0}
nv_write voice_priv               {0}
nv_write fsc                      {"000000"}
nv_write language_selection       {0}
nv_write ringer_spkr_lvl          {0x4} 
nv_write beep_spkr_lvl            {0x4}
nv_write auto_volume_enabled      {0}
nv_write tty                      {3}
nv_write gps1_lock                {3}
nv_write manner_mode              {0}
nv_write alarm_only_mode          {0}
nv_write silence_all              {0}
nv_write spk_phone_beep_lvl       {0x4}
nv_write sub_banner     	  {"",0}        
nv_write sub_backlight            {10}
nv_write key_light           {10}
nv_write wallpaper_main           {0,0,2}
nv_write wallpaper_sub            {0,0,2}
nv_write pc_port                  {0}
nv_write emergency_num1      	  {"911"}
nv_write emergency_num2      	  {"611"}
nv_write emergency_num3      	  {"*611"}
nv_write wclock_choice       	  {30,0,46,""}
nv_write media_save_option        {0,0,0}
nv_write dcam_photo_setting_rqs      {1,1,1,0,1} 
nv_write equalizer_mode           {1}
nv_write bt_power_onoff           {0}
nv_write beep_bt_lvl              {4}
nv_write ear_bt_lvl               {4}
nv_write contrast_lvl             {0,0}
nv_write led_blink                {1}
nv_write power_saver              {0}
nv_write edit_font                {0,0}
nv_write music_only_mode          {0}
nv_restrictions_app{0,0,0}
nv_write gps_test_num             {"922"}
nv_write emer_test_num            {"911"}
nv_write menu_format              {0}
nv_write display_set_type         {1,0,0}
nv_write dial_font_type           {1,0}
nv_write sound_ringers_type 	  {13,8,5,0,0xffff,0}
nv_write sound_alerts_type 	  {0,0,0,0}
nv_write call_connect_type        {0}
nv_write back_top_beep_type       {1}
nv_write lowbatt_sound            {1}
nv_write logo_melody_type         {1}
nv_write sound_flip_tone          {0}
nv_write best_match               {1}
nv_write announce_alerts          {0}
nv_write one_Beep		  {0x0}

;=========================================================================
;FOTA ITEM
;=========================================================================
efs write "cert/getrootcert.der"

;=========================================================================
;FW ITEM
;=========================================================================
; GPS
nv_write cgps_1x_pde_server_addr_ipv4 {0,0,0,0}
nv_write cgps_1x_pde_server_port {0}
nv_write spare_2 {0}
nv_write vbatt               {150,238}
nv_write rf_config           {1}
nv_write battery_level_threshold {3,62,70,135,135,152,170, 158, 173, 200, 0, 0, 0, 0}
nv_write qdsp_snd_ctrl       {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
nv_write audio_adj_phone    {0,0,0,0,0,0,0,0,0}
nv_write audio_adj_earjack   {0,0,0,0,0,0,0,0,0}
nv_write audio_adj_hfk       {0,0,0,0,0,0,0,0,0}
nv_write audio_adj_spk       {0,0,0,0,0,0,0,0,0} 
nv_write audio_adj_bt        {0,0,0,0,0,0,0,0,0}

efs write "ringtone/Mystique.mp3"
efs write "ringtone/Deep Blue Calling.mp3"
efs write "ringtone/Shine.mp3"
efs write "ringtone/A Frame of Mind.mp3"
efs write "ringtone/Cigar And Wine.mp3"
efs write "ringtone/Orange Ice.mp3"
efs write "ringtone/Never Stop.mp3"
efs write "ringtone/Cause' U are.mp3"
efs write "ringtone/Metal element.mp3"
efs write "ringtone/Law of Motion.mp3"
efs write "ringtone/Burnning Soul.mp3"
efs write "ringtone/Vinyllist.mp3"
efs write "ringtone/Take Me.mp3"
efs write "ringtone/Crying.mp3"
efs write "ringtone/ColorPage.mp3"
efs write "ringtone/Froggy Night.mp3"
efs write "ringtone/Just Fine.mp3"
efs write "ringtone/Happycall.mp3"
efs write "ringtone/Bellusion.mp3"
efs write "ringtone/Morning.mp3"
efs write "ringtone/Wahwah.mp3"
efs write "ringtone/Cricket Beep.mp3"
efs write "ringtone/Ring 1.mp3"
efs write "ringtone/Ring 2.mid"
efs write "ringtone/Ring 3.mid"
efs write "ringtone/Ring 4.mid"
efs write "ringtone/Ring 5.mid"
efs write "ringtone/Crescendo.mid"

efs write "ringtone/Message Tone 1.mid"
efs write "ringtone/Message Tone 2.mid"
efs write "ringtone/Message Tone 3.mid"
efs write "ringtone/Message Tone 4.mid"
efs write "ringtone/Message Tone 5.mid"
efs write "ringtone/Message Tone 6.mp3"
efs write "ringtone/Message Tone 7.mp3"
efs write "ringtone/Message Tone 8.mp3"

efs write "ringtone/Open.qcp"
efs write "ringtone/Close.qcp"

mode reset
