1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 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 xmlns:tools="http://schemas.android.com/tools" 21 package="com.android.emergency"> 22 23 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> 24 <uses-permission android:name="android.permission.CALL_PHONE"/> 25 <uses-permission android:name="android.permission.CALL_PRIVILEGED"/> 26 <uses-permission android:name="android.permission.READ_PHONE_STATE"/> 27 <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"/> 28 <uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" /> 29 <uses-permission android:name="android.permission.VIBRATE" /> 30 31 <application 32 android:appComponentFactory="androidx.core.app.CoreComponentFactory" 33 tools:replace="android:appComponentFactory"> 34 35 <activity-alias android:name=".action.EmergencyAction" 36 android:label="@string/emergency_action_title" 37 android:targetActivity=".action.EmergencyActionActivity" 38 android:permission="android.permission.MANAGE_SENSOR_PRIVACY" 39 android:directBootAware="true" 40 android:enabled="true" 41 android:exported="true"> 42 43 <intent-filter> 44 <action android:name="com.android.systemui.action.LAUNCH_EMERGENCY"/> 45 <category android:name="android.intent.category.DEFAULT" /> 46 </intent-filter> 47 </activity-alias> 48 49 <activity 50 android:name=".action.EmergencyActionActivity" 51 android:label="@string/emergency_action_title" 52 android:theme="@style/AppThemeEmergencyAction" 53 android:directBootAware="true" 54 android:showWhenLocked="true" 55 android:turnScreenOn="true" 56 android:noHistory="true" 57 android:excludeFromRecents="true" 58 android:exported="false"/> 59 60 <service 61 android:name=".action.service.EmergencyActionForegroundService" 62 android:directBootAware="true" 63 android:exported="false"/> 64 65 <receiver 66 android:name=".action.broadcast.EmergencyActionBroadcastReceiver" 67 android:exported="false"> 68 <intent-filter> 69 <action android:name="com.android.emergency.broadcast.MAKE_EMERGENCY_CALL" /> 70 <action android:name="com.android.emergency.broadcast.CANCEL_EMERGENCY_COUNTDOWN" /> 71 </intent-filter> 72 </receiver> 73 74 </application> 75</manifest> 76