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
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    package="com.android.healthconnect.controller.tests">
21
22  <application android:debuggable="true">
23    <uses-library android:name="android.test.runner" />
24    <activity
25        android:name=".TestActivity"
26        android:exported="true"
27        android:theme="@style/Theme.HealthConnect">
28      <intent-filter>
29        <action android:name="android.intent.action.MAIN" />
30        <category android:name="android.intent.category.LAUNCHER" />
31      </intent-filter>
32    </activity>
33
34    <!--
35    Disable the receiver in tests.
36
37    This receiver listens to ACTION_BOOT_COMPLETED actions and on Android V the system sends
38    ACTION_BOOT_COMPLETED to the test app whenever it gets initialized. The receiver gets triggered
39    before Hilt is able to initialize the dependency injection graph which causes a crash.
40    See https://developer.android.com/partners/google-apps/android-15/changes#enhanced-stop-states.
41    -->
42    <receiver
43        android:name="com.android.healthconnect.controller.safetycenter.SafetySourceBroadcastReceiver"
44        android:enabled="false"/>
45  </application>
46
47  <queries>
48    <intent>
49      <!-- An intent action to get package visibility into client apps. See more at b/193547946 -->
50      <action android:name="android.intent.action.VIEW_PERMISSION_USAGE" />
51      <category android:name="android.intent.category.HEALTH_PERMISSIONS" />
52    </intent>
53  </queries>
54
55  <instrumentation
56      android:name="com.android.healthconnect.controller.tests.HiltTestRunner"
57      android:label="Health Connect UI Test Cases"
58      android:targetPackage="com.android.healthconnect.controller.tests" />
59</manifest>
60