Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / health / src / main / AndroidManifest.xml
AndroidManifest.xml179 lines · 9.4 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | xmlns:tools="http://schemas.android.com/tools"> |
| 4 | |
| 5 | <!-- Offline app (#884): androidx.work merges in ACCESS_NETWORK_STATE, which nothing here uses. --> |
| 6 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove" /> |
| 7 | |
| 8 | |
| 9 | <uses-permission android:name="android.permission.health.READ_STEPS" /> |
| 10 | <uses-permission android:name="android.permission.health.READ_WHEELCHAIR_PUSHES" /> |
| 11 | <uses-permission android:name="android.permission.health.READ_DISTANCE" /> |
| 12 | <uses-permission android:name="android.permission.health.READ_TOTAL_CALORIES_BURNED" /> |
| 13 | <uses-permission android:name="android.permission.health.READ_ACTIVE_CALORIES_BURNED" /> |
| 14 | <uses-permission android:name="android.permission.health.READ_BASAL_METABOLIC_RATE" /> |
| 15 | <uses-permission android:name="android.permission.health.READ_FLOORS_CLIMBED" /> |
| 16 | <uses-permission android:name="android.permission.health.READ_ELEVATION_GAINED" /> |
| 17 | |
| 18 | <uses-permission android:name="android.permission.health.READ_HEART_RATE" /> |
| 19 | <uses-permission android:name="android.permission.health.READ_RESTING_HEART_RATE" /> |
| 20 | <uses-permission android:name="android.permission.health.READ_HEART_RATE_VARIABILITY" /> |
| 21 | <uses-permission android:name="android.permission.health.READ_RESPIRATORY_RATE" /> |
| 22 | <uses-permission android:name="android.permission.health.READ_OXYGEN_SATURATION" /> |
| 23 | <uses-permission android:name="android.permission.health.READ_BLOOD_PRESSURE" /> |
| 24 | <uses-permission android:name="android.permission.health.READ_BLOOD_GLUCOSE" /> |
| 25 | <uses-permission android:name="android.permission.health.READ_VO2_MAX" /> |
| 26 | <uses-permission android:name="android.permission.health.READ_SKIN_TEMPERATURE" /> |
| 27 | |
| 28 | <uses-permission android:name="android.permission.health.READ_WEIGHT" /> |
| 29 | <uses-permission android:name="android.permission.health.READ_HEIGHT" /> |
| 30 | <uses-permission android:name="android.permission.health.READ_BODY_FAT" /> |
| 31 | <uses-permission android:name="android.permission.health.READ_LEAN_BODY_MASS" /> |
| 32 | <uses-permission android:name="android.permission.health.READ_BONE_MASS" /> |
| 33 | <uses-permission android:name="android.permission.health.READ_BODY_WATER_MASS" /> |
| 34 | <uses-permission android:name="android.permission.health.WRITE_WEIGHT" /> |
| 35 | <uses-permission android:name="android.permission.health.WRITE_HEIGHT" /> |
| 36 | <uses-permission android:name="android.permission.health.WRITE_BODY_FAT" /> |
| 37 | <uses-permission android:name="android.permission.health.WRITE_LEAN_BODY_MASS" /> |
| 38 | <uses-permission android:name="android.permission.health.WRITE_BONE_MASS" /> |
| 39 | <uses-permission android:name="android.permission.health.WRITE_BODY_WATER_MASS" /> |
| 40 | |
| 41 | <uses-permission android:name="android.permission.health.READ_EXERCISE" /> |
| 42 | |
| 43 | <uses-permission android:name="android.permission.health.READ_SLEEP" /> |
| 44 | <uses-permission android:name="android.permission.health.READ_MINDFULNESS" /> |
| 45 | <uses-permission android:name="android.permission.health.READ_HYDRATION" /> |
| 46 | <uses-permission android:name="android.permission.health.READ_NUTRITION" /> |
| 47 | <uses-permission android:name="android.permission.health.WRITE_HYDRATION" /> |
| 48 | <uses-permission android:name="android.permission.health.WRITE_NUTRITION" /> |
| 49 | <uses-permission android:name="android.permission.health.READ_HEALTH_DATA_IN_BACKGROUND" /> |
| 50 | |
| 51 | <!-- |
| 52 | Personal Health Record (FHIR) access, for the Medication and Medical History screens. |
| 53 | |
| 54 | Deliberately kept out of the PERMISSIONS set MainActivity gates the whole app on: these are |
| 55 | only grantable on Android 15 with an updated Health Connect module, and requiring them up |
| 56 | front would put every older device behind a permission wall it can never pass. Both screens |
| 57 | work from the local database when these are absent. |
| 58 | --> |
| 59 | <uses-permission android:name="android.permission.health.WRITE_MEDICAL_DATA" /> |
| 60 | <uses-permission android:name="android.permission.health.READ_MEDICAL_DATA_VACCINES" /> |
| 61 | <uses-permission android:name="android.permission.health.READ_MEDICAL_DATA_MEDICATIONS" /> |
| 62 | <uses-permission android:name="android.permission.health.READ_MEDICAL_DATA_ALLERGIES_INTOLERANCES" /> |
| 63 | <uses-permission android:name="android.permission.health.READ_MEDICAL_DATA_CONDITIONS" /> |
| 64 | <uses-permission android:name="android.permission.health.READ_MEDICAL_DATA_LABORATORY_RESULTS" /> |
| 65 | <uses-permission android:name="android.permission.health.READ_MEDICAL_DATA_PREGNANCY" /> |
| 66 | <uses-permission android:name="android.permission.health.READ_MEDICAL_DATA_SOCIAL_HISTORY" /> |
| 67 | <uses-permission android:name="android.permission.health.READ_MEDICAL_DATA_PERSONAL_DETAILS" /> |
| 68 | |
| 69 | <uses-permission android:name="com.vayunmathur.openassistant.permission.ACCESS_INFERENCE" /> |
| 70 | |
| 71 | <!-- |
| 72 | Medication dose reminders. |
| 73 | |
| 74 | Deliberately no SCHEDULE_EXACT_ALARM or USE_EXACT_ALARM: a dose reminder does not need to be |
| 75 | punctual to the second, so DoseScheduler uses setAndAllowWhileIdle. That keeps the app out of |
| 76 | the "Alarms & reminders" settings screen entirely. |
| 77 | |
| 78 | USE_FULL_SCREEN_INTENT is auto-granted only to calling and alarm apps on Android 14+, which |
| 79 | this is not, so the schedule editor offers the user a way to grant it. Without it the reminder |
| 80 | still arrives, as a heads-up notification rather than a screen takeover. |
| 81 | --> |
| 82 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
| 83 | <uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" /> |
| 84 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
| 85 | <uses-permission android:name="android.permission.VIBRATE" /> |
| 86 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
| 87 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" /> |
| 88 | |
| 89 | <queries> |
| 90 | <package android:name="com.vayunmathur.openassistant" /> |
| 91 | <!-- Health Connect's APK provider on API 33 and below. Without this, package-visibility |
| 92 | rules hide the provider and getSdkStatus() cannot see it. --> |
| 93 | <package android:name="com.google.android.apps.healthdata" /> |
| 94 | </queries> |
| 95 | |
| 96 | <application |
| 97 | android:allowBackup="true" |
| 98 | android:dataExtractionRules="@xml/data_extraction_rules" |
| 99 | android:icon="@mipmap/ic_launcher" |
| 100 | android:label="@string/app_name" |
| 101 | android:roundIcon="@mipmap/ic_launcher" |
| 102 | android:supportsRtl="true" |
| 103 | android:theme="@style/Theme.General"> |
| 104 | <activity |
| 105 | android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" |
| 106 | android:name=".MainActivity" |
| 107 | android:exported="true" |
| 108 | android:theme="@style/Theme.General"> |
| 109 | <intent-filter> |
| 110 | <action android:name="android.intent.action.MAIN" /> |
| 111 | |
| 112 | <category android:name="android.intent.category.LAUNCHER" /> |
| 113 | </intent-filter> |
| 114 | </activity> |
| 115 | |
| 116 | <activity |
| 117 | android:name=".ui.PermissionsRationaleActivity" |
| 118 | android:exported="true"> |
| 119 | <intent-filter> |
| 120 | <action android:name="androidx.health.ACTION_SHOW_PERMISSIONS_RATIONALE" /> |
| 121 | </intent-filter> |
| 122 | </activity> |
| 123 | |
| 124 | <activity-alias |
| 125 | android:name="ViewPermissionUsageActivity" |
| 126 | android:exported="true" |
| 127 | android:targetActivity=".ui.PermissionsRationaleActivity" |
| 128 | android:permission="android.permission.START_VIEW_PERMISSION_USAGE"> |
| 129 | <intent-filter> |
| 130 | <action android:name="android.intent.action.VIEW_PERMISSION_USAGE" /> |
| 131 | <category android:name="android.intent.category.HEALTH_PERMISSIONS" /> |
| 132 | </intent-filter> |
| 133 | </activity-alias> |
| 134 | |
| 135 | <provider |
| 136 | android:name="androidx.core.content.FileProvider" |
| 137 | android:authorities="${applicationId}.fileprovider" |
| 138 | android:exported="false" |
| 139 | android:grantUriPermissions="true"> |
| 140 | <meta-data |
| 141 | android:name="android.support.FILE_PROVIDER_PATHS" |
| 142 | android:resource="@xml/file_paths" /> |
| 143 | </provider> |
| 144 | |
| 145 | <activity |
| 146 | android:name=".platform.DoseReminderActivity" |
| 147 | android:showWhenLocked="true" |
| 148 | android:turnScreenOn="true" |
| 149 | android:excludeFromRecents="true" |
| 150 | android:exported="false" |
| 151 | android:launchMode="singleInstance" /> |
| 152 | |
| 153 | <receiver |
| 154 | android:name=".platform.DoseReceiver" |
| 155 | android:exported="false" /> |
| 156 | |
| 157 | <receiver |
| 158 | android:name=".platform.DoseActionReceiver" |
| 159 | android:exported="false" /> |
| 160 | |
| 161 | <receiver |
| 162 | android:name=".platform.HealthBootReceiver" |
| 163 | android:exported="false"> |
| 164 | <intent-filter> |
| 165 | <action android:name="android.intent.action.BOOT_COMPLETED" /> |
| 166 | <action android:name="android.intent.action.MY_PACKAGE_REPLACED" /> |
| 167 | <action android:name="android.intent.action.TIMEZONE_CHANGED" /> |
| 168 | <action android:name="android.intent.action.TIME_SET" /> |
| 169 | </intent-filter> |
| 170 | </receiver> |
| 171 | |
| 172 | <service |
| 173 | android:name=".service.DoseSoundService" |
| 174 | android:foregroundServiceType="mediaPlayback" |
| 175 | android:exported="false" /> |
| 176 | |
| 177 | </application> |
| 178 | |
| 179 | </manifest> |