An Android app that wraps Google Search AI Mode in a WebView, with extras:
- Adaptive icon — a zodiac glyph filled with a yellow→red→blue→green gradient, on a white background. The glyph is a public-domain astrology symbol.
- Material 3 theme with light/dark mode support
- Navbar color adapts to device type + orientation + theme:
- Dark mode:
#0F0F0Fon tablet landscape (desktop-style layout), OLED black#000000elsewhere - Light mode:
#FDFCFCeverywhere (matches the web light surface)
- Dark mode:
- Loading screen with the Searchmini logo that fades out smoothly after first page load
- Blob: URL download support — downloads code files, images, and other attachments that use
blob:URLs (includingblob:null/...from sandboxed iframes) viaWebViewCompat.addDocumentStartJavaScript - Long-press image menu with Share / Download options (downloads the preview image — see warning in the dialog)
- Share-to-Searchmini — share text from other apps to open an AI Mode query (
udm=50), or share files to attach from the page - Hidden Settings menu with:
- WebView switcher (pick which WebView implementation to use — Thorium recommended)
- Desktop mode toggle
- Performance optimizations (GPU blocklist bypass, surface control)
- Update checker
Searchmini is an independent, unofficial client. It is not affiliated with, endorsed by, or sponsored by Google. The Searchmini name, icon, and source code are this project's own. Searchmini loads the public Google Search AI Mode page (
https://www.google.com/ai, andhttps://www.google.com/searchwithudm=50) inside an Android WebView, the same way any general-purpose browser would.
- JDK 17+ (JDK 21 tested)
- Android SDK with
platforms;android-34andbuild-tools;34.0.0 - AndroidX WebView 1.12+ (for
addDocumentStartJavaScriptblob capture support)
# Set SDK location
echo "sdk.dir=$HOME/Android/Sdk" > local.properties
# Build release APK. Without SEARCHMINI_KEYSTORE this is unsigned
# (app-release-unsigned.apk). To sign it, set these in the environment
# or in ~/.gradle/gradle.properties:
# SEARCHMINI_KEYSTORE=/absolute/path/to/searchmini-release.keystore
# SEARCHMINI_KEYSTORE_PASSWORD=<password>
# SEARCHMINI_KEY_ALIAS=<alias>
# SEARCHMINI_KEY_PASSWORD=<password>
./gradlew assembleRelease
# Signed APK: app/build/outputs/apk/release/app-release.apk
# Unsigned APK: app/build/outputs/apk/release/app-release-unsigned.apk./gradlew assembleDebug
# APK lands in app/build/outputs/apk/debug/app-debug.apkAndroid WebView's DownloadListener only gives Java a URL string. For blob: URLs (especially blob:null/... created in sandboxed iframes), Java can't fetch the blob directly. This app uses WebViewCompat.addDocumentStartJavaScript (androidx.webkit 1.12+) to inject a blob-capture script into every frame at document creation time. The script:
- Overrides
URL.createObjectURLin every frame (main + all iframes, including sandboxed null-origin ones) - Eagerly reads each blob via
FileReader.readAsDataURLat creation time (before the page can revoke the URL) - Main frame stores blob data in
window.__blobRefs - Iframes send blob data to parent via
postMessage(works cross-origin) - When the
DownloadListenerfires, the download interceptor checks__blobRefsfirst, then falls back tofetch()
See app/src/main/assets/blob_capture.js and app/src/main/assets/download_interceptor.js for the implementation.
The in-app Check for updates button queries the GitHub releases API for this repository:
https://api.github.com/repos/MrHuaweiFan/Webmini/releases
When a newer release is found, the app opens the release's download page in the user's default browser. If you fork this repo, update REPO_API and USER_AGENT in app/src/main/java/com/searchmini/app/webview/UpdateChecker.java to point at your own releases.
- Web URL: edit
URLinapp/src/main/java/com/searchmini/app/MainActivity.java(https://www.google.com/ai). Shared text openshttps://www.google.com/search?udm=50&q=.... - App name: edit
app_nameinapp/src/main/res/values/strings.xml - App icon: edit
app/src/main/res/drawable/ic_launcher_foreground.xml(vector drawable with gradient) and regenerate the PNG fallbacks, or just replace theic_launcher.pngfiles underapp/src/main/res/mipmap-*/ - Version: edit
versionCode/versionNameinapp/build.gradle
Based on WebGPT.
Searchmini is free software released under the MIT License — see LICENSE for the full text. The Searchmini name and icon are this project's own and do not infringe any third-party trademark. This project is not affiliated with Google and loads the public Google Search AI Mode page inside an Android WebView.
The repository ships F-Droid / Fastlane upstream metadata so the app's listing (description, icon, screenshots, changelog) is under direct control of the developer:
fastlane/metadata/android/en-US/
├── short_description.txt (≤ 80 chars, no trailing dot)
├── full_description.txt
├── changelogs/
│ └── 22.txt (max 500 chars; 22 = versionCode)
└── images/
├── icon.png (512×512 PNG)
├── phoneScreenshots/ (1.png … 5.png)
└── sevenInchScreenshots/ (1.png)
See Submitting to F-Droid — Quick Start Guide for the official spec.
This project loads the public Google Search AI Mode page. It is not a Google product.