Skip to content

Commit 006cb9e

Browse files
Merge pull request #72 from danilvalov/fix/android-manifest-set-exported-false
AndroidManifest: set `android:exported="false"` for activity and services
2 parents 7ff8784 + a4b52bc commit 006cb9e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,21 @@ In `AndroidManifest.xml`:
7474
android:theme="@style/incomingCall"
7575
android:launchMode="singleTask"
7676
android:excludeFromRecents="true"
77-
android:exported="true"
77+
android:exported="false"
7878
android:showWhenLocked="true"
7979
android:turnScreenOn="true"
8080
/>
8181
<activity android:name="com.reactnativefullscreennotificationincomingcall.NotificationReceiverActivity"
8282
android:theme="@style/incomingCall"
8383
android:launchMode="singleTask"
8484
android:excludeFromRecents="true"
85-
android:exported="true"
85+
android:exported="false"
8686
android:showWhenLocked="true"
8787
android:turnScreenOn="true"
8888
/>
8989
<service
9090
android:name="com.reactnativefullscreennotificationincomingcall.IncomingCallService"
91-
android:enabled="true"
91+
android:enabled="false"
9292
android:stopWithTask="false"
9393
android:foregroundServiceType="phoneCall"
9494
android:exported="true" />

example/android/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@
4646
android:theme="@style/incomingCall"
4747
android:launchMode="singleTask"
4848
android:excludeFromRecents="true"
49-
android:exported="true"
49+
android:exported="false"
5050
android:showWhenLocked="true"
5151
android:turnScreenOn="true"
5252
/>
5353
<activity android:name="com.reactnativefullscreennotificationincomingcall.NotificationReceiverActivity"
5454
android:theme="@style/incomingCall"
5555
android:launchMode="singleTask"
5656
android:excludeFromRecents="true"
57-
android:exported="true"
57+
android:exported="false"
5858
android:showWhenLocked="true"
5959
android:turnScreenOn="true"
6060
/>
@@ -63,7 +63,7 @@
6363
android:enabled="true"
6464
android:stopWithTask="false"
6565
android:foregroundServiceType="phoneCall"
66-
android:exported="true"
66+
android:exported="false"
6767
/>
6868
<!--callkeep-->
6969
<service android:name="io.wazo.callkeep.VoiceConnectionService"

0 commit comments

Comments
 (0)