Skip to content

Commit

Permalink
Merge pull request #2089 from nextcloud/backport/2088/stable-4.2
Browse files Browse the repository at this point in the history
[stable-4.2] Restrict export of app components.
  • Loading branch information
tobiasKaminsky authored Mar 26, 2024
2 parents 388e2ff + a058028 commit 4f153ba
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<?xml version="1.0" encoding="utf-8"?><!--
~ Nextcloud Notes - Android Client
~
~ SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
~ SPDX-FileCopyrightText: 2015-2024 Stefan Niedermann <info@niedermann.it>
~ SPDX-FileCopyrightText: 2017 Daniel Bailey <dan0xii@users.noreply.github.com>
~ SPDX-License-Identifier: GPL-3.0-or-later
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand All @@ -19,7 +25,6 @@
android:networkSecurityConfig="@xml/network_security_config"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:targetApi="n"
android:taskAffinity="">

<activity
Expand Down Expand Up @@ -113,14 +118,14 @@
android:parentActivityName=".main.MainActivity" />

<activity android:name=".widget.singlenote.SingleNoteWidgetConfigurationActivity"
android:exported="true">
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>

<activity android:name=".widget.notelist.NoteListWidgetConfigurationActivity"
android:exported="true">
android:exported="false">

<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
Expand All @@ -130,7 +135,7 @@
<receiver
android:name=".widget.singlenote.SingleNoteWidget"
android:label="@string/widget_single_note_title"
android:exported="true">
android:exported="false">

<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
Expand All @@ -144,7 +149,7 @@
<receiver
android:name=".widget.notelist.NoteListWidget"
android:label="@string/widget_note_list_title"
android:exported="true">
android:exported="false">

<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
Expand Down

0 comments on commit 4f153ba

Please sign in to comment.