blob: 74daafe2c3b8049034825fa725cf67e8f9644ea6 [file] [log] [blame]
Akshay Kannancdb6c142016-01-20 18:25:44 -08001<?xml version="1.0" encoding="utf-8"?>
mariagpuyolea078ed2016-03-07 20:02:10 -08002<!-- Copyright (C) 2016 The Android Open Source Project
mariagpuyola2a997e2016-02-18 11:25:29 -08003
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-->
Akshay Kannancdb6c142016-01-20 18:25:44 -080016<manifest xmlns:android="http://schemas.android.com/apk/res/android"
mariagpuyol476a25f2016-04-04 11:47:50 -070017 package="com.android.emergency"
18 android:sharedUserId="com.android.emergency.uid">
Akshay Kannancdb6c142016-01-20 18:25:44 -080019
Akshay Kannan44ef39d2016-01-26 09:08:41 -080020 <uses-permission android:name="android.permission.CALL_PHONE" />
Tyler Gunn1c888f82018-04-15 22:49:59 -070021 <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
Akshay Kannancdb6c142016-01-20 18:25:44 -080022 <uses-permission android:name="android.permission.READ_CONTACTS" />
mariagpuyol3c109f12016-03-11 11:23:12 -080023 <uses-permission android:name="android.permission.MANAGE_USERS" />
Akshay Kannancdb6c142016-01-20 18:25:44 -080024
25 <application
mariagpuyol39bfbc52016-03-16 18:12:42 -070026 android:defaultToDeviceProtectedStorage="true"
mariagpuyol85fac1c2016-03-30 13:22:47 -070027 android:icon="@mipmap/ic_local_hospital_24dp"
mariagpuyol39bfbc52016-03-16 18:12:42 -070028 android:directBootAware="true"
mariagpuyolaf026242016-02-19 16:48:19 -080029 android:label="@string/app_label"
mariagpuyol4358edd2016-02-23 10:07:00 -080030 android:supportsRtl="true">
Akshay Kannancdb6c142016-01-20 18:25:44 -080031 <activity
mariagpuyol58748352016-03-09 15:36:28 -080032 android:name=".view.ViewInfoActivity"
mariagpuyolab50ae12016-03-07 10:37:35 -080033 android:theme="@style/AppThemeEmergency"
mariagpuyolded933e2016-03-30 14:35:54 -070034 android:taskAffinity="com.android.settings"
mariagpuyolecf06292016-03-24 18:33:42 -070035 android:showOnLockScreen="true"
Fan Zhangafea4252018-03-06 15:31:48 -080036 android:icon="@drawable/ic_launcher_settings"
mariagpuyolecf06292016-03-24 18:33:42 -070037 android:launchMode="singleTask">
Akshay Kannancdb6c142016-01-20 18:25:44 -080038 <intent-filter>
39 <action android:name="android.telephony.action.EMERGENCY_ASSISTANCE" />
40 <category android:name="android.intent.category.DEFAULT" />
41 </intent-filter>
42 </activity>
43
mariagpuyola2a997e2016-02-18 11:25:29 -080044 <activity
mariagpuyol58748352016-03-09 15:36:28 -080045 android:name=".edit.EditInfoActivity"
Fan Zhangafea4252018-03-06 15:31:48 -080046 android:icon="@drawable/ic_launcher_settings"
mariagpuyol3c109f12016-03-11 11:23:12 -080047 android:theme="@style/AppTheme"
mariagpuyolded933e2016-03-30 14:35:54 -070048 android:taskAffinity="com.android.settings"
mariagpuyol3c109f12016-03-11 11:23:12 -080049 android:launchMode="singleTask">
Akshay Kannancdb6c142016-01-20 18:25:44 -080050 <intent-filter>
Juan Lange33c7802017-05-02 16:31:47 -070051 <action android:name="android.settings.EDIT_EMERGENCY_INFO" />
52 <category android:name="android.intent.category.DEFAULT" />
53 </intent-filter>
Juan Langd6bbac52017-07-20 17:56:11 -070054 </activity>
55
56 <!-- Alias for edit activity, to allow settings suggestion to be independent from main activity -->
57 <activity-alias
58 android:name=".edit.EditInfoSuggestion"
59 android:label="@string/app_label"
60 android:targetActivity=".edit.EditInfoActivity"
61 android:exported="true">
Juan Lang97d97e42017-06-19 09:32:12 -070062 <intent-filter>
63 <action android:name="android.intent.action.MAIN" />
64 <category android:name="com.android.settings.suggested.category.FIRST_IMPRESSION" />
65 </intent-filter>
Andrew Sapperstein799c2252017-06-26 09:59:17 -070066 <meta-data android:name="com.android.settings.dismiss" android:value="11,15,30" />
Juan Lang97d97e42017-06-19 09:32:12 -070067 <meta-data android:name="com.android.settings.title"
68 android:resource="@string/settings_suggestion_title" />
69 <meta-data android:name="com.android.settings.summary"
70 android:resource="@string/settings_suggestion_body" />
71 <meta-data android:name="com.android.settings.icon"
72 android:resource="@drawable/ic_local_hospital_24dp" />
Juan Langd6bbac52017-07-20 17:56:11 -070073 </activity-alias>
mariagpuyol8d971522016-04-07 17:31:41 -070074
Juan Lang432ad362017-05-04 16:20:22 -070075 <activity
76 android:name=".edit.EditMedicalInfoActivity"
Fan Zhangafea4252018-03-06 15:31:48 -080077 android:icon="@drawable/ic_launcher_settings"
Juan Lang432ad362017-05-04 16:20:22 -070078 android:label="@string/medical_info_title"
Juan Lang733755a2017-05-16 13:40:07 -070079 android:parentActivityName="com.android.emergency.edit.EditInfoActivity"
Juan Lang432ad362017-05-04 16:20:22 -070080 android:theme="@style/AppTheme"
81 android:taskAffinity="com.android.settings"
82 android:launchMode="singleTask">
83 <intent-filter>
84 <action android:name="android.emergency.EDIT_MEDICAL_INFO" />
85 <category android:name="android.intent.category.DEFAULT" />
86 </intent-filter>
87 </activity>
88
Juan Langd88729c2017-06-09 17:20:12 -070089 <provider
90 android:name=".EmergencySearchIndexablesProvider"
91 android:authorities="com.android.emergency"
92 android:multiprocess="false"
93 android:grantUriPermissions="true"
94 android:permission="android.permission.READ_SEARCH_INDEXABLES"
95 android:exported="true">
96 <intent-filter>
97 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
98 </intent-filter>
99 </provider>
100
Akshay Kannancdb6c142016-01-20 18:25:44 -0800101 </application>
102
Akshay Kannan44ef39d2016-01-26 09:08:41 -0800103</manifest>