From a159551d058606a673b14c5568aa72cf538f9934 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 27 Oct 2026 18:17:47 +0100 Subject: web: allow any file type in the image picker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MediaProvider only redacts GPS EXIF in files it indexes as images. A copy renamed to a non-image extension (or under a .nomedia folder) reaches the browser untouched — an all-files picker makes that route usable on GrapheneOS/AOSP where browsers cannot hold ACCESS_MEDIA_LOCATION. --- wipfel-droid/app/src/main/AndroidManifest.xml | 25 +++++ .../main/kotlin/org/flpsed/wipfel/AssetServer.kt | 102 +++++++++++++++++++ .../main/kotlin/org/flpsed/wipfel/MainActivity.kt | 110 +++++++++++++++++++++ .../src/main/res/xml/network_security_config.xml | 11 +++ 4 files changed, 248 insertions(+) create mode 100644 wipfel-droid/app/src/main/AndroidManifest.xml create mode 100644 wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/AssetServer.kt create mode 100644 wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt create mode 100644 wipfel-droid/app/src/main/res/xml/network_security_config.xml (limited to 'wipfel-droid/app/src') diff --git a/wipfel-droid/app/src/main/AndroidManifest.xml b/wipfel-droid/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..34c56d8 --- /dev/null +++ b/wipfel-droid/app/src/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + diff --git a/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/AssetServer.kt b/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/AssetServer.kt new file mode 100644 index 0000000..8f11f50 --- /dev/null +++ b/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/AssetServer.kt @@ -0,0 +1,102 @@ +package org.flpsed.wipfel + +import java.io.ByteArrayOutputStream +import java.io.IOException +import java.io.InputStream +import java.io.OutputStream +import java.net.ServerSocket +import java.net.Socket +import kotlin.concurrent.thread + +/** + * Minimal loopback HTTP server that serves the bundled assets. + * + * The WebView refuses fetch() on file:// origins, and WASM streaming + * instantiation needs a real HTTP origin, so we serve the site from + * 127.0.0.1 on an ephemeral port. Loopback only; nothing is exposed. + */ +class AssetServer(private val assetManager: android.content.res.AssetManager) : AutoCloseable { + private val server = ServerSocket(0, 4, java.net.InetAddress.getByName("127.0.0.1")) + val port: Int get() = server.localPort + + @Volatile + private var running = true + + init { + thread(isDaemon = true, name = "wipfel-http") { + while (running) { + try { + val socket = server.accept() + thread(isDaemon = true) { handle(socket) } + } catch (_: IOException) { + running = false + } + } + } + } + + private fun handle(socket: Socket) { + socket.use { s -> + try { + val input = s.getInputStream() + val requestLine = input.readLine() ?: return + val path = requestLine.split(" ").getOrNull(1) ?: "/" + // read (and ignore) the remaining headers so the client is happy + while (true) { + val line = input.readLine() ?: break + if (line.isEmpty()) break + } + val asset = if (path == "/" || path == "/index.html") "www/index.html" + else "www/" + path.trimStart('/') + val data = try { + assetManager.open(asset).use { it.readBytes() } + } catch (_: IOException) { + respond(s, 404, "text/plain", "not found".toByteArray()) + return + } + respond(s, 200, mime(asset), data) + } catch (_: IOException) { + } + } + } + + private fun respond(s: Socket, code: Int, ctype: String, body: ByteArray) { + val out: OutputStream = s.getOutputStream() + val header = buildString { + append("HTTP/1.1 $code OK\r\n") + append("Content-Type: $ctype\r\n") + append("Content-Length: ${body.size}\r\n") + append("Cache-Control: no-cache\r\n") + append("Access-Control-Allow-Origin: *\r\n") + append("Connection: close\r\n") + append("\r\n") + } + out.write(header.toByteArray()) + out.write(body) + out.flush() + } + + private fun mime(path: String): String = when { + path.endsWith(".wasm") -> "application/wasm" + path.endsWith(".js") -> "application/javascript" + path.endsWith(".css") -> "text/css" + path.endsWith(".html") -> "text/html" + path.endsWith(".gz") -> "application/gzip" + else -> "application/octet-stream" + } + + private fun InputStream.readLine(): String? { + val buf = ByteArrayOutputStream(64) + while (true) { + val b = read() + if (b == -1) return if (buf.size() == 0) null else buf.toString("ISO-8859-1") + if (b == '\n'.code) return buf.toString("ISO-8859-1").trimEnd('\r') + buf.write(b) + } + } + + override fun close() { + running = false + try { server.close() } catch (_: IOException) {} + } +} diff --git a/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt b/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt new file mode 100644 index 0000000..8a62a4a --- /dev/null +++ b/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt @@ -0,0 +1,110 @@ +package org.flpsed.wipfel + +import android.Manifest +import android.app.Activity +import android.content.Intent +import android.content.pm.PackageManager +import android.net.Uri +import android.os.Bundle +import android.webkit.ValueCallback +import android.webkit.WebChromeClient +import android.webkit.WebView +import android.webkit.WebViewClient + +class MainActivity : Activity() { + + private lateinit var web: WebView + private var server: AssetServer? = null + private var filePathCallback: ValueCallback>? = null + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + + web = WebView(this) + setContentView(web) + with(web.settings) { + javaScriptEnabled = true + domStorageEnabled = true // localStorage: profiles & settings + useWideViewPort = true // honour the viewport meta tag + loadWithOverviewMode = true + mediaPlaybackRequiresUserGesture = false + } + web.webViewClient = WebViewClient() + web.webChromeClient = object : WebChromeClient() { + override fun onShowFileChooser( + view: WebView, + callback: ValueCallback>, + params: FileChooserParams + ): Boolean { + filePathCallback?.onReceiveValue(null) + filePathCallback = callback + // params.createIntent() carries the accept="image/*" filter + startActivityForResult(params.createIntent(), REQ_FILE) + return true + } + } + + val srv = AssetServer(assets) + server = srv + web.loadUrl("http://127.0.0.1:${srv.port}/index.html") + + requestMediaPermissions() + } + + /** + * The reason this wrapper exists: with ACCESS_MEDIA_LOCATION granted the + * OS hands us the ORIGINAL files (GPS EXIF intact) instead of the + * location-redacted copies browsers are forced to see. + */ + private fun requestMediaPermissions() { + val needed = listOf( + Manifest.permission.READ_MEDIA_IMAGES, + Manifest.permission.ACCESS_MEDIA_LOCATION + ).filter { checkSelfPermission(it) != PackageManager.PERMISSION_GRANTED } + if (needed.isNotEmpty()) { + requestPermissions(needed.toTypedArray(), REQ_PERMS) + } + } + + override fun onRequestPermissionsResult( + requestCode: Int, permissions: Array, grantResults: IntArray + ) { + super.onRequestPermissionsResult(requestCode, permissions, grantResults) + // no special handling: without the grant the app still works, + // the OS just redacts GPS EXIF exactly like in a browser + } + + override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { + if (requestCode == REQ_FILE) { + val cb = filePathCallback + filePathCallback = null + val uris: Array? = if (resultCode == RESULT_OK && data != null) { + val clip = data.clipData + when { + clip != null -> Array(clip.itemCount) { clip.getItem(it).uri } + data.data != null -> arrayOf(data.data!!) + else -> null + } + } else null + cb?.onReceiveValue(uris) + } else { + super.onActivityResult(requestCode, resultCode, data) + } + } + + @Deprecated("Deprecated in Java") + override fun onBackPressed() { + if (web.canGoBack()) web.goBack() else @Suppress("DEPRECATION") super.onBackPressed() + } + + override fun onDestroy() { + server?.close() + web.destroy() + super.onDestroy() + } + + companion object { + private const val REQ_PERMS = 1 + private const val REQ_FILE = 2 + } +} diff --git a/wipfel-droid/app/src/main/res/xml/network_security_config.xml b/wipfel-droid/app/src/main/res/xml/network_security_config.xml new file mode 100644 index 0000000..2434fb8 --- /dev/null +++ b/wipfel-droid/app/src/main/res/xml/network_security_config.xml @@ -0,0 +1,11 @@ + + + + + 127.0.0.1 + localhost + + + -- cgit v1.2.3 From a41c1ff25746874fa5a1eed5e62352a28d7515f9 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 27 Oct 2026 18:28:26 +0100 Subject: wipfel-droid: Android wrapper APK (WebView + ACCESS_MEDIA_LOCATION) Thin wrapper so wipfel can read original photo bytes: browsers cannot declare ACCESS_MEDIA_LOCATION, so the OS always redacts GPS EXIF from images they read. Our own app declares and requests it (plus READ_MEDIA_IMAGES) and gets the intact files. - WebView served from a loopback AssetServer (fetch/WASM need a real HTTP origin; file:// is blocked) - file picker wired through WebChromeClient (accepts any file type) - zero androidx dependencies, plain Activity, minSdk 29 - build.sh: wasm release site -> assets -> assembleDebug (~3MB APK) - loader: fall back to plain gipfel.dat (aapt gunzips .gz assets) --- crates/wipfel/src/app.rs | 8 +++++-- dist/wipfel/wipfel.js | 4 ++-- dist/wipfel/wipfel_bg.wasm | Bin 511878 -> 511473 bytes wipfel-droid/.gitignore | 5 +++++ .../.gradle/8.11.1/checksums/checksums.lock | Bin 17 -> 17 bytes .../.gradle/8.11.1/checksums/md5-checksums.bin | Bin 29647 -> 30197 bytes .../.gradle/8.11.1/checksums/sha1-checksums.bin | Bin 44093 -> 45281 bytes .../8.11.1/executionHistory/executionHistory.bin | Bin 19560 -> 92302 bytes .../8.11.1/executionHistory/executionHistory.lock | Bin 17 -> 17 bytes .../.gradle/8.11.1/fileHashes/fileHashes.bin | Bin 18697 -> 26347 bytes .../.gradle/8.11.1/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../buildOutputCleanup/buildOutputCleanup.lock | Bin 17 -> 17 bytes .../.gradle/buildOutputCleanup/outputFiles.bin | Bin 18695 -> 22259 bytes wipfel-droid/.gradle/file-system.probe | Bin 8 -> 8 bytes .../main/kotlin/org/flpsed/wipfel/MainActivity.kt | 2 +- wipfel-droid/build.sh | 24 +++++++++++++++++++++ wipfel-droid/gradle.properties | 1 + 17 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 wipfel-droid/.gitignore create mode 100755 wipfel-droid/build.sh (limited to 'wipfel-droid/app/src') diff --git a/crates/wipfel/src/app.rs b/crates/wipfel/src/app.rs index 8ae78c4..78961fc 100644 --- a/crates/wipfel/src/app.rs +++ b/crates/wipfel/src/app.rs @@ -220,8 +220,12 @@ pub fn app() -> Html { use_effect_with((), move |_| { spawn_local(async move { let result = async { - let gz = bridge::fetch_bytes("gipfel.dat.gz").await?; - let raw = gunzip(&gz)?; + // aapt gunzips .gz assets, so an APK ships the plain + // gipfel.dat while the web dist ships gipfel.dat.gz + let raw = match bridge::fetch_bytes("gipfel.dat.gz").await { + Ok(gz) => gunzip(&gz)?, + Err(_) => bridge::fetch_bytes("gipfel.dat").await?, + }; pan.borrow_mut() .load_data_from_bytes(&raw) .map_err(|e| format!("load: {e}")) diff --git a/dist/wipfel/wipfel.js b/dist/wipfel/wipfel.js index d312617..e1eedc0 100644 --- a/dist/wipfel/wipfel.js +++ b/dist/wipfel/wipfel.js @@ -605,7 +605,7 @@ function __wbg_get_imports() { return ret; }, __wbindgen_generic_0000000000000002: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array"), NamedExternref("ResizeObserver")], shim_idx: 74, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array"), NamedExternref("ResizeObserver")], shim_idx: 75, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. const ret = makeClosure(arg0, arg1, wasm_bindgen_f1f668f83a5f514b___convert__closures_____invoke___js_sys_351dd7d36d5f7033___Array__web_sys_d6718dd818f67bd6___features__gen_ResizeObserver__ResizeObserver______true_); return ret; }, @@ -615,7 +615,7 @@ function __wbg_get_imports() { return ret; }, __wbindgen_generic_0000000000000004: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 76, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. + // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 77, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. const ret = makeClosure(arg0, arg1, wasm_bindgen_f1f668f83a5f514b___convert__closures_____invoke_______true_); return ret; }, diff --git a/dist/wipfel/wipfel_bg.wasm b/dist/wipfel/wipfel_bg.wasm index 470fd43..3b906d2 100644 Binary files a/dist/wipfel/wipfel_bg.wasm and b/dist/wipfel/wipfel_bg.wasm differ diff --git a/wipfel-droid/.gitignore b/wipfel-droid/.gitignore new file mode 100644 index 0000000..1fed1dc --- /dev/null +++ b/wipfel-droid/.gitignore @@ -0,0 +1,5 @@ +.gradle/ +build/ +app/build/ +local.properties +app/src/main/assets/www/ diff --git a/wipfel-droid/.gradle/8.11.1/checksums/checksums.lock b/wipfel-droid/.gradle/8.11.1/checksums/checksums.lock index 532a57c..2504abf 100644 Binary files a/wipfel-droid/.gradle/8.11.1/checksums/checksums.lock and b/wipfel-droid/.gradle/8.11.1/checksums/checksums.lock differ diff --git a/wipfel-droid/.gradle/8.11.1/checksums/md5-checksums.bin b/wipfel-droid/.gradle/8.11.1/checksums/md5-checksums.bin index 53a3b95..2728bcf 100644 Binary files a/wipfel-droid/.gradle/8.11.1/checksums/md5-checksums.bin and b/wipfel-droid/.gradle/8.11.1/checksums/md5-checksums.bin differ diff --git a/wipfel-droid/.gradle/8.11.1/checksums/sha1-checksums.bin b/wipfel-droid/.gradle/8.11.1/checksums/sha1-checksums.bin index 43f2251..6848c74 100644 Binary files a/wipfel-droid/.gradle/8.11.1/checksums/sha1-checksums.bin and b/wipfel-droid/.gradle/8.11.1/checksums/sha1-checksums.bin differ diff --git a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin index 7a97448..578da20 100644 Binary files a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin and b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin differ diff --git a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock index 62e3db2..23a576d 100644 Binary files a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock and b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock differ diff --git a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin index ab9d95d..d39e551 100644 Binary files a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin and b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin differ diff --git a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock index 15a08b4..8963f7a 100644 Binary files a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock and b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock differ diff --git a/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 023be44..d2bce45 100644 Binary files a/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/wipfel-droid/.gradle/buildOutputCleanup/outputFiles.bin b/wipfel-droid/.gradle/buildOutputCleanup/outputFiles.bin index ffc4b41..6687b95 100644 Binary files a/wipfel-droid/.gradle/buildOutputCleanup/outputFiles.bin and b/wipfel-droid/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/wipfel-droid/.gradle/file-system.probe b/wipfel-droid/.gradle/file-system.probe index 147f004..7fa8b5e 100644 Binary files a/wipfel-droid/.gradle/file-system.probe and b/wipfel-droid/.gradle/file-system.probe differ diff --git a/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt b/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt index 8a62a4a..ae2485d 100644 --- a/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt +++ b/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt @@ -81,7 +81,7 @@ class MainActivity : Activity() { val uris: Array? = if (resultCode == RESULT_OK && data != null) { val clip = data.clipData when { - clip != null -> Array(clip.itemCount) { clip.getItem(it).uri } + clip != null -> Array(clip.itemCount) { clip.getItemAt(it).uri } data.data != null -> arrayOf(data.data!!) else -> null } diff --git a/wipfel-droid/build.sh b/wipfel-droid/build.sh new file mode 100755 index 0000000..c724374 --- /dev/null +++ b/wipfel-droid/build.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# Build the wipfel Android wrapper: wasm site -> assets -> debug APK. +# Requires: wasm32 target + wasm-bindgen (cargo), Android SDK, JDK 17+. +set -euo pipefail +here="$(cd "$(dirname "$0")" && pwd)" +repo="$(cd "$here/.." && pwd)" + +export ANDROID_HOME="${ANDROID_HOME:-$HOME/android-sdk}" +export PATH="$PATH:$HOME/.cargo/bin" + +echo "==> building wipfel release site" +( cd "$repo/crates/wipfel" && ./build-release.sh >/dev/null ) + +echo "==> staging assets" +mkdir -p "$here/app/src/main/assets/www" +rm -f "$here/app/src/main/assets/www/"* +cp "$repo/dist/wipfel/"* "$here/app/src/main/assets/www/" + +echo "==> gradle assembleDebug" +( cd "$here" && ./gradlew assembleDebug --no-daemon -q ) + +apk="$here/app/build/outputs/apk/debug/app-debug.apk" +echo "==> done: $apk ($(stat -c%s "$apk") bytes)" +echo " install: adb install -r $apk" diff --git a/wipfel-droid/gradle.properties b/wipfel-droid/gradle.properties index 589cec0..92851f5 100644 --- a/wipfel-droid/gradle.properties +++ b/wipfel-droid/gradle.properties @@ -1,3 +1,4 @@ org.gradle.jvmargs=-Xmx3g android.useAndroidX=true kotlin.code.style=official +org.gradle.java.home=/home/agent/jdk21 -- cgit v1.2.3 From baaa5e615df53beb2199f562f95490f1796a0557 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 27 Oct 2026 18:46:21 +0100 Subject: wipfel-droid: declare INTERNET permission (needed for loopback sockets) Android returns EPERM on ServerSocket creation without it, even for 127.0.0.1 binds. The app still never contacts any other host. --- .../8.11.1/executionHistory/executionHistory.bin | Bin 92302 -> 92302 bytes .../8.11.1/executionHistory/executionHistory.lock | Bin 17 -> 17 bytes .../.gradle/8.11.1/fileHashes/fileHashes.bin | Bin 26347 -> 26347 bytes .../.gradle/8.11.1/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../buildOutputCleanup/buildOutputCleanup.lock | Bin 17 -> 17 bytes wipfel-droid/.gradle/file-system.probe | Bin 8 -> 8 bytes wipfel-droid/app/src/main/AndroidManifest.xml | 3 +++ 7 files changed, 3 insertions(+) (limited to 'wipfel-droid/app/src') diff --git a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin index 578da20..d79763d 100644 Binary files a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin and b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin differ diff --git a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock index 23a576d..1b760cf 100644 Binary files a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock and b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock differ diff --git a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin index d39e551..ff402a3 100644 Binary files a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin and b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin differ diff --git a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock index 8963f7a..85c5cdc 100644 Binary files a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock and b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock differ diff --git a/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock index d2bce45..ead6db4 100644 Binary files a/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/wipfel-droid/.gradle/file-system.probe b/wipfel-droid/.gradle/file-system.probe index 7fa8b5e..594aded 100644 Binary files a/wipfel-droid/.gradle/file-system.probe and b/wipfel-droid/.gradle/file-system.probe differ diff --git a/wipfel-droid/app/src/main/AndroidManifest.xml b/wipfel-droid/app/src/main/AndroidManifest.xml index 34c56d8..f764e32 100644 --- a/wipfel-droid/app/src/main/AndroidManifest.xml +++ b/wipfel-droid/app/src/main/AndroidManifest.xml @@ -6,6 +6,9 @@ they read. We declare and request it and get the original bytes. --> + + Date: Tue, 27 Oct 2026 18:52:51 +0100 Subject: wipfel-droid: NoActionBar theme, dark webview background The default Activity theme added a framework action bar that covered the app's own chrome; the WebView now fills the window and matches the site background to avoid a white flash. --- .../8.11.1/executionHistory/executionHistory.bin | Bin 92302 -> 104259 bytes .../8.11.1/executionHistory/executionHistory.lock | Bin 17 -> 17 bytes .../.gradle/8.11.1/fileHashes/fileHashes.bin | Bin 26347 -> 26347 bytes .../.gradle/8.11.1/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../buildOutputCleanup/buildOutputCleanup.lock | Bin 17 -> 17 bytes wipfel-droid/.gradle/file-system.probe | Bin 8 -> 8 bytes wipfel-droid/app/src/main/AndroidManifest.xml | 1 + .../main/kotlin/org/flpsed/wipfel/MainActivity.kt | 1 + 8 files changed, 2 insertions(+) (limited to 'wipfel-droid/app/src') diff --git a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin index d79763d..7d5c427 100644 Binary files a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin and b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.bin differ diff --git a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock index 1b760cf..6f3b329 100644 Binary files a/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock and b/wipfel-droid/.gradle/8.11.1/executionHistory/executionHistory.lock differ diff --git a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin index ff402a3..f1e0f60 100644 Binary files a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin and b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.bin differ diff --git a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock index 85c5cdc..4f1516b 100644 Binary files a/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock and b/wipfel-droid/.gradle/8.11.1/fileHashes/fileHashes.lock differ diff --git a/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock index ead6db4..10dd8bd 100644 Binary files a/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/wipfel-droid/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/wipfel-droid/.gradle/file-system.probe b/wipfel-droid/.gradle/file-system.probe index 594aded..dfeb5b0 100644 Binary files a/wipfel-droid/.gradle/file-system.probe and b/wipfel-droid/.gradle/file-system.probe differ diff --git a/wipfel-droid/app/src/main/AndroidManifest.xml b/wipfel-droid/app/src/main/AndroidManifest.xml index f764e32..f045678 100644 --- a/wipfel-droid/app/src/main/AndroidManifest.xml +++ b/wipfel-droid/app/src/main/AndroidManifest.xml @@ -18,6 +18,7 @@ diff --git a/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt b/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt index ae2485d..3340104 100644 --- a/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt +++ b/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt @@ -21,6 +21,7 @@ class MainActivity : Activity() { super.onCreate(savedInstanceState) web = WebView(this) + web.setBackgroundColor(android.graphics.Color.parseColor("#141418")) setContentView(web) with(web.settings) { javaScriptEnabled = true -- cgit v1.2.3