-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
179 lines (164 loc) · 9 KB
/
Copy pathAndroidManifest.xml
File metadata and controls
179 lines (164 loc) · 9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:sharedUserId="chat.rocket.android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.VIDEO_CAPTURE" />
<uses-permission android:name="android.permission.AUDIO_CAPTURE" />
<!-- permissions related to jitsi call -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_PHONE_CALL" />
<!-- maxSdkVersion=29: on Android 11+ non-dialer apps cannot obtain this grant; native AudioManager fallback covers the detection path on API 30+. -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" android:maxSdkVersion="29" />
<!-- Strip restricted permissions inherited from react-native-callkeep. The app uses self-managed Telecom (MANAGE_OWN_CALLS) and does not need dialer or phone-number access. -->
<uses-permission android:name="android.permission.CALL_PHONE" tools:node="remove" />
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" tools:node="remove" />
<uses-permission android:name="android.permission.BIND_TELECOM_CONNECTION_SERVICE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
<uses-permission android:name="android.permission.MANAGE_OWN_CALLS" />
<uses-feature android:name="android.hardware.audio.output" android:required="false" />
<uses-feature android:name="android.hardware.microphone" android:required="false" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<!-- android 13 notifications -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- android 13 media permission -->
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<application
android:name="chat.rocket.reactnative.MainApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:requestLegacyExternalStorage="true"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="${usesCleartextTraffic}"
android:hardwareAccelerated="true"
tools:replace="android:allowBackup">
<activity
android:name="chat.rocket.reactnative.MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/BootTheme"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.DOWNLOAD_COMPLETE" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="go.rocket.chat" android:path="/invite" />
<data android:scheme="https" android:host="go.rocket.chat" android:path="/auth" />
<data android:scheme="https" android:host="go.rocket.chat" android:path="/room" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="rocketchat" />
</intent-filter>
</activity>
<activity
android:name="chat.rocket.reactnative.share.ShareActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:label="@string/share_extension_name"
android:noHistory="true"
android:screenOrientation="portrait"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
</activity>
<!-- Custom Firebase Messaging Service for Rocket.Chat notifications -->
<service
android:name="chat.rocket.reactnative.notification.RCFirebaseMessagingService"
android:exported="false">
<intent-filter android:priority="100">
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<receiver
android:name="chat.rocket.reactnative.notification.ReplyBroadcast"
android:enabled="true"
android:exported="true" />
<receiver
android:name="chat.rocket.reactnative.notification.DismissNotification"
android:enabled="true"
android:exported="true" >
</receiver>
<receiver
android:name="chat.rocket.reactnative.notification.VideoConfBroadcast"
android:enabled="true"
android:exported="false" >
<intent-filter>
<action android:name="chat.rocket.reactnative.ACTION_VIDEO_CONF_ACCEPT" />
<action android:name="chat.rocket.reactnative.ACTION_VIDEO_CONF_DECLINE" />
</intent-filter>
</receiver>
<meta-data
android:name="com.bugsnag.android.API_KEY"
android:value="${BugsnagAPIKey}" />
<activity
android:name="chat.rocket.reactnative.voip.IncomingCallActivity"
android:exported="false"
android:launchMode="singleInstance"
android:showOnLockScreen="true"
android:turnScreenOn="true"
android:showWhenLocked="true"
android:theme="@style/Theme.IncomingCall"
android:excludeFromRecents="true"
android:taskAffinity="chat.rocket.reactnative.voip" />
<receiver
android:name="chat.rocket.reactnative.voip.VoipNotification$DeclineReceiver"
android:enabled="true"
android:exported="false" />
<service android:name="io.wazo.callkeep.VoiceConnectionService"
android:label="Wazo"
android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
android:exported="true"
android:foregroundServiceType="microphone|phoneCall"
>
<intent-filter>
<action android:name="android.telecom.ConnectionService" />
</intent-filter>
</service>
<service android:name="io.wazo.callkeep.RNCallKeepBackgroundMessagingService" />
<!-- VoIP foreground service for keeping audio calls alive in the background. -->
<service
android:name="chat.rocket.reactnative.voip.VoipCallService"
android:enabled="true"
android:exported="false"
android:foregroundServiceType="phoneCall" />
<!-- react-native-webrtc ships MediaProjectionService (foregroundServiceType=mediaProjection)
for screen sharing. We don't use screen sharing, and Android 15+ forbids starting
restricted foreground service types from BOOT_COMPLETED receivers (expo-notifications
merges one in). Play Console flags this as a crash risk. Strip it from the merged
manifest. To re-enable, remove this block and set enableMediaProjectionService=true. -->
<service
android:name="com.oney.WebRTCModule.MediaProjectionService"
tools:node="remove" />
</application>
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:mimeType="*/*" />
</intent>
</queries>
</manifest>