diff --git a/source/core/service/src/main/AndroidManifest.xml b/source/core/service/src/main/AndroidManifest.xml
index 363e635093..baae2d614f 100644
--- a/source/core/service/src/main/AndroidManifest.xml
+++ b/source/core/service/src/main/AndroidManifest.xml
@@ -3,47 +3,47 @@
-
+
+ android:foregroundServiceType="dataSync" />
+ android:foregroundServiceType="dataSync" />
+ android:foregroundServiceType="dataSync" />
+ android:foregroundServiceType="dataSync" />
+ android:foregroundServiceType="dataSync" />
+ android:foregroundServiceType="dataSync" />
+ android:foregroundServiceType="dataSync" />
+ android:foregroundServiceType="dataSync" />
\ No newline at end of file
diff --git a/source/core/service/src/main/kotlin/com/xayah/core/service/AbstractProcessingService.kt b/source/core/service/src/main/kotlin/com/xayah/core/service/AbstractProcessingService.kt
index 3cae24ca10..2b81650cc1 100644
--- a/source/core/service/src/main/kotlin/com/xayah/core/service/AbstractProcessingService.kt
+++ b/source/core/service/src/main/kotlin/com/xayah/core/service/AbstractProcessingService.kt
@@ -4,7 +4,7 @@ import android.annotation.SuppressLint
import android.app.Service
import android.content.Context
import android.content.Intent
-import android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE
+import android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
import android.os.Binder
import android.os.Build
import android.os.IBinder
@@ -36,7 +36,7 @@ import kotlinx.coroutines.sync.withLock
internal abstract class AbstractProcessingService : Service() {
override fun onBind(intent: Intent): IBinder {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
- startForeground(1, NotificationUtil.getForegroundNotification(applicationContext), FOREGROUND_SERVICE_TYPE_SPECIAL_USE)
+ startForeground(1, NotificationUtil.getForegroundNotification(applicationContext), FOREGROUND_SERVICE_TYPE_DATA_SYNC)
} else {
startForeground(1, NotificationUtil.getForegroundNotification(applicationContext))
}
diff --git a/source/core/util/src/main/kotlin/com/xayah/core/util/NotificationUtil.kt b/source/core/util/src/main/kotlin/com/xayah/core/util/NotificationUtil.kt
index bc7408bcf6..31c8381b8e 100644
--- a/source/core/util/src/main/kotlin/com/xayah/core/util/NotificationUtil.kt
+++ b/source/core/util/src/main/kotlin/com/xayah/core/util/NotificationUtil.kt
@@ -7,7 +7,7 @@ import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
-import android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE
+import android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
import android.net.Uri
import android.os.Build
import android.provider.Settings
@@ -119,7 +119,7 @@ object NotificationUtil {
createChannelIfNecessary(context)
val notification = builder.setContentTitle(title).setContentText(content).setProgress(max, progress, indeterminate).setOngoing(ongoing)
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
- ForegroundInfo(progressNotificationId, notification.build(), FOREGROUND_SERVICE_TYPE_SPECIAL_USE)
+ ForegroundInfo(progressNotificationId, notification.build(), FOREGROUND_SERVICE_TYPE_DATA_SYNC)
} else {
ForegroundInfo(progressNotificationId, notification.build())
}
@@ -135,7 +135,7 @@ object NotificationUtil {
createChannelIfNecessary(context)
val notification = builder.setContentTitle(title).setContentText(content).setOngoing(ongoing)
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
- ForegroundInfo(progressNotificationId, notification.build(), FOREGROUND_SERVICE_TYPE_SPECIAL_USE)
+ ForegroundInfo(progressNotificationId, notification.build(), FOREGROUND_SERVICE_TYPE_DATA_SYNC)
} else {
ForegroundInfo(progressNotificationId, notification.build())
}