summaryrefslogtreecommitdiff
path: root/src/org/lineageos/updater/ExportUpdateService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/lineageos/updater/ExportUpdateService.java')
-rw-r--r--src/org/lineageos/updater/ExportUpdateService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/lineageos/updater/ExportUpdateService.java b/src/org/lineageos/updater/ExportUpdateService.java
index 1c72ad2..4403d7f 100644
--- a/src/org/lineageos/updater/ExportUpdateService.java
+++ b/src/org/lineageos/updater/ExportUpdateService.java
@@ -20,6 +20,7 @@ import android.app.NotificationManager;
import android.app.Service;
import android.content.ContentResolver;
import android.content.Intent;
+import android.content.pm.ServiceInfo;
import android.net.Uri;
import android.os.IBinder;
import android.os.SystemClock;
@@ -156,7 +157,8 @@ public class ExportUpdateService extends Service {
}
};
- startForeground(NOTIFICATION_ID, notificationBuilder.build());
+ startForeground(NOTIFICATION_ID, notificationBuilder.build(),
+ ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE);
notificationManager.notify(NOTIFICATION_ID, notificationBuilder.build());
Runnable runnableComplete = () -> {