From 9a7d1b61438b2c19422a702e1f4b0e75f71a585d Mon Sep 17 00:00:00 2001
From: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com>
Date: Tue, 19 May 2026 15:58:12 +0700
Subject: [PATCH] Fix ANR while installing extensions (#1652)
Update foreground service type for ExtensionInstallService to dataSync
---
app/src/main/AndroidManifest.xml | 2 +-
.../extension/util/ExtensionInstallService.kt | 19 ++++++++++++++++++-
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index bfe5a748a..b72704c99 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -241,7 +241,7 @@
+ android:foregroundServiceType="dataSync" />
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
+ startForeground(
+ Notifications.ID_EXTENSION_INSTALLER,
+ notification,
+ ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC,
+ )
+ } else {
+ // KMK <--
+ startForeground(Notifications.ID_EXTENSION_INSTALLER, notification)
+ }
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {