File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/src/main/java/tech/httptoolkit/android Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments