1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2022 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19    package="android.healthconnect.integrationtests.backuprestore">
20
21    <application
22        android:debuggable="true"
23        android:largeHeap="true">
24        <uses-library android:name="android.test.runner"/>
25        <activity android:name=".EmptyActivity"
26            android:label="EmptyActivity"
27            android:exported="true">
28            <intent-filter>
29                <action android:name="android.intent.action.VIEW_PERMISSION_USAGE"/>
30                <category android:name="android.intent.category.HEALTH_PERMISSIONS"/>
31            </intent-filter>
32            <intent-filter>
33                <action android:name="android.health.connect.action.SHOW_MIGRATION_INFO"/>
34            </intent-filter>
35        </activity>
36    </application>
37
38    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
39        android:targetPackage="android.healthconnect.integrationtests.backuprestore"
40        android:label="Integration tests for HC Backup and Restore">
41    </instrumentation>
42
43    <!-- This is needed to turn enable D2D flag for B&R local transport -->
44    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
45    <!-- This is needed to query for HC BR APK package name -->
46    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
47
48    <uses-permission android:name="android.permission.health.READ_ACTIVE_CALORIES_BURNED"/>
49    <uses-permission android:name="android.permission.health.READ_BASAL_BODY_TEMPERATURE"/>
50    <uses-permission android:name="android.permission.health.READ_BASAL_METABOLIC_RATE"/>
51    <uses-permission android:name="android.permission.health.READ_BLOOD_GLUCOSE"/>
52    <uses-permission android:name="android.permission.health.READ_BLOOD_PRESSURE"/>
53    <uses-permission android:name="android.permission.health.READ_BODY_FAT"/>
54    <uses-permission android:name="android.permission.health.READ_BODY_TEMPERATURE"/>
55    <uses-permission android:name="android.permission.health.READ_BODY_WATER_MASS"/>
56    <uses-permission android:name="android.permission.health.READ_BONE_MASS"/>
57    <uses-permission android:name="android.permission.health.READ_CERVICAL_MUCUS"/>
58    <uses-permission android:name="android.permission.health.READ_INTERMENSTRUAL_BLEEDING"/>
59    <uses-permission android:name="android.permission.health.READ_DISTANCE"/>
60    <uses-permission android:name="android.permission.health.READ_ELEVATION_GAINED"/>
61    <uses-permission android:name="android.permission.health.READ_EXERCISE"/>
62    <uses-permission android:name="android.permission.health.READ_PLANNED_EXERCISE"/>
63    <uses-permission android:name="android.permission.health.READ_FLOORS_CLIMBED"/>
64    <uses-permission android:name="android.permission.health.READ_HEART_RATE"/>
65    <uses-permission android:name="android.permission.health.READ_HEART_RATE_VARIABILITY"/>
66    <uses-permission android:name="android.permission.health.READ_HEIGHT"/>
67    <uses-permission android:name="android.permission.health.READ_HYDRATION"/>
68    <uses-permission android:name="android.permission.health.READ_LEAN_BODY_MASS"/>
69    <uses-permission android:name="android.permission.health.READ_MENSTRUATION"/>
70    <uses-permission android:name="android.permission.health.READ_NUTRITION"/>
71    <uses-permission android:name="android.permission.health.READ_OVULATION_TEST"/>
72    <uses-permission android:name="android.permission.health.READ_OXYGEN_SATURATION"/>
73    <uses-permission android:name="android.permission.health.READ_POWER"/>
74    <uses-permission android:name="android.permission.health.READ_RESPIRATORY_RATE"/>
75    <uses-permission android:name="android.permission.health.READ_RESTING_HEART_RATE"/>
76    <uses-permission android:name="android.permission.health.READ_SEXUAL_ACTIVITY"/>
77    <uses-permission android:name="android.permission.health.READ_SLEEP"/>
78    <uses-permission android:name="android.permission.health.READ_SPEED"/>
79    <uses-permission android:name="android.permission.health.READ_STEPS"/>
80    <uses-permission android:name="android.permission.health.READ_TOTAL_CALORIES_BURNED"/>
81    <uses-permission android:name="android.permission.health.READ_VO2_MAX"/>
82    <uses-permission android:name="android.permission.health.READ_WEIGHT"/>
83    <uses-permission android:name="android.permission.health.READ_WHEELCHAIR_PUSHES"/>
84    <uses-permission android:name="android.permission.health.WRITE_ACTIVE_CALORIES_BURNED"/>
85    <uses-permission android:name="android.permission.health.WRITE_BASAL_BODY_TEMPERATURE"/>
86    <uses-permission android:name="android.permission.health.WRITE_BASAL_METABOLIC_RATE"/>
87    <uses-permission android:name="android.permission.health.WRITE_BLOOD_GLUCOSE"/>
88    <uses-permission android:name="android.permission.health.WRITE_BLOOD_PRESSURE"/>
89    <uses-permission android:name="android.permission.health.WRITE_BODY_FAT"/>
90    <uses-permission android:name="android.permission.health.WRITE_BODY_TEMPERATURE"/>
91    <uses-permission android:name="android.permission.health.WRITE_BODY_WATER_MASS"/>
92    <uses-permission android:name="android.permission.health.WRITE_BONE_MASS"/>
93    <uses-permission android:name="android.permission.health.WRITE_CERVICAL_MUCUS"/>
94    <uses-permission android:name="android.permission.health.WRITE_INTERMENSTRUAL_BLEEDING"/>
95    <uses-permission android:name="android.permission.health.WRITE_DISTANCE"/>
96    <uses-permission android:name="android.permission.health.WRITE_ELEVATION_GAINED"/>
97    <uses-permission android:name="android.permission.health.WRITE_EXERCISE"/>
98    <uses-permission android:name="android.permission.health.WRITE_PLANNED_EXERCISE"/>
99    <uses-permission android:name="android.permission.health.WRITE_EXERCISE_ROUTE"/>
100    <uses-permission android:name="android.permission.health.WRITE_FLOORS_CLIMBED"/>
101    <uses-permission android:name="android.permission.health.WRITE_HEART_RATE"/>
102    <uses-permission android:name="android.permission.health.WRITE_HEART_RATE_VARIABILITY"/>
103    <uses-permission android:name="android.permission.health.WRITE_HEIGHT"/>
104    <uses-permission android:name="android.permission.health.WRITE_HYDRATION"/>
105    <uses-permission android:name="android.permission.health.WRITE_LEAN_BODY_MASS"/>
106    <uses-permission android:name="android.permission.health.WRITE_MENSTRUATION"/>
107    <uses-permission android:name="android.permission.health.WRITE_NUTRITION"/>
108    <uses-permission android:name="android.permission.health.WRITE_OVULATION_TEST"/>
109    <uses-permission android:name="android.permission.health.WRITE_OXYGEN_SATURATION"/>
110    <uses-permission android:name="android.permission.health.WRITE_POWER"/>
111    <uses-permission android:name="android.permission.health.WRITE_RESPIRATORY_RATE"/>
112    <uses-permission android:name="android.permission.health.WRITE_RESTING_HEART_RATE"/>
113    <uses-permission android:name="android.permission.health.WRITE_SEXUAL_ACTIVITY"/>
114    <uses-permission android:name="android.permission.health.WRITE_SLEEP"/>
115    <uses-permission android:name="android.permission.health.WRITE_SPEED"/>
116    <uses-permission android:name="android.permission.health.WRITE_STEPS"/>
117    <uses-permission android:name="android.permission.health.WRITE_TOTAL_CALORIES_BURNED"/>
118    <uses-permission android:name="android.permission.health.WRITE_VO2_MAX"/>
119    <uses-permission android:name="android.permission.health.WRITE_WEIGHT"/>
120    <uses-permission android:name="android.permission.health.WRITE_WHEELCHAIR_PUSHES"/>
121</manifest>
122