;=========================================================================
;                   LG Electronics Inc.
;                   CDMA Handsets Laboratory.
;                   Development Dept. 3
;=========================================================================
;  Made by  : LGE
;  Version  : E01
;  Date     : 11/26/2007
;-------------------------------------------------------------------------
;	File Modification history
; When			Who			Comments
;2008/11/05	sjkim		wallpaper_main is changed to Road from U.S.cellular(2 -> 9)
;2008/10/06	sjkim		dial_qsearch_on(Default 1) / pbooklist_search_style(Default 0) is added : 
;2008/3/2	Chang Lee	Analog clock in a front screen is removed.
;2008/1/21	Jaewoo 		Fliptone value is changed
;2008/1/7	Jaewoo 		Fliptone is added
;2008/1/4	Chisang In	SMS Call back default"on"
;2008/1/4	Jaewoo 		Default Sub Wallpaper Changed
;2008/1/4	Chang Lee	Message Auto-Save Default: "Auto Save", Wallpaper Main
;2007/12/7 	Jaewoo		Default Alert Ringtone Added
;2007/12/7 	Jaewoo		Ringtone EFS added
;2007/12/6      Weiye Xu        rename script items
;2007/12/05     Chang Lee       PRI
;2007/11/30	Jaeky Yu		Data
;2007/11/30     Aaron Shin      BREW
;2007/11/29	Don Nguyen		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 lock_code      {"0000"}
nv_write sec_code       {"000000"}
nv_write fsc            {"000000"}

nv_write name_nam       {0, "NAM1"}
nv_write name_nam       {1, "NAM2"}

nv_write nam_chksum 	{0, 0xffff}
nv_write nam_chksum 	{1, 0xffff}
nv_write min_chksum 	{0, 0xffff, 0xffff}
nv_write min_chksum 	{1, 0xffff, 0xffff}

nv_write imsi_mcc       {0, "310"}
nv_write imsi_mcc       {1, "310"}
nv_write imsi_11_12     {0, "00"}
nv_write imsi_11_12     {1, "00"}
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 dir_number_pcs {0, "0000000000"}
nv_write dir_number_pcs {1, "0000000000"}
nv_write accolc 	{0, 0, 0}
nv_write accolc 	{1, 0, 0}

nv_write imsi_t_mcc     {0, "310"}
nv_write imsi_t_mcc     {1, "310"}
nv_write imsi_t_11_12   {0, "00"}
nv_write imsi_t_11_12   {1, "00"}
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 pref_mode	{0, "automatic"}
nv_write pref_mode	{1, "automatic"}
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 system_pref 	{0, "automatic b"}
nv_write system_pref 	{1, "automatic b"}

nv_write prl_enabled   	{0, 1}
nv_write prl_enabled    {1, 1}

nv_write home_sid_nid   {0,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535}
nv_write home_sid_nid   {1,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535,4112,65535}
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 pcdmach        {0, 283, 384}
nv_write pcdmach        {1, 283, 384}
nv_write scdmach        {0, 691, 777}
nv_write scdmach        {1, 691, 777}

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 pref_voice_so {0,  1, 0x0000, 0x0003, 0x0003}	; WildCard, 8K EVRC, 8K EVRC
nv_write pref_voice_so {1,  1, 0x0000, 0x0003, 0x0003}	; WildCard, 8K EVRC, 8K EVRC
nv_write cdma_so68_enabled  {1}                        ; 4GV

nv_write slot_cycle_index {2}
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}


