<policy context="default">
<allow own="org.tizen.lbs.Providers.LbsServer"/>
- <allow send_destination="org.tizen.lbs.Providers.LbsServer"/>
+ <deny send_destination="org.tizen.lbs.Providers.LbsServer"/>
<allow receive_sender="org.tizen.lbs.Providers.LbsServer"/>
- <!-- After confirming security team
<check send_destination="org.tizen.lbs.Providers.LbsServer"
send_interface="org.tizen.lbs.Manager"
privilege="http://tizen.org/privilege/location" />
<check receive_sender="org.tizen.lbs.Providers.LbsServer"
receive_interface="org.tizen.lbs.Batch"
privilege="http://tizen.org/privilege/location" />
- -->
<!-- This tag is for HW geofence
<allow send_interface="org.tizen.lbs.Geofence"/>
+++ /dev/null
-#!/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
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}
%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
vconftool set -t int "db/location/replay/ReplayMode" "1" -s "tizen::vconf::platform::rw" -g 6514 -f
+%else if %aarch64
+ vconftool set -t int "db/location/replay/ReplayEnabled" "0" -s "tizen::vconf::platform::rw" -g 6514 -f
+ vconftool set -t int "db/location/replay/ReplayMode" "1" -s "tizen::vconf::platform::rw" -g 6514 -f
%else
vconftool set -t int "db/location/replay/ReplayEnabled" "1" -s "tizen::vconf::platform::rw" -g 6514 -f
vconftool set -t int "db/location/replay/ReplayMode" "0" -s "tizen::vconf::platform::rw" -g 6514 -f
# cp -f /usr/lib/location/module/libgps.so /usr/lib/location/module/libwps0.so
#%endif
+
%postun -p /sbin/ldconfig
%files
%manifest lbs-server.manifest
%license LICENSE
-%defattr(-,system,system,-)
+%defattr(-,root,root,-)
%{_bindir}/lbs-server
/usr/share/dbus-1/system-services/org.tizen.lbs.Providers.LbsServer.service
%config %{_sysconfdir}/dbus-1/system.d/lbs-server.conf
%{_unitdir}/lbs-server.service
%{_unitdir}/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