Merge pull request #4956 from ByteHamster/android12-exported

Explicitly specify exported attribute for Android 12 compatibility
This commit is contained in:
ByteHamster 2021-02-23 10:08:12 +01:00 committed by GitHub
commit 711ba97910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 15 deletions

View File

@ -60,7 +60,8 @@
<activity <activity
android:name=".activity.SplashActivity" android:name=".activity.SplashActivity"
android:label="@string/app_name" android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation|screenSize"> android:configChanges="keyboardHidden|orientation|screenSize"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN"/> <action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/> <category android:name="android.intent.category.LAUNCHER"/>
@ -83,7 +84,8 @@
android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|density|uiMode|keyboard|navigation" android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|density|uiMode|keyboard|navigation"
android:windowSoftInputMode="stateAlwaysHidden" android:windowSoftInputMode="stateAlwaysHidden"
android:launchMode="singleTask" android:launchMode="singleTask"
android:label="@string/app_name"> android:label="@string/app_name"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
@ -128,7 +130,8 @@
<activity <activity
android:name=".activity.WidgetConfigActivity" android:name=".activity.WidgetConfigActivity"
android:label="@string/widget_settings"> android:label="@string/widget_settings"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGUR"/> <action android:name="android.appwidget.action.APPWIDGET_CONFIGUR"/>
</intent-filter> </intent-filter>
@ -141,21 +144,21 @@
android:exported="false"> android:exported="false">
</service> </service>
<receiver android:name=".core.receiver.PlayerWidget"> <receiver
android:name=".core.receiver.PlayerWidget"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/> <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
</intent-filter> </intent-filter>
<intent-filter> <intent-filter>
<action android:name="de.danoeh.antennapod.FORCE_WIDGET_UPDATE"/> <action android:name="de.danoeh.antennapod.FORCE_WIDGET_UPDATE"/>
</intent-filter> </intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/player_widget_info"/>
<intent-filter> <intent-filter>
<action android:name="de.danoeh.antennapod.STOP_WIDGET_UPDATE"/> <action android:name="de.danoeh.antennapod.STOP_WIDGET_UPDATE"/>
</intent-filter> </intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/player_widget_info"/>
</receiver> </receiver>
<activity android:name=".activity.StorageErrorActivity"> <activity android:name=".activity.StorageErrorActivity">
@ -163,7 +166,8 @@
<activity <activity
android:name=".activity.OpmlImportActivity" android:name=".activity.OpmlImportActivity"
android:configChanges="keyboardHidden|orientation|screenSize" android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/opml_import_label"> android:label="@string/opml_import_label"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW"/> <action android:name="android.intent.action.VIEW"/>
@ -212,7 +216,8 @@
android:name=".activity.VideoplayerActivity" android:name=".activity.VideoplayerActivity"
android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize" android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize"
android:supportsPictureInPicture="true" android:supportsPictureInPicture="true"
android:screenOrientation="sensorLandscape"> android:screenOrientation="sensorLandscape"
android:exported="false">
<meta-data <meta-data
android:name="android.support.PARENT_ACTIVITY" android:name="android.support.PARENT_ACTIVITY"
android:value="de.danoeh.antennapod.activity.MainActivity"/> android:value="de.danoeh.antennapod.activity.MainActivity"/>
@ -226,7 +231,8 @@
android:name=".activity.OnlineFeedViewActivity" android:name=".activity.OnlineFeedViewActivity"
android:configChanges="orientation|screenSize" android:configChanges="orientation|screenSize"
android:theme="@style/Theme.AntennaPod.Dark.Translucent" android:theme="@style/Theme.AntennaPod.Dark.Translucent"
android:label="@string/add_feed_label"> android:label="@string/add_feed_label"
android:exported="true">
<meta-data <meta-data
android:name="android.support.PARENT_ACTIVITY" android:name="android.support.PARENT_ACTIVITY"
android:value="de.danoeh.antennapod.activity.MainActivity"/> android:value="de.danoeh.antennapod.activity.MainActivity"/>
@ -314,20 +320,26 @@
</activity> </activity>
<receiver android:name=".receiver.ConnectivityActionReceiver"> <receiver
android:name=".receiver.ConnectivityActionReceiver"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/> <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter> </intent-filter>
</receiver> </receiver>
<receiver android:name=".receiver.PowerConnectionReceiver"> <receiver
android:name=".receiver.PowerConnectionReceiver"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.ACTION_POWER_CONNECTED"/> <action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/> <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
</intent-filter> </intent-filter>
</receiver> </receiver>
<receiver android:name=".receiver.SPAReceiver"> <receiver
android:name=".receiver.SPAReceiver"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="de.danoeh.antennapdsp.intent.SP_APPS_QUERY_FEEDS_RESPONSE"/> <action android:name="de.danoeh.antennapdsp.intent.SP_APPS_QUERY_FEEDS_RESPONSE"/>
</intent-filter> </intent-filter>