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 25 <application 26 android:defaultToDeviceProtectedStorage="true" 27 android:icon="@mipmap/ic_local_hospital_24dp" 28 android:directBootAware="true" 29 android:label="@string/app_label" 30 android:supportsRtl="true"> 31 <activity 32 android:name=".view.ViewInfoActivity" 33 android:theme="@style/AppThemeEmergency" 34 android:taskAffinity="com.android.settings" 35 android:showOnLockScreen="true" 36 android:icon="@drawable/ic_launcher_settings" 37 android:launchMode="singleTask"> 38 <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 44 <activity 45 android:name=".edit.EditInfoActivity" 46 android:icon="@drawable/ic_launcher_settings" 47 android:theme="@style/AppTheme" 48 android:taskAffinity="com.android.settings" 49 android:launchMode="singleTask"> 50 <intent-filter> 51 <action android:name="android.settings.EDIT_EMERGENCY_INFO" /> 52 <category android:name="android.intent.category.DEFAULT" /> 53 </intent-filter> 54 </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"> 62 <intent-filter> 63 <action android:name="android.intent.action.MAIN" /> 64 <category android:name="com.android.settings.suggested.category.FIRST_IMPRESSION" /> 65 </intent-filter> 66 <meta-data android:name="com.android.settings.dismiss" android:value="11,15,30" /> 67 <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" /> 73 </activity-alias> 74 75 <activity 76 android:name=".edit.EditMedicalInfoActivity" 77 android:icon="@drawable/ic_launcher_settings" 78 android:label="@string/medical_info_title" 79 android:parentActivityName="com.android.emergency.edit.EditInfoActivity" 80 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 89 <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 101 </application> 102 103</manifest> 104