AndroidManifest.xml

8.1 KB · raw

1<?xml version="1.0" encoding="utf-8"?>2<manifest xmlns:android="http://schemas.android.com/apk/res/android"3    xmlns:tools="http://schemas.android.com/tools">45    <!-- Autofill verifies the signing certificate of whichever browser owns6         the framework AssistStructure. Android 11+ filters PackageManager7         lookups unless that browser role is declared visible. -->8    <queries>9        <intent>10            <action android:name="android.intent.action.VIEW" />11            <category android:name="android.intent.category.BROWSABLE" />12            <data android:scheme="https" />13        </intent>14    </queries>1516    <uses-permission android:name="android.permission.INTERNET" />17    <uses-permission android:name="android.permission.VIBRATE" />18    <uses-permission android:name="android.permission.USE_BIOMETRIC" />19    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />20    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />21    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />22    <!-- Android 14+ requires the specific type alongside the generic permission. -->23    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />24    <!-- Doze defers network work even for a foreground service, which would make25         an already-paired browser's reconnect time out with no visible cause.26         Play-policy-restricted: only ever requested from an explicit user tap, and27         never required — see the distribution note in sync/BatteryExemption.kt. -->28    <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />29    <uses-permission android:name="android.permission.CAMERA" />30    <!-- Peach ships outside the Play Store, so it installs its own updates via the31         system package installer. Still gated per-app by the user's "install unknown32         apps" grant — this permission only makes the ask possible. -->33    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />34    <uses-feature android:name="android.hardware.camera.any" android:required="false" />3536    <application37        android:name=".PeachApplication"38        android:allowBackup="false"39        android:fullBackupContent="@xml/backup_rules"40        android:dataExtractionRules="@xml/data_extraction_rules"41        android:icon="@mipmap/ic_launcher"42        android:label="@string/app_name"43        android:roundIcon="@mipmap/ic_launcher_round"44        android:supportsRtl="true"45        android:theme="@style/Theme.Peach.Splash">4647        <activity48            android:name=".MainActivity"49            android:exported="true"50            android:launchMode="singleTask"51            android:screenOrientation="unspecified"52            android:enableOnBackInvokedCallback="true"53            android:theme="@style/Theme.Peach">54            <intent-filter>55                <action android:name="android.intent.action.MAIN" />56                <category android:name="android.intent.category.LAUNCHER" />57            </intent-filter>58            <meta-data59                android:name="android.app.shortcuts"60                android:resource="@xml/shortcuts" />61        </activity>626364        <activity65            android:name=".autofill.AutofillEntryPickerActivity"66            android:exported="false"67            android:excludeFromRecents="true"68            android:theme="@style/Theme.Peach.Transparent" />6970        <activity71            android:name=".passkeys.PasskeyCredentialSelectionActivity"72            android:exported="false"73            android:excludeFromRecents="true"74            android:theme="@style/Theme.Peach.Transparent" />7576        <activity77            android:name=".credentials.PasswordCredentialSelectionActivity"78            android:exported="false"79            android:excludeFromRecents="true"80            android:theme="@style/Theme.Peach.Transparent" />8182        <activity83            android:name=".credentials.CredentialProviderUnlockActivity"84            android:exported="false"85            android:excludeFromRecents="true"86            android:theme="@style/Theme.Peach.Transparent" />8788        <!-- WorkManager is initialized on demand by PeachApplication (Configuration.Provider)89             so the update worker can be Hilt-injected; its default auto-initializer would90             race that and build a factory-less WorkManager first. -->91        <provider92            android:name="androidx.startup.InitializationProvider"93            android:authorities="${applicationId}.androidx-startup"94            android:exported="false"95            tools:node="merge">96            <meta-data97                android:name="androidx.work.WorkManagerInitializer"98                android:value="androidx.startup"99                tools:node="remove" />100        </provider>101102        <provider103            android:name="androidx.core.content.FileProvider"104            android:authorities="${applicationId}.fileprovider"105            android:exported="false"106            android:grantUriPermissions="true">107            <meta-data108                android:name="android.support.FILE_PROVIDER_PATHS"109                android:resource="@xml/file_paths" />110        </provider>111112        <!-- Keeps the phone dialable for sync; a browser extension can never113             listen, so this side has to stay reachable. -->114        <service115            android:name=".sync.PeachSyncService"116            android:exported="false"117            android:foregroundServiceType="dataSync" />118119        <receiver120            android:name=".sync.SyncNotificationDismissedReceiver"121            android:exported="false" />122123        <receiver124            android:name=".sync.BootReceiver"125            android:exported="false">126            <intent-filter>127                <action android:name="android.intent.action.BOOT_COMPLETED" />128            </intent-filter>129        </receiver>130131        <service132            android:name=".autofill.PeachAutofillService"133            android:permission="android.permission.BIND_AUTOFILL_SERVICE"134            android:exported="true"135            android:label="@string/autofill_service_label"136            android:settingsActivity=".MainActivity">137            <intent-filter>138                <action android:name="android.service.autofill.AutofillService" />139            </intent-filter>140            <meta-data141                android:name="android.autofill"142                android:resource="@xml/autofill_service_config" />143        </service>144145        <service146            android:name=".passkeys.PeachCredentialProviderService"147            android:permission="android.permission.BIND_CREDENTIAL_PROVIDER_SERVICE"148            android:exported="true"149            tools:targetApi="34">150            <intent-filter>151                <action android:name="android.service.credentials.CredentialProviderService" />152            </intent-filter>153            <meta-data154                android:name="android.credentials.provider"155                android:resource="@xml/credential_provider_config" />156        </service>157158        <service159            android:name=".qs.PeachTileService"160            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"161            android:exported="true">162            <intent-filter>163                <action android:name="android.service.quicksettings.action.QS_TILE" />164            </intent-filter>165        </service>166167        <receiver168            android:name=".widget.PeachSmallWidgetReceiver"169            android:exported="true">170            <intent-filter>171                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />172            </intent-filter>173            <meta-data174                android:name="android.appwidget.provider"175                android:resource="@xml/peach_small_widget_info" />176        </receiver>177178        <receiver179            android:name=".widget.PeachMediumWidgetReceiver"180            android:exported="true">181            <intent-filter>182                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />183            </intent-filter>184            <meta-data185                android:name="android.appwidget.provider"186                android:resource="@xml/peach_medium_widget_info" />187        </receiver>188189    </application>190</manifest>