;=========================================================================
; OTA ITEM  (enabled: 1)
;=========================================================================
nv_write nam_lock           {0, 0}
nv_write nam_lock           {1, 0}
nv_write otapa_enabled      {0, 1}
nv_write otapa_enabled      {1, 1}
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            {2}            ; DS_SO_SET_PRE707 = 0     IS-707.0 (pre-707) service option numbers
nv_write diag_default_baudrate  {0x0011}       ; 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            {0,""}         ; Max of 127 chars in User ID
nv_write ppp_password           {0,""}
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               {1}            ; 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,0,0,0,0,0}  ; diable - 0, enable - 1 {1st Profile, 2nd Profile, 3rd Profile, .... }
nv_write ds_mip_retries         {1}            ; number of retries
nv_write ds_mip_retry_int       {4}            ; retry interval = n*250(ms) + 1000ms (2 sec)
nv_write ds_mip_pre_re_rrq_time {3}            ; pre-registration time - minute
nv_write ds_mip_num_prof        {1}            ; number of profiles (max 6) 
nv_write ds_mip_2002bis_mn_ha_auth  {1}        ; disable - 0, enable -1
nv_write ds_mip_rrq_if_tfrk     {1}             ; send a registration only in use : 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,4321,1,2,1,0x00000000,0x00000000,0xffffffff}
nv_write ds_mip_gen_user_prof   {1,0,"",1,4321,1,2,1,0x00000000,0x00000000,0xffffffff}

