Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / findfamily / src / main / AndroidManifest.xml
AndroidManifest.xml148 lines · 6.8 KiBRaw
| 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 | |
| 7 | <uses-permission android:name="android.permission.READ_CONTACTS" android:maxSdkVersion="36"/> |
| 8 | |
| 9 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
| 10 | |
| 11 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
| 12 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
| 13 | <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> |
| 14 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
| 15 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" /> |
| 16 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
| 17 | |
| 18 | <!-- |
| 19 | Powered-off finding, finder half. Arming a beacon needs BLUETOOTH_PRIVILEGED, which is |
| 20 | signature|privileged and so only ever available to a preinstalled build — but *hearing* one |
| 21 | is ordinary BLE, and the network is only worth anything if plenty of phones are listening. |
| 22 | So this is declared here rather than in src/dev: an F-Droid install has to be able to |
| 23 | contribute sightings too. Scanning still does nothing until the user opts in |
| 24 | (CROWD_FINDING_ENABLED_KEY, default off). |
| 25 | --> |
| 26 | <uses-permission android:name="android.permission.BLUETOOTH_SCAN" /> |
| 27 | <uses-feature android:name="android.hardware.bluetooth_le" android:required="false" /> |
| 28 | |
| 29 | <uses-permission android:name="android.permission.RANGING" /> |
| 30 | <!-- Powered-off finding (NearbyManager#setPoweredOffFindingEphemeralIds). signature|privileged, |
| 31 | so this is only actually granted when findfamily is installed as a MAOS priv-app with a |
| 32 | matching privapp-permissions entry; everywhere else the calls throw SecurityException and |
| 33 | PoweredOffBeacon treats the feature as absent. Requesting it here is harmless either way. --> |
| 34 | <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" /> |
| 35 | <uses-feature android:name="android.hardware.uwb" android:required="false" /> |
| 36 | |
| 37 | <permission |
| 38 | android:name="com.vayunmathur.findfamily.permissions.ACCESS_FAMILY" |
| 39 | android:protectionLevel="signature" /> |
| 40 | |
| 41 | <application |
| 42 | android:allowBackup="true" |
| 43 | android:backupAgent=".util.AppBackupAgent" |
| 44 | android:dataExtractionRules="@xml/data_extraction_rules" |
| 45 | android:icon="@mipmap/ic_launcher" |
| 46 | android:label="@string/app_name" |
| 47 | android:roundIcon="@mipmap/ic_launcher" |
| 48 | android:supportsRtl="true" |
| 49 | android:theme="@style/Theme.General"> |
| 50 | <activity |
| 51 | android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" |
| 52 | android:name=".MainActivity" |
| 53 | android:exported="true" |
| 54 | android:launchMode="singleTop" |
| 55 | android:theme="@style/Theme.General"> |
| 56 | <intent-filter> |
| 57 | <action android:name="android.intent.action.MAIN" /> |
| 58 | |
| 59 | <category android:name="android.intent.category.LAUNCHER" /> |
| 60 | </intent-filter> |
| 61 | <intent-filter> |
| 62 | <action android:name="android.intent.action.VIEW" /> |
| 63 | |
| 64 | <category android:name="android.intent.category.DEFAULT" /> |
| 65 | <category android:name="android.intent.category.BROWSABLE" /> |
| 66 | |
| 67 | <data android:scheme="findfamily" android:host="add" /> |
| 68 | </intent-filter> |
| 69 | <!-- Long-pressing a Quick Settings tile resolves this action; without it the |
| 70 | system falls back to the App Info page (GitHub #545). --> |
| 71 | <intent-filter> |
| 72 | <action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" /> |
| 73 | |
| 74 | <category android:name="android.intent.category.DEFAULT" /> |
| 75 | </intent-filter> |
| 76 | </activity> |
| 77 | |
| 78 | <service |
| 79 | android:name=".util.LocationTrackingService" |
| 80 | android:foregroundServiceType="location" |
| 81 | android:directBootAware="true" |
| 82 | android:exported="false" /> |
| 83 | |
| 84 | <service |
| 85 | android:name=".ipc.FamilyLocationService" |
| 86 | android:exported="true" |
| 87 | android:permission="com.vayunmathur.findfamily.permissions.ACCESS_FAMILY"> |
| 88 | <intent-filter> |
| 89 | <action android:name="com.vayunmathur.findfamily.action.FAMILY_LOCATIONS" /> |
| 90 | </intent-filter> |
| 91 | </service> |
| 92 | |
| 93 | <service |
| 94 | android:name=".util.TrackingTileService" |
| 95 | android:exported="true" |
| 96 | android:icon="@drawable/ic_tile_tracking" |
| 97 | android:label="@string/tile_label" |
| 98 | android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> |
| 99 | <intent-filter> |
| 100 | <action android:name="android.service.quicksettings.action.QS_TILE" /> |
| 101 | </intent-filter> |
| 102 | <meta-data |
| 103 | android:name="android.service.quicksettings.ACTIVITY" |
| 104 | android:value=".MainActivity" /> |
| 105 | </service> |
| 106 | |
| 107 | <service |
| 108 | android:name=".service.SharingTileService" |
| 109 | android:exported="true" |
| 110 | android:icon="@drawable/ic_tile_sharing" |
| 111 | android:label="@string/sharing_tile_label" |
| 112 | android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> |
| 113 | <intent-filter> |
| 114 | <action android:name="android.service.quicksettings.action.QS_TILE" /> |
| 115 | </intent-filter> |
| 116 | <meta-data |
| 117 | android:name="android.service.quicksettings.ACTIVITY" |
| 118 | android:value=".MainActivity" /> |
| 119 | </service> |
| 120 | |
| 121 | |
| 122 | <receiver |
| 123 | android:name=".util.BootReceiver" |
| 124 | android:directBootAware="true" |
| 125 | android:exported="false"> |
| 126 | <intent-filter> |
| 127 | <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" /> |
| 128 | <action android:name="android.intent.action.BOOT_COMPLETED" /> |
| 129 | <action android:name="android.intent.action.MY_PACKAGE_REPLACED" /> |
| 130 | </intent-filter> |
| 131 | </receiver> |
| 132 | |
| 133 | <activity |
| 134 | android:name=".intents.GetIntent" |
| 135 | android:exported="true" |
| 136 | android:theme="@android:style/Theme.NoDisplay" |
| 137 | android:permission="com.vayunmathur.findfamily.permissions.ACCESS_FAMILY"> |
| 138 | </activity> |
| 139 | |
| 140 | <activity |
| 141 | android:name=".intents.CreateLinkIntent" |
| 142 | android:exported="true" |
| 143 | android:theme="@android:style/Theme.NoDisplay" |
| 144 | android:permission="com.vayunmathur.findfamily.permissions.ACCESS_FAMILY"> |
| 145 | </activity> |
| 146 | </application> |
| 147 | |
| 148 | </manifest> |