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? {
612
612
" com.android.browser" , // <= Android 2.3
613
613
" com.google.android.browser" , // > 2.3, < 4.0.2
614
614
" 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
617
618
)
618
619
619
620
// If the default browser is supported, just use that, easy
@@ -623,6 +624,7 @@ private fun getTestBrowserPackage(context: Context): String? {
623
624
return defaultBrowser
624
625
}
625
626
627
+ // If not, use the first browser in the list above that's installed, or return null
626
628
return supportedBrowsers.firstOrNull { packageName ->
627
629
isPackageAvailable(context, packageName)
628
630
}
You can’t perform that action at this time.
0 commit comments