M3: operations engine (copy/move/delete, progress, cancellation, conflicts) + foreground service
This commit is contained in:
@@ -39,6 +39,15 @@
|
||||
android:maxSdkVersion="29"
|
||||
tools:ignore="ScopedStorage" />
|
||||
|
||||
<!--
|
||||
Long file operations keep running while the app is backgrounded. `dataSync` is the
|
||||
foreground-service type that matches "user-initiated data processing".
|
||||
-->
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||||
<!-- Android 13+: shows the operation progress notification (optional, never required). -->
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
<application
|
||||
android:name=".FileManagerApplication"
|
||||
android:allowBackup="true"
|
||||
@@ -61,6 +70,15 @@
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!--
|
||||
No copy logic lives here: it mirrors the engine's progress into an ongoing
|
||||
notification and keeps the process alive during a long operation.
|
||||
-->
|
||||
<service
|
||||
android:name=".service.FileOpService"
|
||||
android:exported="false"
|
||||
android:foregroundServiceType="dataSync" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
||||
Reference in New Issue
Block a user