• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<manifest xmlns:android="http://schemas.android.com/apk/res/android"
17    package="com.android.emergency"
18    android:sharedUserId="com.android.emergency.uid">
19
20    <uses-permission android:name="android.permission.CALL_PHONE" />
21    <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
22    <uses-permission android:name="android.permission.READ_CONTACTS" />
23    <uses-permission android:name="android.permission.MANAGE_USERS" />
24    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
25
26    <uses-sdk android:minSdkVersion="21"/>
27
28    <application
29        android:defaultToDeviceProtectedStorage="true"
30        android:icon="@mipmap/ic_local_hospital_24dp"
31        android:directBootAware="true"
32        android:label="@string/app_label"
33        android:supportsRtl="true">
34        <activity
35            android:name=".view.ViewInfoActivity"
36            android:theme="@style/AppThemeEmergency"
37            android:taskAffinity="com.android.settings"
38            android:showWhenLocked="true"
39            android:icon="@drawable/ic_launcher_settings"
40            android:launchMode="singleTask">
41            <intent-filter>
42                <action android:name="android.telephony.action.EMERGENCY_ASSISTANCE" />
43                <category android:name="android.intent.category.DEFAULT" />
44            </intent-filter>
45        </activity>
46
47        <activity
48            android:name=".edit.EditInfoActivity"
49            android:icon="@drawable/ic_launcher_settings"
50            android:theme="@style/AppTheme"
51            android:taskAffinity="com.android.settings"
52            android:launchMode="singleTask">
53            <intent-filter>
54                <action android:name="android.settings.EDIT_EMERGENCY_INFO" />
55                <category android:name="android.intent.category.DEFAULT" />
56            </intent-filter>
57        </activity>
58
59        <!-- Alias for edit activity, to allow settings suggestion to be independent from main activity -->
60        <activity-alias
61            android:name=".edit.EditInfoSuggestion"
62            android:label="@string/app_label"
63            android:targetActivity=".edit.EditInfoActivity"
64            android:exported="true">
65            <intent-filter>
66                <action android:name="android.intent.action.MAIN" />
67                <category android:name="com.android.settings.suggested.category.FIRST_IMPRESSION" />
68            </intent-filter>
69            <meta-data android:name="com.android.settings.dismiss" android:value="11,15,30" />
70            <meta-data android:name="com.android.settings.title"
71                       android:resource="@string/settings_suggestion_title" />
72            <meta-data android:name="com.android.settings.summary"
73                       android:resource="@string/settings_suggestion_body" />
74            <meta-data android:name="com.android.settings.icon"
75                       android:resource="@drawable/ic_local_hospital_24dp" />
76        </activity-alias>
77
78        <activity
79            android:name=".edit.EditMedicalInfoActivity"
80            android:icon="@drawable/ic_launcher_settings"
81            android:label="@string/medical_info_title"
82            android:parentActivityName="com.android.emergency.edit.EditInfoActivity"
83            android:theme="@style/AppTheme"
84            android:taskAffinity="com.android.settings"
85            android:launchMode="singleTask">
86            <intent-filter>
87                <action android:name="android.emergency.EDIT_MEDICAL_INFO" />
88                <category android:name="android.intent.category.DEFAULT" />
89            </intent-filter>
90        </activity>
91
92        <provider
93            android:name=".EmergencySearchIndexablesProvider"
94            android:authorities="com.android.emergency"
95            android:multiprocess="false"
96            android:grantUriPermissions="true"
97            android:permission="android.permission.READ_SEARCH_INDEXABLES"
98            android:exported="true">
99            <intent-filter>
100                <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
101            </intent-filter>
102        </provider>
103
104        <provider
105            android:name="androidx.core.content.FileProvider"
106            android:authorities="com.android.emergency.files"
107            android:grantUriPermissions="true"
108            android:exported="false">
109            <meta-data
110                android:name="android.support.FILE_PROVIDER_PATHS"
111                android:resource="@xml/file_paths" />
112        </provider>
113
114    </application>
115
116</manifest>
117