2 #This is setting postinst file
4 GOPTION="" # Set without -g, -u options
5 if [ ${USER} == "root" ]
7 # Set vconf values with -g/-u options
12 ################# shell paragrames ##############
14 DATAROAMING="dataroaming"
15 USBCON="usbconnectivity"
24 DOUBLETAP="double_tap"
29 POWERSAVING="powersaving"
31 ROTATIONLOCK="rotationLock"
32 TIMEDATE="timeAndData"
33 ACCESS="accessibility"
43 MENUWIDGET="menuwidget"
50 vconftool $GOPTION set -t int db/setting/select_network "0"
51 vconftool $GOPTION set -t int db/setting/network_mode "0"
52 vconftool $GOPTION set -t bool db/setting/3gEnabled "1"
58 vconftool $GOPTION set -t bool db/setting/data_roaming "1"
62 resetUsbConnectivity()
65 #vconftool $GOPTION set -t bool db/setting/ask_on_con "0"
66 # debug mode is default
67 vconftool $GOPTION set -t int memory/setting/usb_mode "-1" -i -f
68 vconftool $GOPTION set -t int memory/setting/usb_sel_mode "0" -i -f
69 vconftool $GOPTION set -t int db/setting/usb_debugmode "0"
70 vconftool $GOPTION set -t int memory/setting/usb_in_mode_change "0" -i -f
76 DEFAULT_CALL_TONE="/opt/share/settings/Ringtones/General_Over the horizon.mp3"
78 vconftool $GOPTION set -t bool db/setting/sound/sound_on "1"
79 vconftool $GOPTION set -t bool db/setting/sound/vibration_on "1"
81 vconftool $GOPTION set -t int db/setting/sound/call/ringtone_sound_volume "13"
82 vconftool $GOPTION set -t int db/setting/sound/noti/sound_volume "7"
83 vconftool $GOPTION set -t int db/setting/sound/media/sound_volume "7"
84 vconftool $GOPTION set -t int db/setting/sound/touch_feedback/sound_volume "5"
86 vconftool $GOPTION set -t int db/setting/sound/noti/vibration_level "5"
87 vconftool $GOPTION set -t int db/setting/sound/touch_feedback/vibration_level "3"
89 vconftool $GOPTION set -t string db/setting/sound/call/ringtone_path "${DEFAULT_CALL_TONE}"
90 vconftool $GOPTION set -t int db/setting/sound/call/vibration_type "2"
92 vconftool $GOPTION set -t string db/setting/sound/noti/msg_ringtone_path "${DEFAULT_CALL_TONE}"
93 vconftool $GOPTION set -t int db/setting/sound/noti/msg_alert_rep_type "0"
95 vconftool $GOPTION set -t string db/setting/sound/noti/email_ringtone_path "${DEFAULT_CALL_TONE}"
96 vconftool $GOPTION set -t int db/setting/sound/noti/email_alert_rep_type "0"
98 vconftool $GOPTION set -t bool db/setting/sound/sound_lock "1"
99 #vconftool $GOPTION set -t bool db/setting/sound/keypad_on "1"
100 #vconftool $GOPTION set -t bool db/setting/sound/sound_effect_on "1"
103 vconftool $GOPTION set -t string db/setting/notification_tone "${DEFAULT_CALL_TONE}"
104 vconftool $GOPTION set -t string db/setting/media_tone "${DEFAULT_CALL_TONE}"
105 vconftool $GOPTION set -t string db/setting/touch_tone "${DEFAULT_CALL_TONE}"
106 vconftool $GOPTION set -t int db/setting/touch_vibration_tone "2"
112 vconftool $GOPTION set -t string db/menu_widget/bgset "/opt/share/settings/Wallpapers/Home_default.jpg"
113 vconftool $GOPTION set -t string db/idle_lock/bgset "/opt/share/settings/Wallpapers/Home_default.jpg"
119 vconftool $GOPTION set -t bool db/setting/use_tilt "1"
120 vconftool $GOPTION set -t int db/setting/tilt_sensitivity "3"
125 vconftool $GOPTION set -t bool db/setting/use_panning "1"
126 vconftool $GOPTION set -t int db/setting/panning_sensitivity "3"
131 vconftool $GOPTION set -t bool db/setting/use_double_tap "0"
136 vconftool $GOPTION set -t bool db/setting/use_shake "0"
140 vconftool $GOPTION set -t bool db/setting/use_pickup "0"
144 vconftool $GOPTION set -t bool db/setting/use_turn_over "0"
149 vconftool $GOPTION set -t bool db/setting/motion_active "1"
150 vconftool $GOPTION set -t bool db/setting/internet_on "1"
151 vconftool $GOPTION set -t bool db/setting/gallery_on "1"
165 vconftool $GOPTION set -t int db/MainLCD/Backlight/Normal "30"
166 vconftool $GOPTION set -t int db/setting/lcd_timeout_normal_backup "30"
169 vconftool $GOPTION set -t int db/setting/Brightness "-1"
170 vconftool $GOPTION set -t bool db/setting/brightness_automatic "0"
173 vconftool $GOPTION set -t bool db/setting/battery/charger "0"
174 vconftool $GOPTION set -t bool db/setting/battery_percentage "0"
176 vconftool $GOPTION set -t string db/menu_widget/launch_effect "0"
181 vconftool $GOPTION set -t bool db/setting/powersaving/powersaving_active "0"
182 vconftool $GOPTION set -t bool db/setting/powersaving/powersaving_active_reminder "1"
183 vconftool $GOPTION set -t bool db/setting/powersaving/customed_active "0"
185 vconftool $GOPTION set -t int db/setting/powersaving/powersaving_at "30"
186 vconftool $GOPTION set -t bool db/setting/powersaving/wifi_off "0"
187 vconftool $GOPTION set -t bool db/setting/powersaving/bt_off "0"
188 vconftool $GOPTION set -t bool db/setting/powersaving/gps_off "0"
189 vconftool $GOPTION set -t bool db/setting/powersaving/ync_off "0"
190 vconftool $GOPTION set -t int db/setting/powersaving/screen_timeout "15"
192 vconftool $GOPTION set -t bool db/setting/powersaving/brightness_active "0"
193 vconftool $GOPTION set -t bool db/setting/powersaving/brightness_auto "1"
194 vconftool $GOPTION set -t int db/setting/powersaving/brightness "10"
200 vconftool $GOPTION set -t int db/setting/font_size "1"
201 vconftool $GOPTION set -t int db/setting/font_type "0"
207 vconftool $GOPTION set -t bool db/setting/rotate_lock "0"
210 #time and date (zone)
213 vconftool $GOPTION set -t bool db/setting/automatic_time_update "1"
214 vconftool $GOPTION set -t bool db/setting/dst "0"
216 vconftool $GOPTION set -t int db/menu_widget/regionformat_time1224 "1"
217 vconftool $GOPTION set -t int db/setting/date_format "0"
218 vconftool $GOPTION set -t int db/setting/weekofday_format "0"
220 vconftool $GOPTION set -t string db/setting/timezone "+9"
222 vconftool $GOPTION set -t string db/setting/cityname_id "IDS_WCL_BODY_CITYNAME_SEOUL"
224 vconftool $GOPTION set -t string db/setting/timezone_id "Asia/Seoul"
226 #if [ -f /opt/etc/localtime ]
228 rm -f /opt/etc/localtime
229 ln -s /usr/share/zoneinfo/Asia/Seoul /opt/etc/localtime
236 vconftool $GOPTION set -t bool db/setting/accessibility/accessibility "1"
237 vconftool $GOPTION set -t bool db/setting/accessibility/high_contrast "0"
238 vconftool $GOPTION set -t bool db/setting/accessibility/screen_zoom "1"
239 vconftool $GOPTION set -t int db/setting/accessibility/font_size "72"
240 vconftool $GOPTION set -t int db/setting/accessibility/font_style "0"
241 vconftool $GOPTION set -t bool db/setting/accessibility/torch_light "0"
242 vconftool $GOPTION set -t bool db/setting/accessibility/mono_audio "0"
243 vconftool $GOPTION set -t bool db/setting/accessibility/accept_call "0"
244 vconftool $GOPTION set -t bool db/setting/accessibility/enable_auto_answer "0"
245 vconftool $GOPTION set -t int db/setting/accessibility/auto_answer "1"
246 vconftool $GOPTION set -t bool db/setting/accessibility/powerkey_end_calls "0"
247 vconftool $GOPTION set -t int db/setting/accessibility/power_key_hold "0"
251 resetLanguageAndRegion()
253 vconftool $GOPTION set -t int db/setting/lang "2"
254 vconftool $GOPTION set -t string db/menu_widget/language "en_US.UTF-8"
255 vconftool $GOPTION set -t string db/menu_widget/regionformat "en_US.UTF-8"
261 vconftool $GOPTION set -t int db/menuscreen/viewtype "0"
262 vconftool $GOPTION set -t int db/taskswitcher/viewtype "0"
268 vconftool $GOPTION set -t int db/setting/vib_feedback "3"
269 vconftool $GOPTION set -t bool db/setting/touch_panel_autolock "0"
275 vconftool $GOPTION set -t bool db/setting/transaction_tracking "0"
276 vconftool $GOPTION set -t bool db/setting/expiry_reminder "0"
277 vconftool $GOPTION set -t int db/setting/roaming_network "0"
283 vconftool $GOPTION set -t bool db/setting/ticker_noti/display_content "0"
284 vconftool $GOPTION set -t bool db/setting/ticker_noti/messages "1"
285 vconftool $GOPTION set -t bool db/setting/ticker_noti/vmail "1"
286 vconftool $GOPTION set -t bool db/setting/ticker_noti/email "1"
287 #vconftool $GOPTION set -t bool db/setting/ticker_noti/recv_seven_email "0"
288 #vconftool $GOPTION set -t bool db/setting/ticker_noti/im "1"
289 #vconftool $GOPTION set -t bool db/setting/ticker_noti/osp "1"
290 vconftool $GOPTION set -t bool db/setting/ticker_noti/sns "0"
291 vconftool $GOPTION set -t bool db/setting/ticker_noti/file_tran "1"
297 vconftool $GOPTION set -t string db/setting/phone_passwd ""
298 rm -rf /opt/data/setting/set_info
299 #vconftool $GOPTION set -t string db/setting/privacy_passwd ""
301 vconftool $GOPTION set -t bool db/setting/power_on_lock "0"
302 vconftool $GOPTION set -t bool db/setting/phone_lock "0"
303 vconftool $GOPTION set -t bool db/setting/simple_password "1"
304 vconftool $GOPTION set -t bool db/setting/fmm/sim_change_alert "0"
305 vconftool $GOPTION set -t string db/setting/fmm/recipients ""
306 vconftool $GOPTION set -t string db/setting/fmm/sender ""
307 vconftool $GOPTION set -t string db/setting/fmm/alert_message ""
308 vconftool $GOPTION set -t bool db/setting/fmm/remote_control "0"
309 vconftool $GOPTION set -t bool db/setting/fmm/location_consent "0"
312 vconftool $GOPTION set -t bool db/setting/rcs "0"
314 vconftool $GOPTION set -t int db/setting/phone_lock_attempts_left "5"
315 vconftool $GOPTION set -t string db/setting/phone_lock_timestamp ""
316 vconftool $GOPTION set -t int db/setting/sim_lock_attempts_left "5"
317 vconftool $GOPTION set -t string db/setting/sim_lock_timestamp ""
323 vconftool $GOPTION set -t int db/setting/default_memory/wap "0"
324 vconftool $GOPTION set -t int db/setting/default_memory/bluetooth "0"
325 vconftool $GOPTION set -t int db/setting/default_memory/camera "0"
326 vconftool $GOPTION set -t int db/setting/default_memory/voice_recorder "0"
327 vconftool $GOPTION set -t int db/setting/default_memory/fm_radio "0"
328 vconftool $GOPTION set -t int db/setting/default_memory/all_share "0"
329 vconftool $GOPTION set -t int db/setting/default_memory/adobe_air "0"
331 # format - system server
332 #vconftool $GOPTION -i set -t int memory/mmc/format "0"
338 vconftool $GOPTION set -t string db/setting/device_name "Tizen"
344 vconftool $GOPTION set -t bool db/setting/adaptive_menu_order "0"
348 ########## invoke functions #######
350 if [ $1 == $NETWORK ]; then
353 elif [ $1 == $DATAROAMING ]; then
356 elif [ $1 == $USBCON ]; then
359 elif [ $1 == $SOUND ]; then
362 elif [ $1 == $WALLPAPER ]; then
365 elif [ $1 == $DISPLAY ]; then
368 elif [ $1 == $MOTIONS ]; then
371 elif [ $1 == $TILT ]; then
374 elif [ $1 == $PANNING ]; then
377 elif [ $1 == $DOUBLETAP ]; then
380 elif [ $1 == $SHAKE ]; then
383 elif [ $1 == $PICKUP ]; then
386 elif [ $1 == $TURNOVER ]; then
389 elif [ $1 == $FONT ]; then
392 elif [ $1 == $POWERSAVING ]; then
395 elif [ $1 == $ROTATIONLOCK ]; then
398 elif [ $1 == $TIMEDATE ]; then
401 elif [ $1 == $ACCESS ]; then
404 elif [ $1 == $LANGREGION ]; then
405 resetLanguageAndRegion
407 elif [ $1 == $VIEWTYPE ]; then
410 elif [ $1 == $TOUCH ]; then
413 elif [ $1 == $LICENSE ]; then
416 elif [ $1 == $NOTI ]; then
419 elif [ $1 == $SECURITY ]; then
422 elif [ $1 == $MEMORY ]; then
425 elif [ $1 == $ABOUT ]; then
428 elif [ $1 == $MENUWIDGET ]; then
444 resetLanguageAndRegion
454 vconftool $GOPTION -i set -t int memory/setting/font_changed "0"
455 vconftool $GOPTION -i set -t int memory/mobile_hotspot/skin_changed "0"
458 ########## ending #######
461 #create directory /opt/data/setting
462 if [ "${USER}" == "root" ]
464 if [ ! -d /opt/data/setting ]
466 mkdir -p /opt/data/setting
467 chown 5000:5000 /opt/data/setting -R
469 chown 5000:5000 /opt/etc/X11/Xresources
471 heynotitool set setting_time_changed -a