This file is indexed.

/etc/init/ubuntu-location-service.override is in lxc-android-config 0.230+16.04.20160328-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
start on android and started dbus

script
    # normal setup
    # GPS provider
    opts="--provider gps::Provider"
    # Remote provider (Ubuntu Espoo Service over DBus; wraps HERE positioning
    # engine)
    opts="$opts --provider remote::Provider"
    opts="$opts --remote::Provider::name=com.ubuntu.espoo.Service.Provider"
    opts="$opts --remote::Provider::path=/com/ubuntu/espoo/Service/Provider"

    # wait for Android properties system to be ready
    while [ ! -e /dev/socket/property_service ]; do sleep 0.1; done

    # Check if we need to use the fake provider instead
    if [ "$(getprop custom.location.fake)" = "true" ]; then
        lat="$(getprop custom.location.lat 51.505660)"
        lon="$(getprop custom.location.lon -0.099850)"
        # reset to just the dummy provider
        opts="--provider dummy::Provider"
        opts="$opts --dummy::Provider::ReferenceLocationLat=$lat"
        opts="$opts --dummy::Provider::ReferenceLocationLon=$lon"
    fi

    if [ "$(getprop custom.location.testing)" = "true" ]; then
        export TRUST_STORE_PERMISSION_MANAGER_IS_RUNNING_UNDER_TESTING="1"
    fi

    exec /usr/bin/ubuntu-location-serviced --bus system $opts
end script