75 lines
3.1 KiB
XML
75 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
package="org.y20k.trackbook">
|
|
|
|
<!-- USE GPS AND NETWORK - EXCLUDE NON-GPS DEVICES -->
|
|
<uses-feature android:name="android.hardware.location.gps" android:required="true" />
|
|
<uses-feature android:name="android.hardware.location.network" />
|
|
|
|
<!-- NORMAL PERMISSIONS, automatically granted -->
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
<!-- DANGEROUS PERMISSIONS, must request -->
|
|
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
|
|
<application
|
|
android:name=".Trackbook"
|
|
android:allowBackup="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/AppTheme"
|
|
tools:ignore="GoogleAppIndexingWarning">
|
|
|
|
<!-- MAIN ACTIVITY -->
|
|
<activity android:name=".MainActivity">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN"/>
|
|
<category android:name="android.intent.category.LAUNCHER"/>
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<!-- TRACKER SERVICE -->
|
|
<service
|
|
android:name=".TrackerService"
|
|
android:foregroundServiceType="location"
|
|
android:exported="false">
|
|
<intent-filter>
|
|
<action android:name="org.y20k.trackbook.action.START" />
|
|
<action android:name="org.y20k.trackbook.action.STOP" />
|
|
<action android:name="org.y20k.trackbook.action.DISMISS" />
|
|
</intent-filter>
|
|
</service>
|
|
|
|
<!-- TRACKING TOGGLE SERVICE SYSTEM QUICK SETTINGS -->
|
|
<service
|
|
android:name=".TrackingToggleTileService"
|
|
android:label="@string/quick_settings_tile_title_default"
|
|
android:icon="@drawable/ic_notification_icon_small_24dp"
|
|
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
|
<intent-filter>
|
|
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
|
</intent-filter>
|
|
</service>
|
|
|
|
<!-- FILE PROVIDER GPX -->
|
|
<provider
|
|
android:name="androidx.core.content.FileProvider"
|
|
android:authorities="${applicationId}.provider"
|
|
android:exported="false"
|
|
android:grantUriPermissions="true">
|
|
<meta-data
|
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
android:resource="@xml/provider_paths"/>
|
|
</provider>
|
|
|
|
</application>
|
|
|
|
|
|
</manifest>
|