Skip to content

Commit 37e5ddf

Browse files
Merge pull request #2088 from nextcloud/restrictExport
Restrict export of app components.
2 parents 786d078 + f4138c6 commit 37e5ddf

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
~ SPDX-FileCopyrightText: 2017 Daniel Bailey <dan0xii@users.noreply.github.com>
88
~ SPDX-License-Identifier: GPL-3.0-or-later
99
-->
10-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
11-
xmlns:tools="http://schemas.android.com/tools">
10+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
1211

1312
<uses-permission android:name="android.permission.INTERNET" />
1413
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@@ -27,7 +26,6 @@
2726
android:networkSecurityConfig="@xml/network_security_config"
2827
android:supportsRtl="true"
2928
android:theme="@style/AppTheme"
30-
tools:targetApi="n"
3129
android:taskAffinity="">
3230

3331
<activity
@@ -121,14 +119,14 @@
121119
android:parentActivityName=".main.MainActivity" />
122120

123121
<activity android:name=".widget.singlenote.SingleNoteWidgetConfigurationActivity"
124-
android:exported="true">
122+
android:exported="false">
125123
<intent-filter>
126124
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
127125
</intent-filter>
128126
</activity>
129127

130128
<activity android:name=".widget.notelist.NoteListWidgetConfigurationActivity"
131-
android:exported="true">
129+
android:exported="false">
132130

133131
<intent-filter>
134132
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
@@ -138,7 +136,7 @@
138136
<receiver
139137
android:name=".widget.singlenote.SingleNoteWidget"
140138
android:label="@string/widget_single_note_title"
141-
android:exported="true">
139+
android:exported="false">
142140

143141
<intent-filter>
144142
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
@@ -152,7 +150,7 @@
152150
<receiver
153151
android:name=".widget.notelist.NoteListWidget"
154152
android:label="@string/widget_note_list_title"
155-
android:exported="true">
153+
android:exported="false">
156154

157155
<intent-filter>
158156
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />

0 commit comments

Comments
 (0)