Skip to content

Commit 4f153ba

Browse files
Merge pull request #2089 from nextcloud/backport/2088/stable-4.2
[stable-4.2] Restrict export of app components.
2 parents 388e2ff + a058028 commit 4f153ba

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

app/src/main/AndroidManifest.xml

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools">
1+
<?xml version="1.0" encoding="utf-8"?><!--
2+
~ Nextcloud Notes - Android Client
3+
~
4+
~ SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
5+
~ SPDX-FileCopyrightText: 2015-2024 Stefan Niedermann <[email protected]>
6+
~ SPDX-FileCopyrightText: 2017 Daniel Bailey <[email protected]>
7+
~ SPDX-License-Identifier: GPL-3.0-or-later
8+
-->
9+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
410

511
<uses-permission android:name="android.permission.INTERNET" />
612
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@@ -19,7 +25,6 @@
1925
android:networkSecurityConfig="@xml/network_security_config"
2026
android:supportsRtl="true"
2127
android:theme="@style/AppTheme"
22-
tools:targetApi="n"
2328
android:taskAffinity="">
2429

2530
<activity
@@ -113,14 +118,14 @@
113118
android:parentActivityName=".main.MainActivity" />
114119

115120
<activity android:name=".widget.singlenote.SingleNoteWidgetConfigurationActivity"
116-
android:exported="true">
121+
android:exported="false">
117122
<intent-filter>
118123
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
119124
</intent-filter>
120125
</activity>
121126

122127
<activity android:name=".widget.notelist.NoteListWidgetConfigurationActivity"
123-
android:exported="true">
128+
android:exported="false">
124129

125130
<intent-filter>
126131
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
@@ -130,7 +135,7 @@
130135
<receiver
131136
android:name=".widget.singlenote.SingleNoteWidget"
132137
android:label="@string/widget_single_note_title"
133-
android:exported="true">
138+
android:exported="false">
134139

135140
<intent-filter>
136141
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
@@ -144,7 +149,7 @@
144149
<receiver
145150
android:name=".widget.notelist.NoteListWidget"
146151
android:label="@string/widget_note_list_title"
147-
android:exported="true">
152+
android:exported="false">
148153

149154
<intent-filter>
150155
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />

0 commit comments

Comments
 (0)