Skip to content

Commit 5853efd

Browse files
committed
Add Samsung Internet to the list of user-trusting browsers
1 parent 2149236 commit 5853efd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/tech/httptoolkit/android/MainActivity.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,9 @@ private fun getTestBrowserPackage(context: Context): String? {
612612
"com.android.browser", // <= Android 2.3
613613
"com.google.android.browser", // > 2.3, < 4.0.2
614614
"com.brave.browser", // Brave
615-
"com.microsoft.emmx" // Edge
616-
// FF, Opera & others don't trust user CAs by default, so we avoid them for testing
615+
"com.microsoft.emmx", // Edge
616+
"com.sec.android.app.sbrowser" // Samsung browser
617+
// FF/Opera/UC Browser & others don't trust user CAs by default, so we avoid them for testing
617618
)
618619

619620
// If the default browser is supported, just use that, easy
@@ -623,6 +624,7 @@ private fun getTestBrowserPackage(context: Context): String? {
623624
return defaultBrowser
624625
}
625626

627+
// If not, use the first browser in the list above that's installed, or return null
626628
return supportedBrowsers.firstOrNull { packageName ->
627629
isPackageAvailable(context, packageName)
628630
}

0 commit comments

Comments
 (0)