From 325a706840cdef141cb59cbd8cfb8f3c96346b7e Mon Sep 17 00:00:00 2001 From: MajorTanya <39014446+MajorTanya@users.noreply.github.com> Date: Sun, 2 Feb 2025 16:54:55 +0100 Subject: [PATCH] Add Infinix system app to list of invalid browsers (#1684) * Add Infinix system app to list of invalid browsers `com.transsion.resolver` being picked by the system as a suitable browser caused a Mihon user with an Infinix device to be unable to open any links in browsers, including tracker login and opening a WebView page in a real browser. Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com> * Add docstring to DeviceUtil.invalidDefaultBrowsers --------- Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com> (cherry picked from commit bfc8320aa4720dc3b908aab1b8a1ffb99d43193b) # Conflicts: # CHANGELOG.md --- .../eu/kanade/tachiyomi/util/system/DeviceUtil.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core/common/src/main/kotlin/eu/kanade/tachiyomi/util/system/DeviceUtil.kt b/core/common/src/main/kotlin/eu/kanade/tachiyomi/util/system/DeviceUtil.kt index 821545760..532772736 100644 --- a/core/common/src/main/kotlin/eu/kanade/tachiyomi/util/system/DeviceUtil.kt +++ b/core/common/src/main/kotlin/eu/kanade/tachiyomi/util/system/DeviceUtil.kt @@ -62,11 +62,25 @@ object DeviceUtil { } } + /** + * A list of package names that may be incorrectly resolved as usable browsers by + * the system. + * + * If these are resolved for [android.content.Intent.ACTION_VIEW], it prevents the + * system from opening a proper browser or any usable app . + * + * Some of them may only be present on certain manufacturer's devices. + */ val invalidDefaultBrowsers = listOf( "android", + // Honor "com.hihonor.android.internal.app", + // Huawei "com.huawei.android.internal.app", + // Lenovo "com.zui.resolver", + // Infinix + "com.transsion.resolver", ) /**