nv_write ds_mip_dmu_pkoid       {0,41}         ; { Index , Public key organization indentifier }
nv_write ds_mip_dmu_mn_auth     {0,0xFF,0xFF,0xFF}            ; { 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 ppp_carrier            {1}            ; 0-Verizon 1-USC 2-Alltel 7-SCRIPT. Test NV Item.  

efs write "DMU/41.key"		               ; MIP DMU(Dynamic Mipkeys Update) key file

;=========================================================================
;BREW ITEM
;=========================================================================
nv_write brew_carrier_id {45}
nv_write brew_platform_id {1272}
nv_write brew_bkey {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}
nv_write brew_server    {"brewuione.uscc.net,brewuione.uscc.net"}	; 64 byte character
nv_write brew_download_flags {0x0444}
nv_write brew_auth_policy {1}
nv_write brew_privacy_policy {3}
nv_write brew_sid_length {32}
nv_write brew_disallow_dormancy {0}		            ; FALSE	
nv_write brew_primary_ip        {0,0,0,0}     ;	{166,102,165,11}
nv_write brew_secondary_ip      {0,0,0,0}     ;	{166,102,165,13}
nv_write brew_airtime_charge		{TRUE}


;=========================================================================
; MMS ITEM
;=========================================================================
nv_write mms_set_auto_receive          		{0}
nv_write mms_set_read_ack              		{1}
nv_write mms_set_delivery_ack          		{0} 
nv_write mms_set_tone_alert            		{26}
nv_write mms_set_vibrate_alert         		{0}
nv_write mms_set_reminder_alert        		{3}
nv_write mms_mmsc_url                  		{21, "http://mmsc1.uscc.net"}
nv_write mms_mmsc_upload_url           		{4, "4444" }
nv_write mms_mmsc_uaprof_url           		{30, "http://mmsc1.uscc.net/mmsc/MMS"}
nv_write mms_set_retry_num             		{3}   ; 0, 1, 2, 3
nv_write mms_send_from_add             		{0}
nv_write mms_mmsc_user_agent  	       		{5, "UX280"}
nv_write mms_mmsc_server_post_url      		{9, "/mmsc/MMS"}
;nv_write mms_mmsc_server_post_cgi     		{0, ""}
nv_write mms_test_authorization        		{0}
nv_write mms_test_mmsc_url             		{20, "http://66.174.75.171"}
nv_write mms_test_mmsc_upload_url      		{4, "4444" }
nv_write mms_mmsc_secondary_name_ip    		{21, "http://mmsc2.uscc.net"} 
nv_write mms_callback_number_support   		{1}   ; 0(MMS_ON), 1(MMS_OFF)
nv_write mms_subscribed_provisioned_for_1xrtt 	{0}   ; 0(MMS_ON), 1(MMS_OFF)


;=========================================================================
;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"


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

;=========================================================================
; SMS ITEM
;=========================================================================
nv_write msg_settings_auto_save         {0}	; 0(Auto Save), 1(Prompt), 2(Do Not Save)
nv_write msg_settings_auto_delete       {0}	; 0(Off), 1(On)
nv_write msg_settings_entry_mode        {1}	; T9Word(0), Abc(1), 123(2)
nv_write msg_settings_vibrate_alert   {0}
nv_write msg_settings_speed_messaging {0}
nv_write sms_voicemail_alert	{29}     ;0~33(Audio Tones)- Low Beep Once(0), Low Beeps(1),Loud Beep Once(2), Loud Beeps(3), Ring1~10(4~13), No Ring(14)
nv_write sms_textmsg_alert	{26}     ;0~33(Audio Tones)- Low Beep Once(0), Low Beeps(1),Loud Beep Once(2), Loud Beeps(3), Ring1~10(4~13), No Ring(14)
nv_write sms_email_alert  {26}     ; 0~33(Audio Tones) - Low Beep Once(0), Low Beeps(1),Loud Beep Once(2), Loud Beeps(3), Ring1~10(4~13), No Ring(14)
nv_write sms_page_alert   {26}     ; 0~33(Audio Tones)- Low Beep Once(0), Low Beeps(1),Loud Beep Once(2), Loud Beeps(3), Ring1~10(4~13), No Ring(14)
nv_write sms_all_alert  {0xFFFF}     ; Low Beep Once(0), Low Beeps(1),Loud Beep Once(2), Loud Beeps(3), Ring1~10(4~13), No Ring(14)

nv_write sms_priority_sel   {0}	; 0(Normal), 1(High)
nv_write sms_mo_so    {1}	; 1(8K), 0(13K)
nv_write sms_mo_l3_ack    {1}	; 1(On), 0(Off)
nv_write sms_default_cb   {1}	; 1(On), 0(Off)
nv_write sms_orig_msg_id    {1}
nv_write sms_mo_max_userdata   {160}
nv_write sms_signature_sel  {0}
nv_write sms_directview_sel  {0}
nv_write sms_2min_alert_sel            {1}	; 0(Once), 1(Every 2 Minutes), 2(Every 15 Minutes), 3(Off)
nv_write sms_cb    {0, ""}
nv_write sms_ems_enable               {off}  ; On(1), Off(0)
nv_write sms_auto_play       {0}

 
;=========================================================================
; EMS ITEM
;=========================================================================
;nv_write sms_ems_enable               {off}  ; On(1), Off(0)    
;nv_write sms_auto_play       {off} ; On(1), Off(0)
;=========================================================================
;UI ITEM
;=========================================================================
nv_write curr_nam                 {0}
nv_write auto_nam                 {0}
nv_write ear_lvl                  {0x4}
nv_write speaker_lvl              {0x4}
nv_write onebeep_mode		  {0}	
nv_write ringer_lvl               {0x4}
nv_write beep_lvl                 {0x4}
nv_write cont_key_dtmf            {1}
nv_write banner         	  {"U.S. Cellular",1}     
nv_write auto_answer              {0, 0}
nv_write auto_redial              {0, 0}
nv_write back_light               {10}
nv_write lock                     {off}     ; phone lock            == Unlocked \ now
nv_write auto_lock                {off}     ; phone lock            == Unlocked \ Power_up
nv_write call_rstrc               {0}
nv_write onetouch_dial            {on}      ; One touch dial        == enable!
nv_write beep_lvl_shadow          {0x4}
nv_write ear_lvl_shadow           {0x4}
nv_write send_pin                 {0}
nv_write voice_priv               {0}	; 0 (Standard)
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}	; 0 (TTY Full), 1 (TTY + Talk), 2 (TTY + Hear), 3 (TTY Off)
nv_write stand_alone_mode 	  {0}
nv_write gps1_lock                {3}	; 0 (Location On), 1 (E911 Only)
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 backtop_beep             {1}
nv_write sub_banner     	  {"U.S. Cellular",1}        
nv_write sub_backlight            {10}
nv_write key_light                {10}
nv_write wallpaper_main           {0,0,9}
nv_write wallpaper_sub            {0,0,0}
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,42,""}
nv_write media_save_option        {0,0,0}
nv_write dcam_photo_setting_rqs   {1,1,1,0,1} ;Henry's add in due to AX300
nv_write equalizer_mode           {1}
nv_write bt_power_onoff           {0}	; 0 (Off), 1 (On)
nv_write beep_bt_lvl              {4}
nv_write ear_bt_lvl               {6}
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 sound_ringers 	          {0,3,0,0,0xffff,0}
nv_write menu_format              {0}
nv_write display_set              {0,0,0} ;MBytkim 2008.09.08 : sub_clock, Main_clock, Theme
;nv_write dial_font               {1,0}
nv_write flexible_font            {0,0,1,0}  ;MBwhlee 2008.08.20 dial_font -> flexible_font
nv_write sound_alerts 	          {0,0,0,0}
nv_write call_connect_alert       {0}
nv_write lowbatt_sound            {1}	; 0 (Announce), 1 (Tone)
nv_write logo_melody              {1}
nv_write best_match               {1}	; 0 (1 Match), 1 (4 Matches)
nv_write announce_alerts          {0}	; 0 (Disable), 1 (Announce), 2 (Announce + Ring)
nv_write sound_fliptone           {0}
nv_write dial_qsearch_on   	  {1}	;MBsjkim 2008.10.06 : Qsearch off (0) / on (1)
nv_write pbooklist_search_style   {0}	;MBsjkim 2008.10.06 : Search window (0) / navigation (1)


