Add vconf keys 85/42685/3 accepted/tizen/mobile/20150702.004747 accepted/tizen/tv/20150702.004754 accepted/tizen/wearable/20150702.004811 submit/tizen/20150701.130812 submit/tizen_mobile/20150701.125723 submit/tizen_wearable/20150701.125732
authorkj7.sung <kj7.sung@samsung.com>
Wed, 1 Jul 2015 12:44:08 +0000 (21:44 +0900)
committerkj7.sung <kj7.sung@samsung.com>
Wed, 1 Jul 2015 12:52:32 +0000 (21:52 +0900)
Change-Id: I602fcda8182d5fd057abeee266663cc34133ea51
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
lbs-server/script/vconf-location.sh [new file with mode: 0644]
packaging/lbs-server.spec

diff --git a/lbs-server/script/vconf-location.sh b/lbs-server/script/vconf-location.sh
new file mode 100644 (file)
index 0000000..36e8f94
--- /dev/null
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+/usr/bin/vconftool set -t int "db/location/setting/Usemylocation"  "1" -s "tizen::vconf::location::enable" -g 6514
+/usr/bin/vconftool set -t int "db/location/setting/GpsEnabled"  "1" -s "tizen::vconf::location::enable" -g 6514
+/usr/bin/vconftool set -t int "db/location/setting/NetworkEnabled"  "0" -s "tizen::vconf::location::enable" -g 6514
+/usr/bin/vconftool set -t int "db/location/setting/GpsPopup"  "1" -s "tizen::vconf::location::enable" -g 6514
+/usr/bin/vconftool set -t int "memory/location/position/state"  "0" -s "tizen::vconf::public::r::platform::rw" -i  -g 6514
+/usr/bin/vconftool set -t int "memory/location/gps/state"  "0" -s "tizen::vconf::public::r::platform::rw" -i  -g 6514
+/usr/bin/vconftool set -t int "memory/location/wps/state"  "0" -s "tizen::vconf::public::r::platform::rw" -i  -g 6514
+/usr/bin/vconftool set -t int "memory/location/last/gps/Timestamp"  "0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/gps/Latitude"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/gps/Longitude"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/gps/Altitude"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/gps/Speed"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/gps/Direction"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/gps/HorAccuracy"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/gps/VerAccuracy"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/wps/Timestamp"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/wps/Latitude"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/wps/Longitude"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/wps/Altitude"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/wps/Speed"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/wps/Direction"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t double "memory/location/last/wps/HorAccuracy"  "0.0" -s "tizen::vconf::location" -i  -g 6514
+/usr/bin/vconftool set -t int "db/location/last/gps/LocTimestamp"  "0" -s "tizen::vconf::location" -g 6514
+/usr/bin/vconftool set -t int "db/location/last/wps/LocTimestamp"  "0" -s "tizen::vconf::location" -g 6514
+/usr/bin/vconftool set -t string "db/location/last/gps/Location"  "0.0;0.0;0.0;0.0;0.0;0.0;0.0;" -s "tizen::vconf::location"  -g 6514
+/usr/bin/vconftool set -t string "db/location/last/wps/Location"  "0.0;0.0;0.0;0.0;0.0;0.0;" -s "tizen::vconf::location"  -g 6514
+/usr/bin/vconftool set -t int "db/location/nmea/LoggingEnabled"  "0" -s "tizen::vconf::platform::rw" -g 6514
+/usr/bin/vconftool set -t int "db/location/replay/ReplayEnabled"  "0" -s "tizen::vconf::platform::rw" -g 6514
+/usr/bin/vconftool set -t int "db/location/replay/ReplayMode"  "1" -s "tizen::vconf::platform::rw" -g 6514
+/usr/bin/vconftool set -t string "db/location/replay/FileName"  "nmea_replay.log" -s "tizen::vconf::platform::rw" -g 6514
+/usr/bin/vconftool set -t double "db/location/replay/ManualLatitude"  "0.0" -s "tizen::vconf::platform::rw" -g 6514
+/usr/bin/vconftool set -t double "db/location/replay/ManualLongitude"  "0.0" -s "tizen::vconf::platform::rw" -g 6514
+/usr/bin/vconftool set -t double "db/location/replay/ManualAltitude"  "0.0" -s "tizen::vconf::platform::rw"  -g 6514
+/usr/bin/vconftool set -t double "db/location/replay/ManualHAccuracy"  "0.0" -s "tizen::vconf::platform::rw"  -g 6514
+/usr/bin/vconftool set -t int "db/location/gps/Operation"  "1" -s "tizen::vconf::platform::rw"  -g 6514
+/usr/bin/vconftool set -t int "db/location/gps/OperationTest"  "0" -s "tizen::vconf::platform::rw"  -g 6514
+/usr/bin/vconftool set -t int "db/location/gps/Starting"  "0" -s "tizen::vconf::platform::rw"  -g 6514
+/usr/bin/vconftool set -t int "db/location/gps/Session"  "1" -s "tizen::vconf::platform::rw"  -g 6514
+/usr/bin/vconftool set -t double "db/location/gps/XtraDownloadTime"  "0.0" -s "tizen::vconf::platform::rw"  -g 6514
+/usr/bin/vconftool set -t string "db/location/supl/Server"  "" -s "tizen::vconf::platform::rw"  -g 6514
+/usr/bin/vconftool set -t string "db/location/supl/Port"  "7275" -s "tizen::vconf::platform::rw"  -g 6514
+/usr/bin/vconftool set -t int "db/location/supl/SslEnabled"  "1" -s "tizen::vconf::platform::rw"   -g 6514
+/usr/bin/vconftool set -t int "db/location/supl/FQDNType"  "0" -s "tizen::vconf::platform::rw"  -g 6514
+/usr/bin/vconftool set -t int "db/location/supl/Version"  "0" -s "tizen::vconf::platform::rw"  -g 6514
index ee67ff1c0e6d98ddc35aa4db89e1cce5b146ef45..8b310e9869e2c73e771ede468f1bc6000d747ac3 100644 (file)
@@ -89,16 +89,25 @@ chmod 755 %{buildroot}/etc/rc.d/init.d/lbs-server
 mkdir -p %{buildroot}/etc/rc.d/rc5.d
 ln -sf ../init.d/lbs-server %{buildroot}/etc/rc.d/rc5.d/S90lbs-server
 
+mkdir -p %{buildroot}/opt/usr
+install -m 755 lbs-server/script/vconf-location.sh %{buildroot}/opt/usr
+
+
 %define GPS_DUMP_DIR /opt/etc/dump.d/module.d
 
 mkdir -p %{buildroot}/%{GPS_DUMP_DIR}
 cp -a lbs-server/script/dump_gps.sh %{buildroot}/%{GPS_DUMP_DIR}/dump_gps.sh
 
+
 %clean
 rm -rf %{buildroot}
 
 
 %post
+chmod a+x /opt/usr/vconf-location.sh
+. /opt/usr/vconf-location.sh
+rm /opt/usr/vconf-location.sh
+
 
 %ifarch %arm
        vconftool set -t int "db/location/replay/ReplayEnabled" "0" -s "tizen::vconf::platform::rw" -g 6514 -f
@@ -128,6 +137,7 @@ rm -rf %{buildroot}
 %{_libdir}/systemd/system/lbs-server.service
 %{_libdir}/systemd/system/multi-user.target.wants/lbs-server.service
 /opt/etc/dump.d/module.d/dump_gps.sh
+/opt/usr/vconf-location.sh
 
 %files -n location-lbs-server
 %manifest location-lbs-server.manifest