AndroidManifest.xml

8.5 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    <!-- mDNS/NSD peer discovery for the C7 LAN sync transport -->18    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />19    <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />20    <uses-permission android:name="android.permission.VIBRATE" />21    <uses-permission android:name="android.permission.USE_BIOMETRIC" />22    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />23    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />24    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />25    <!-- Android 14+ requires the specific type alongside the generic permission. -->26    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />27    <!-- Doze defers network work even for a foreground service, which would make28         an already-paired browser's reconnect time out with no visible cause.29         Play-policy-restricted: only ever requested from an explicit user tap, and30         never required — see the distribution note in sync/BatteryExemption.kt. -->31    <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />32    <uses-permission android:name="android.permission.CAMERA" />33    <!-- Peach ships outside the Play Store, so it installs its own updates via the34         system package installer. Still gated per-app by the user's "install unknown35         apps" grant — this permission only makes the ask possible. -->36    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />37    <uses-feature android:name="android.hardware.camera.any" android:required="false" />3839    <application40        android:name=".PeachApplication"41        android:allowBackup="false"42        android:fullBackupContent="@xml/backup_rules"43        android:dataExtractionRules="@xml/data_extraction_rules"44        android:icon="@mipmap/ic_launcher"45        android:label="@string/app_name"46        android:roundIcon="@mipmap/ic_launcher_round"47        android:supportsRtl="true"48        android:theme="@style/Theme.Peach.Splash">4950        <activity51            android:name=".MainActivity"52            android:exported="true"53            android:launchMode="singleTask"54            android:screenOrientation="unspecified"55            android:enableOnBackInvokedCallback="true"56            android:theme="@style/Theme.Peach">57            <intent-filter>58                <action android:name="android.intent.action.MAIN" />59                <category android:name="android.intent.category.LAUNCHER" />60            </intent-filter>61            <meta-data62                android:name="android.app.shortcuts"63                android:resource="@xml/shortcuts" />64        </activity>6566        <activity67            android:name=".ui.lock.BiometricUnlockActivity"68            android:exported="false"69            android:theme="@style/Theme.Peach" />7071        <activity72            android:name=".autofill.AutofillEntryPickerActivity"73            android:exported="false"74            android:excludeFromRecents="true"75            android:theme="@style/Theme.Peach.Transparent" />7677        <activity78            android:name=".passkeys.PasskeyCredentialSelectionActivity"79            android:exported="false"80            android:excludeFromRecents="true"81            android:theme="@style/Theme.Peach.Transparent" />8283        <activity84            android:name=".credentials.PasswordCredentialSelectionActivity"85            android:exported="false"86            android:excludeFromRecents="true"87            android:theme="@style/Theme.Peach.Transparent" />8889        <activity90            android:name=".credentials.CredentialProviderUnlockActivity"91            android:exported="false"92            android:excludeFromRecents="true"93            android:theme="@style/Theme.Peach.Transparent" />9495        <!-- WorkManager is initialized on demand by PeachApplication (Configuration.Provider)96             so the update worker can be Hilt-injected; its default auto-initializer would97             race that and build a factory-less WorkManager first. -->98        <provider99            android:name="androidx.startup.InitializationProvider"100            android:authorities="${applicationId}.androidx-startup"101            android:exported="false"102            tools:node="merge">103            <meta-data104                android:name="androidx.work.WorkManagerInitializer"105                android:value="androidx.startup"106                tools:node="remove" />107        </provider>108109        <provider110            android:name="androidx.core.content.FileProvider"111            android:authorities="${applicationId}.fileprovider"112            android:exported="false"113            android:grantUriPermissions="true">114            <meta-data115                android:name="android.support.FILE_PROVIDER_PATHS"116                android:resource="@xml/file_paths" />117        </provider>118119        <!-- Keeps the phone dialable for sync; a browser extension can never120             listen, so this side has to stay reachable. -->121        <service122            android:name=".sync.PeachSyncService"123            android:exported="false"124            android:foregroundServiceType="dataSync" />125126        <receiver127            android:name=".sync.SyncNotificationDismissedReceiver"128            android:exported="false" />129130        <receiver131            android:name=".sync.BootReceiver"132            android:exported="false">133            <intent-filter>134                <action android:name="android.intent.action.BOOT_COMPLETED" />135            </intent-filter>136        </receiver>137138        <service139            android:name=".autofill.PeachAutofillService"140            android:permission="android.permission.BIND_AUTOFILL_SERVICE"141            android:exported="true"142            android:label="@string/autofill_service_label"143            android:settingsActivity=".MainActivity">144            <intent-filter>145                <action android:name="android.service.autofill.AutofillService" />146            </intent-filter>147            <meta-data148                android:name="android.autofill"149                android:resource="@xml/autofill_service_config" />150        </service>151152        <service153            android:name=".passkeys.PeachCredentialProviderService"154            android:permission="android.permission.BIND_CREDENTIAL_PROVIDER_SERVICE"155            android:exported="true"156            tools:targetApi="34">157            <intent-filter>158                <action android:name="android.service.credentials.CredentialProviderService" />159            </intent-filter>160            <meta-data161                android:name="android.credentials.provider"162                android:resource="@xml/credential_provider_config" />163        </service>164165        <service166            android:name=".qs.PeachTileService"167            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"168            android:exported="true">169            <intent-filter>170                <action android:name="android.service.quicksettings.action.QS_TILE" />171            </intent-filter>172        </service>173174        <receiver175            android:name=".widget.PeachSmallWidgetReceiver"176            android:exported="true">177            <intent-filter>178                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />179            </intent-filter>180            <meta-data181                android:name="android.appwidget.provider"182                android:resource="@xml/peach_small_widget_info" />183        </receiver>184185        <receiver186            android:name=".widget.PeachMediumWidgetReceiver"187            android:exported="true">188            <intent-filter>189                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />190            </intent-filter>191            <meta-data192                android:name="android.appwidget.provider"193                android:resource="@xml/peach_medium_widget_info" />194        </receiver>195196    </application>197</manifest>