AndroidManifest.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | |
| 4 | <uses-permission android:name="android.permission.INTERNET" /> |
| 5 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 6 | <!-- Asking for FINE without COARSE lets the system dialog silently downgrade to COARSE. --> |
| 7 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
| 8 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
| 9 | <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> |
| 10 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
| 11 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" /> |
| 12 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
| 13 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
| 14 | <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> |
| 15 | |
| 16 | <uses-feature android:name="android.hardware.location.gps" android:required="false" /> |
| 17 | |
| 18 | <queries> |
| 19 | <intent> |
| 20 | <action android:name="android.support.customtabs.action.CustomTabsService" /> |
| 21 | </intent> |
| 22 | </queries> |
| 23 | |
| 24 | <application |
| 25 | android:allowBackup="false" |
| 26 | android:dataExtractionRules="@xml/data_extraction_rules" |
| 27 | android:icon="@mipmap/ic_launcher" |
| 28 | android:label="opentracker" |
| 29 | android:supportsRtl="true" |
| 30 | android:theme="@android:style/Theme.DeviceDefault.DayNight" |
| 31 | android:usesCleartextTraffic="${cleartext}"> |
| 32 | |
| 33 | <activity |
| 34 | android:name=".MainActivity" |
| 35 | android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|uiMode" |
| 36 | android:exported="true" |
| 37 | android:launchMode="singleTask"> |
| 38 | <intent-filter> |
| 39 | <action android:name="android.intent.action.MAIN" /> |
| 40 | <category android:name="android.intent.category.LAUNCHER" /> |
| 41 | </intent-filter> |
| 42 | <intent-filter> |
| 43 | <action android:name="android.intent.action.VIEW" /> |
| 44 | <category android:name="android.intent.category.DEFAULT" /> |
| 45 | <category android:name="android.intent.category.BROWSABLE" /> |
| 46 | <data android:scheme="opentracker" android:host="paired" /> |
| 47 | </intent-filter> |
| 48 | </activity> |
| 49 | |
| 50 | <!-- stopWithTask=false: swiping the app away must not stop tracking. --> |
| 51 | <service |
| 52 | android:name=".TrackerService" |
| 53 | android:exported="false" |
| 54 | android:foregroundServiceType="location" |
| 55 | android:stopWithTask="false" /> |
| 56 | |
| 57 | <receiver android:name=".BootReceiver" android:exported="true"> |
| 58 | <intent-filter> |
| 59 | <action android:name="android.intent.action.BOOT_COMPLETED" /> |
| 60 | <action android:name="android.intent.action.MY_PACKAGE_REPLACED" /> |
| 61 | </intent-filter> |
| 62 | </receiver> |
| 63 | |
| 64 | <receiver android:name=".Watchdog" android:exported="false" /> |
| 65 | </application> |
| 66 | </manifest> |
| 67 |