SubwayTooter-Android-App/app/src/main/AndroidManifest.xml

428 lines
17 KiB
XML
Raw Normal View History

2017-04-20 18:23:59 +02:00
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2023-01-26 16:54:04 +01:00
xmlns:tools="http://schemas.android.com/tools">
<queries>
<!-- (自アプリ以外で)指定URLを開けるアプリの存在確認 -->
<intent>
<action android:name="android.intent.action.VIEW" />
</intent>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="http" />
</intent>
<!-- Chrome Custom Tabs の存在確認 -->
<intent>
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent>
<!-- Chrome Custom Tabs が明示指定するChromeパッケージ -->
<package android:name="com.android.chrome" />
<!-- カスタム共有ボタンのアプリ選択 -->
<intent>
<action android:name="android.intent.action.SEND" />
<data android:mimeType="text/plain" />
</intent>
<!-- TTS読み上げに必要 -->
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
<!-- Simejiマッシュルームプラグインの存在確認 -->
<intent>
<action android:name="com.adamrocker.android.simeji.ACTION_INTERCEPT" />
</intent>
<!-- <intent>-->
<!-- <action android:name="android.intent.action.SEND" />-->
<!-- <data android:mimeType="video/*" />-->
<!-- </intent>-->
<!-- <intent>-->
<!-- <action android:name="android.intent.action.VIEW" />-->
<!-- <data android:mimeType="video/*" />-->
<!-- </intent>-->
</queries>
2021-10-27 22:58:19 +02:00
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
2021-10-27 22:58:19 +02:00
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="32"
tools:ignore="ScopedStorage" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32"
2021-10-27 22:58:19 +02:00
tools:ignore="ScopedStorage" />
<!-- Devices running Android 13 (API level 33) or higher -->
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<!-- To handle the reselection within the app on Android 14 (API level 34) -->
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
2021-10-27 22:58:19 +02:00
<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_DATA_SYNC" />
2021-10-27 22:58:19 +02:00
<!-- CAMERAパーミッションをつけるとPlayストアにプライバシーポリシーを記載する必要がある -->
<!--<uses-permission android:name="android.permission.CAMERA"/>-->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Android 13以上で BOOT_COMPLETED を受け取るために必要 -->
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
2022-08-05 22:20:57 +02:00
<!--suppress AndroidUnknownAttribute -->
2017-04-20 18:23:59 +02:00
<application
android:name=".App1"
2017-04-20 18:23:59 +02:00
android:allowBackup="true"
2024-01-02 16:18:09 +01:00
android:dataExtractionRules="@xml/data_extraction_rules"
android:enableOnBackInvokedCallback="true"
android:fullBackupContent="@xml/backup_spec"
2017-04-20 18:23:59 +02:00
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:localeConfig="@xml/locales_config"
android:maxAspectRatio="100"
android:resizeableActivity="true"
2017-04-20 18:23:59 +02:00
android:supportsRtl="true"
2024-01-29 12:45:45 +01:00
android:theme="@style/Theme.App.Starting"
2022-08-05 22:20:57 +02:00
tools:ignore="DataExtractionRules,UnusedAttribute">
2017-04-20 18:23:59 +02:00
<activity
android:name=".ActMain"
2021-10-27 22:58:19 +02:00
android:exported="true"
2017-04-20 18:23:59 +02:00
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden">
2017-04-20 18:23:59 +02:00
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
2017-04-20 18:23:59 +02:00
</intent-filter>
</activity>
2017-04-29 22:51:04 +02:00
<activity
android:name=".ActCallback"
2022-06-13 19:23:46 +02:00
android:exported="true">
2017-04-29 22:51:04 +02:00
<intent-filter>
<action android:name="android.intent.action.VIEW" />
2017-04-29 22:51:04 +02:00
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
2017-04-29 22:51:04 +02:00
<data
android:host="*"
android:pathPattern=".*"
android:scheme="${customScheme}" />
2017-04-29 22:51:04 +02:00
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
2017-05-06 08:10:05 +02:00
<data
android:host="*"
android:pathPrefix="/@"
android:scheme="https" />
2017-05-06 08:10:05 +02:00
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="post"
android:scheme="web+activitypub" />
</intent-filter>
2017-06-09 16:21:05 +02:00
<!-- https://mstdn.kemono-friends.info/users/tocchi/updates/695489 -->
<!-- URLの数字部分はstatus_id「ではない」ようだ。謎なのでまだ対応できない。。。 -->
<!--<intent-filter>-->
<!--<action android:name="android.intent.action.VIEW"/>-->
2017-06-09 16:21:05 +02:00
<!--<category android:name="android.intent.category.DEFAULT"/>-->
<!--<category android:name="android.intent.category.BROWSABLE"/>-->
2017-06-09 16:21:05 +02:00
<!--<data-->
<!--android:host="*"-->
<!--android:pathPrefix="/users/"-->
<!--android:scheme="https"/>-->
2017-06-09 16:21:05 +02:00
<!--</intent-filter>-->
2017-05-06 08:10:05 +02:00
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
2017-05-06 08:10:05 +02:00
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
2017-05-06 08:10:05 +02:00
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
2017-05-06 08:10:05 +02:00
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="video/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="video/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="audio/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="audio/*" />
</intent-filter>
2017-04-29 22:51:04 +02:00
</activity>
<activity
android:name=".ActPost"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/act_post"
2021-10-27 22:58:19 +02:00
android:windowSoftInputMode="adjustResize">
<!--suppress AndroidElementNotAllowed -->
<layout
android:defaultHeight="480dp"
2021-10-27 22:58:19 +02:00
android:defaultWidth="320dp"
android:gravity="center"
android:minHeight="64dp"
2021-10-27 22:58:19 +02:00
android:minWidth="64dp"
tools:ignore="UnusedAttribute" />
</activity>
<activity
android:name=".ActAccountSetting"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/account_setting"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity
android:name=".ActAppSetting"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/app_setting"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity
android:name=".ActColumnList"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/column_list"
android:windowSoftInputMode="adjustResize" />
2021-10-27 22:58:19 +02:00
<activity
android:name=".ActAbout"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/app_about" />
2017-04-27 11:15:14 +02:00
<activity
2024-03-17 11:05:30 +01:00
android:name=".ui.ossLicense.ActOSSLicense"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/oss_license" />
2017-04-27 11:15:14 +02:00
<activity
2017-04-29 22:51:04 +02:00
android:name=".ActMutedApp"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/muted_app" />
2021-10-27 22:58:19 +02:00
2017-05-08 03:16:43 +02:00
<activity
android:name=".ActMutedPseudoAccount"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/muted_users_from_pseudo_account" />
<activity
2017-05-08 03:16:43 +02:00
android:name=".ActMutedWord"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/muted_word" />
2018-01-03 23:53:37 +01:00
<activity
android:name=".ActFavMute"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/fav_muted_user_long" />
<activity
android:name=".ActKeywordFilter"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/keyword_filter_new"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
2018-01-03 23:53:37 +01:00
<activity
android:name=".ActHighlightWordList"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/highlight_word" />
2021-10-27 22:58:19 +02:00
2018-01-03 23:53:37 +01:00
<activity
android:name=".ActHighlightWordEdit"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/highlight_word" />
2018-01-03 23:53:37 +01:00
<activity
android:name=".ActColumnCustomize"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/color_and_background"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
2019-12-13 15:48:38 +01:00
<activity
android:name=".ActLanguageFilter"
2021-10-27 22:58:19 +02:00
android:exported="false"
2019-12-13 15:48:38 +01:00
android:label="@string/language_filter"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity
android:name=".ActDrawableList"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/drawable_list"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity
android:name=".ActNickname"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/acct_customize"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
2017-05-08 03:16:43 +02:00
<activity
android:name=".ActText"
2021-10-27 22:58:19 +02:00
android:exported="false"
2017-05-08 03:16:43 +02:00
android:label="@string/select_and_copy"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity
android:name=".ActMediaViewer"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:theme="@style/AppTheme.Dark" />
<activity
android:name=".ActExitReasons"
2021-10-27 22:58:19 +02:00
android:exported="false"
android:label="@string/exit_reasons"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity
android:name="jp.juggler.subwaytooter.ActPushMessageList"
android:exported="false"
android:label="@string/push_message_history" />
<activity
android:name="jp.juggler.subwaytooter.ActAlert"
android:exported="false"
android:label="@string/alert" />
<activity
android:name="jp.juggler.subwaytooter.ActGlideTest"
android:exported="false"
android:label="@string/glide_test" />
<meta-data
android:name="android.max_aspect"
android:value="100.0" />
2021-10-27 22:58:19 +02:00
<meta-data
android:name="android.allow_multiple_resumed_activities"
android:value="true" />
<provider
2019-02-15 02:51:22 +01:00
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.FileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_provider_path" />
</provider>
2021-10-27 22:58:19 +02:00
<receiver
android:name=".EventReceiver"
android:exported="true">
<intent-filter>
2021-10-27 22:58:19 +02:00
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.ACTION_MY_PACKAGE_REPLACED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
2021-10-27 22:58:19 +02:00
</receiver>
2021-10-27 22:58:19 +02:00
<receiver
android:name=".DownloadReceiver"
android:exported="true">
<intent-filter>
2021-10-27 22:58:19 +02:00
<action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED" />
<action android:name="android.intent.action.DOWNLOAD_COMPLETE" />
</intent-filter>
2021-10-27 22:58:19 +02:00
</receiver>
2021-11-20 13:16:56 +01:00
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
android:exported="false"
tools:node="merge">
<meta-data
android:name="jp.juggler.subwaytooter.pref.LazyContextInitializer"
android:value="androidx.startup" />
<meta-data
android:name="jp.juggler.subwaytooter.pref.PrefDeviceInitializer"
android:value="androidx.startup" />
<meta-data
android:name="jp.juggler.subwaytooter.notification.NotificationChannelsInitializer"
android:value="androidx.startup" />
<meta-data
android:name="jp.juggler.subwaytooter.table.AppDatabaseHolderIniitalizer"
2021-11-20 13:16:56 +01:00
android:value="androidx.startup" />
</provider>
<receiver
android:name=".push.UpMessageReceiver"
android:exported="true"
tools:ignore="ExportedReceiver">
<intent-filter>
<action android:name="org.unifiedpush.android.connector.MESSAGE" />
<action android:name="org.unifiedpush.android.connector.UNREGISTERED" />
<action android:name="org.unifiedpush.android.connector.NEW_ENDPOINT" />
<action android:name="org.unifiedpush.android.connector.REGISTRATION_REFUSED" />
</intent-filter>
</receiver>
<receiver android:name="jp.juggler.subwaytooter.notification.NotificationDeleteReceiver" />
<service
android:name="androidx.work.impl.foreground.SystemForegroundService"
android:foregroundServiceType="dataSync"
tools:node="merge" />
2017-04-20 18:23:59 +02:00
</application>
2021-10-27 22:58:19 +02:00
</manifest>