1
start on android and started dbus
4
provider="gps::Provider"
6
while [ ! -e /dev/socket/property_service ]; do sleep 0.1; done
8
# Check if we need to use the fake provider instead
9
if [ "$(getprop custom.location.fake)" = "true" ]; then
10
provider="dummy::Provider"
11
poptions="--dummy::Provider::ReferenceLocationLat=$(getprop custom.location.lat 51.505660) \
12
--dummy::Provider::ReferenceLocationLon=$(getprop custom.location.lon -0.099850)"
15
exec /usr/bin/ubuntu-location-serviced --bus system --provider $provider $poptions