targetSdkVersion 31. add android:exported explicitly for each app components.

This commit is contained in:
tateisu 2021-02-24 20:50:05 +09:00
parent aa44eb86e9
commit 9243072f47
2 changed files with 40 additions and 16 deletions

View File

@ -6,7 +6,9 @@
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<!-- CAMERAパーミッションをつけるとPlayストアにプライバシーポリシーを記載する必要がある --> <!-- CAMERAパーミッションをつけるとPlayストアにプライバシーポリシーを記載する必要がある -->
@ -51,7 +53,7 @@
<!-- Simejiマッシュルームプラグインの存在確認 --> <!-- Simejiマッシュルームプラグインの存在確認 -->
<intent> <intent>
<action android:name="com.adamrocker.android.simeji.ACTION_INTERCEPT" /> <action android:name="com.adamrocker.android.simeji.ACTION_INTERCEPT" />
<category android:name="com.adamrocker.android.simeji.REPLACE"/> <category android:name="com.adamrocker.android.simeji.REPLACE" />
</intent> </intent>
<!-- <intent>--> <!-- <intent>-->
@ -77,7 +79,9 @@
android:theme="@style/AppTheme.Light" android:theme="@style/AppTheme.Light"
tools:ignore="UnusedAttribute"> tools:ignore="UnusedAttribute">
<receiver android:name=".EventReceiver"> <receiver
android:name=".EventReceiver"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
@ -92,15 +96,16 @@
<service <service
android:name=".notification.PollingService" android:name=".notification.PollingService"
android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE" /> android:permission="android.permission.BIND_JOB_SERVICE" />
<service android:name=".notification.PollingForegrounder" /> <service android:name=".notification.PollingForegrounder" />
<activity <activity
android:name=".ActMain" android:name=".ActMain"
android:exported="true"
android:label="@string/app_name" android:label="@string/app_name"
android:launchMode="singleTask" android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden"> android:windowSoftInputMode="adjustResize|stateAlwaysHidden">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@ -110,9 +115,8 @@
<activity <activity
android:name=".ActCallback" android:name=".ActCallback"
android:label="@string/app_name" android:exported="true"
android:label="@string/app_name">
>
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
@ -197,94 +201,111 @@
<activity <activity
android:name=".ActPost" android:name=".ActPost"
android:exported="false"
android:label="@string/act_post" android:label="@string/act_post"
android:windowSoftInputMode="adjustResize" /> android:windowSoftInputMode="adjustResize" />
<activity <activity
android:name=".ActAccountSetting" android:name=".ActAccountSetting"
android:exported="false"
android:label="@string/account_setting" android:label="@string/account_setting"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" /> android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity <activity
android:name=".ActAppSetting" android:name=".ActAppSetting"
android:exported="false"
android:label="@string/app_setting" android:label="@string/app_setting"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" /> android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity <activity
android:name=".ActColumnList" android:name=".ActColumnList"
android:exported="false"
android:label="@string/column_list" android:label="@string/column_list"
android:windowSoftInputMode="adjustResize" /> android:windowSoftInputMode="adjustResize" />
<activity <activity
android:name=".ActAbout" android:name=".ActAbout"
android:label="@string/app_about" android:exported="false"
android:label="@string/app_about" />
/>
<activity <activity
android:name=".ActOSSLicense" android:name=".ActOSSLicense"
android:label="@string/oss_license" android:exported="false"
android:label="@string/oss_license" />
/>
<activity <activity
android:name=".ActMutedApp" android:name=".ActMutedApp"
android:exported="false"
android:label="@string/muted_app" /> android:label="@string/muted_app" />
<activity <activity
android:name=".ActMutedPseudoAccount" android:name=".ActMutedPseudoAccount"
android:exported="false"
android:label="@string/muted_users_from_pseudo_account" /> android:label="@string/muted_users_from_pseudo_account" />
<activity <activity
android:name=".ActMutedWord" android:name=".ActMutedWord"
android:exported="false"
android:label="@string/muted_word" /> android:label="@string/muted_word" />
<activity <activity
android:name=".ActFavMute" android:name=".ActFavMute"
android:exported="false"
android:label="@string/fav_muted_user_long" /> android:label="@string/fav_muted_user_long" />
<activity <activity
android:name=".ActKeywordFilter" android:name=".ActKeywordFilter"
android:exported="false"
android:label="@string/keyword_filter_new" android:label="@string/keyword_filter_new"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" /> android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity <activity
android:name=".ActHighlightWordList" android:name=".ActHighlightWordList"
android:exported="false"
android:label="@string/highlight_word" /> android:label="@string/highlight_word" />
<activity <activity
android:name=".ActHighlightWordEdit" android:name=".ActHighlightWordEdit"
android:exported="false"
android:label="@string/highlight_word" /> android:label="@string/highlight_word" />
<activity <activity
android:name=".ActColumnCustomize" android:name=".ActColumnCustomize"
android:exported="false"
android:label="@string/color_and_background" android:label="@string/color_and_background"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" /> android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity <activity
android:name=".ActLanguageFilter" android:name=".ActLanguageFilter"
android:exported="false"
android:label="@string/language_filter" android:label="@string/language_filter"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" /> android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity <activity
android:name=".ActDrawableList" android:name=".ActDrawableList"
android:exported="false"
android:label="@string/drawable_list" android:label="@string/drawable_list"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" /> android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity <activity
android:name=".ActNickname" android:name=".ActNickname"
android:exported="false"
android:label="@string/nickname_and_color_and_notification_sound" android:label="@string/nickname_and_color_and_notification_sound"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" /> android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity <activity
android:name=".ActText" android:name=".ActText"
android:exported="false"
android:label="@string/select_and_copy" android:label="@string/select_and_copy"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" /> android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity <activity
android:name=".ActMediaViewer" android:name=".ActMediaViewer"
android:exported="false"
android:theme="@style/AppTheme.Dark.NoActionBar" /> android:theme="@style/AppTheme.Dark.NoActionBar" />
<activity <activity
android:name=".ActExitReasons" android:name=".ActExitReasons"
android:exported="false"
android:label="@string/exit_reasons" android:label="@string/exit_reasons"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" /> android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
@ -302,7 +323,9 @@
android:resource="@xml/file_provider_path" /> android:resource="@xml/file_provider_path" />
</provider> </provider>
<receiver android:name=".DownloadReceiver"> <receiver
android:name=".DownloadReceiver"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED" /> <action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED" />
<action android:name="android.intent.action.DOWNLOAD_COMPLETE" /> <action android:name="android.intent.action.DOWNLOAD_COMPLETE" />
@ -311,6 +334,7 @@
<service <service
android:name=".MyFirebaseMessagingService" android:name=".MyFirebaseMessagingService"
android:exported="true"
tools:ignore="ExportedService"> tools:ignore="ExportedService">
<intent-filter> <intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" /> <action android:name="com.google.firebase.MESSAGING_EVENT" />

View File

@ -1,7 +1,7 @@
buildscript { buildscript {
ext.min_sdk_version = 21 ext.min_sdk_version = 21
ext.target_sdk_version = 30 ext.target_sdk_version = 31
ext.appcompat_version='1.2.0' ext.appcompat_version='1.2.0'
ext.kotlin_version = '1.4.30' ext.kotlin_version = '1.4.30'