fix: the store sign-in WebView cannot read local files or content URIs (#890)

The sign-in pages are ordinary web pages. file access and content access
default to on below targetSdk 30, so switch both off explicitly.

Co-authored-by: ovurrsl <ovurrsl@users.noreply.github.com>
This commit is contained in:
Resul Övürandovurrsl authored and GitHub committed 2026-10-16 09:50:21 -04:00
1 parent d573b60e4c
commit 631213728c
1 file changed
+3
@@ -171,6 +171,9 @@ class StoreLoginActivity : ComponentActivity() {
setBackgroundColor(0xFF0A0B0D.toInt())
settings.javaScriptEnabled = true
settings.domStorageEnabled = true
// Store sign-in pages are web pages; they never need to read local files or content:// URIs.
settings.allowFileAccess = false
settings.allowContentAccess = false
settings.userAgentString = userAgent
settings.setSupportMultipleWindows(true)
settings.javaScriptCanOpenWindowsAutomatically = true