Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc7028f1 authored by The Android Open Source Project's avatar The Android Open Source Project
Browse files

merge from open-source master

parents 563d3a62 853226b1
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(call all-subdir-java-files)

LOCAL_PACKAGE_NAME := LocationTracker

LOCAL_MODULE_TAGS := tests

include $(BUILD_PACKAGE)
+30 −0
Original line number Diff line number Diff line
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.locationtracker">

    <!-- Permissions for the Location Service -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

    <!--  Permission for wifi -->
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

    <!-- give the location tracker ability to induce device insomnia -->
    <uses-permission android:name="android.permission.WAKE_LOCK" />

    <!--  Permission for SD card -->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application android:label="@string/app_label">
        <activity android:name="TrackerActivity" android:label="Location Tracker">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <service android:name=".TrackerService" />
        <activity android:label="@string/settings_menu" android:name="SettingsActivity" />
        <provider android:name=".data.TrackerProvider"
            android:authorities="com.android.locationtracker" />
    </application>

</manifest>
+25 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
 * Copyright (C) 2006-2008 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/entrylist_item"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textAppearance="?android:attr/textAppearanceSmall"
/>
+37 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/start_service_menu"
          android:title="@string/start_service_menu" />
    <item android:id="@+id/stop_service_menu"
          android:title="@string/stop_service_menu" />
    <item android:id="@+id/settings_menu"
          android:title="@string/settings_menu" />
    <item android:id="@+id/export_sub_menu"
          android:title="@string/export_sub_menu">
        <menu>
            <item android:id="@+id/export_kml"
                  android:title="@string/export_kml" />
            <item android:id="@+id/export_csv"
                  android:title="@string/export_csv" />
        </menu>
    </item>
    <item android:title="@string/clear_data"
          android:id="@+id/clear_data_menu"/>
</menu>
+48 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->

<resources>
    <string name="start_service_menu">Start Service</string>
    <string name="stop_service_menu">Stop Service</string>
    <string name="settings_menu">Settings</string>
    <string name="update_preference">Update frequency</string>
    <string name="title_mintime_preference">Minimum update time</string>
    <string name="summary_mintime_preference">The suggested minimum time interval for location updates, in seconds</string>
    <string name="dialog_title_mintime_preference">Minimum update time</string>
    <string name="title_mindistance_preference">Minimum distance</string>
    <string name="summary_mindistance_preference">Minimum distance interval for location updates, in meters</string>
    <string name="dialog_title_mindistance_preference">Minimum distance</string>
    <string name="provider_preferences">Location providers</string>
    <string name="title_network_preference">Network location</string>
    <string name="summary_network_preference">Listen for updates to network location (Wi-Fi/cellid)</string>
    <string name="title_gps_preference">GPS location</string>
    <string name="summary_gps_preference">Listen for updates to GPS location</string>
    <string name="title_signal_preference">Signal strength</string>
    <string name="summary_signal_preference">Listen for updates to signal strength</string>
    <string name="advanced_preferences">Advanced</string>
    <string name="title_advanced_log_preference">Location debug logging</string>
    <string name="summary_advanced_preference">Logs detailed location data, only relevant for location/test engineers</string>
    <string name="app_label">Location Tracker</string>
    <string name="export_sub_menu">Export\u2026</string>
    <string name="export_kml">Export As KML</string>
    <string name="export_csv">Export As CSV</string>
    <string name="clear_data">Clear data</string>
    <string name="delete_confirm">All current tracking data will be deleted.</string>
    <string name="confirm_title">Clear data</string>
</resources>
Loading