3 # BT Stack and device stop
4 /usr/etc/bluetooth/bt-stack-down.sh
8 # Remove BT files and setting
9 eval $(tzplatform-get TZ_SYS_DATA)
10 rm -rf $TZ_SYS_DATA/bluetooth/.bt_paired
11 rm -rf /var/lib/bluetooth/*
13 # Initialize BT vconf values
14 vconftool set -tf int db/bluetooth/status "0" -g 6520
15 vconftool set -tf int file/private/bt-service/flight_mode_deactivated "0" -g 6520 -i
16 vconftool set -tf string memory/bluetooth/sco_headset_name "" -g 6520 -i
17 vconftool set -tf int memory/bluetooth/device "0" -g 6520 -i
18 vconftool set -tf int memory/bluetooth/btsco "0" -g 6520 -i
19 vconftool set -tf int file/private/libug-setting-bluetooth-efl/visibility_time "0" -g 6520
20 vconftool set -tf bool memory/private/bluetooth-share/quickpanel_clear_btn_status FALSE -g 6520 -i
21 vconftool set -tf bool memory/private/bluetooth-share/opp_server_init FALSE -g 6520 -i
23 # Remove BT shared memory
24 list=`ipcs -m | awk '$1==0x0001000 {print $2}'`
29 ipcs -m | grep "0x00001000" | awk '{ print $2 }'