Cotton code
46 lines · 2.8 KB · HTMLRaw
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools">    <!-- The phone's own library (assets/design/albums/RESEARCH.md "Android"): photos and videos on Android 13+, with         Android 14's partial access (the person picks some); the one storage permission before Android 13. -->    <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_VISUAL_USER_SELECTED" />    <uses-permission        android:name="android.permission.READ_EXTERNAL_STORAGE"        android:maxSdkVersion="32" />    <!-- Media management (Settings > Apps > Special app access > Media management apps, Android 12+): granted by the         person, it lets the Bin's trash requests through without the system's dialog each time. -->    <uses-permission android:name="android.permission.MANAGE_MEDIA" />    <!-- The first pass looks at every photo in the foreground (AnalysisWorker): mediaProcessing on Android 15+,         dataSync on 10 to 14, each capped by Android at 6 hours a day. -->    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROCESSING" />    <application android:name="com.cottondb.albums.AlbumsApplication">        <activity            android:name="com.cottondb.albums.MainActivity"            android:exported="true"            android:launchMode="singleTask"            android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden|uiMode|density|fontScale"            android:windowSoftInputMode="adjustResize">            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>            <!-- The app's own links (${urlScheme}://): the core says what each opens (link.open). -->            <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:scheme="${urlScheme}" />            </intent-filter>        </activity>        <!-- The pass stands in the foreground through WorkManager's own service, with both types it may ask. -->        <service            android:name="androidx.work.impl.foreground.SystemForegroundService"            android:foregroundServiceType="dataSync|mediaProcessing"            tools:node="merge" />    </application></manifest>