start on (android and started dbus) script provider="gps::Provider" # Check if we need to use the fake provider instead if [ $(getprop custom.location.fake) = "true" ]; then provider="dummy::Provider" poptions="--dummy::Provider::ReferenceLocationLat=$(getprop custom.location.lat 51.505660) \ --dummy::Provider::ReferenceLocationLon=$(getprop custom.location.lon -0.099850)" fi exec /usr/bin/ubuntu-location-serviced --bus system --provider $provider $poptions end script