;=========================================================================
;FW ITEM
;=========================================================================
; GPS
nv_write gps1_pde_address     {0,0,0,0}
nv_write gps1_pde_port        {0}
nv_write gps1_capabilities    {1}      		; coarse location message  (1) enable, (0) disable
nv_write spare_2              {0}
nv_write vbatt                {0, 255}
nv_write rf_config            {1}
nv_write batt_level_threshold {0,184,179,174,174,156,178,184,188,0,0,0,0,190,220,210}
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/U.S. Cellular.mid"
efs write "ringtone/Mystique.mid"
efs write "ringtone/Deep Blue Sea.mp3"
efs write "ringtone/Shine.mid"
efs write "ringtone/Orange Ice.mid"
efs write "ringtone/Law of Motion.mp3"
efs write "ringtone/Froggy Night.mp3"
efs write "ringtone/Morning.mp3"
efs write "ringtone/Wahwah.mp3"
efs write "ringtone/Csardas.mid"
efs write "ringtone/Green Day.mid"
efs write "ringtone/Moody House.mid"
efs write "ringtone/Next Time.mid"
efs write "ringtone/Radical Party.mid"
efs write "ringtone/Stranger.mid"
efs write "ringtone/Welcome Back.mid"
efs write "ringtone/This Time.mp3"
efs write "ringtone/Funky Band.mp3"
efs write "ringtone/G Beat.mp3"
efs write "ringtone/Like a Movie.mp3"
efs write "ringtone/Sweet & Twenty.mp3"
efs write "ringtone/Tone 1.mid"
efs write "ringtone/Tone 2.mid"
efs write "ringtone/Tone 3.mp3"
efs write "ringtone/Tone 4.mid"
efs write "ringtone/Tone 5.mp3"
efs write "ringtone/Message Tone 1.mp3"
efs write "ringtone/Message Tone 2.mp3"
efs write "ringtone/Message Tone 3.mp3"
efs write "ringtone/Message Tone 4.mp3"
efs write "ringtone/Message Tone 5.mid"
efs write "ringtone/Message Tone 6.mid"
efs write "ringtone/Message Tone 7.mp3"
efs write "ringtone/Message Tone 8.wav"

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

;=========================================================================
; Add font
;=========================================================================
efs write "font/2_LG_SERIF.ttf"
efs write "font/LG_JOY.ttf"

mode reset
