Install
openclaw skills install @pmuhammadagus-byte/web-to-apk-researchProvide actionable workflows and decision support to convert web apps into Android APKs using PWA, Capacitor with CI, or Trusted Web Activities.
openclaw skills install @pmuhammadagus-byte/web-to-apk-researchUser wants to convert a web app/website into an Android app, especially from Termux where Java, Gradle, and the Android SDK are NOT available locally. Triggers: "web to apk", "buat APK dari website", "jadikan web jadi aplikasi", "PWA", "installable web app", "Capacitor build".
| User need | Path | Effort |
|---|---|---|
| Install on own phone, works today | A. PWA + WebAPK | ~15 min |
Shareable real .apk file | B. Capacitor + GitHub Actions | ~30 min |
| Play Store distribution | C. TWA (Bubblewrap) + CI | Medium |
| Full native control | D. Manual WebView app | High |
ALWAYS confirm the target with the user before executing. Default recommendation: Path A first (it is the foundation for B and C), then B if a shareable APK is required.
manifest.json to the web project (name, short_name, start_url, display: standalone, icons 192/512).service-worker.js (cache app shell; network-first for API calls).index.html.{
"name": "App Name",
"short_name": "App",
"start_url": ".",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#000000",
"icons": [
{ "src": "icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "icon-512.png", "sizes": "512x512", "type": "image/png" }
]
}
npm init @capacitor/app in the project; npx cap add android..github/workflows/build-apk.yml — Ubuntu runners already have Java/Gradle/Android SDK.name: build-apk
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 22 }
- run: npm ci && npx cap sync android
- run: cd android && ./gradlew assembleDebug
- uses: actions/upload-artifact@v4
with: { name: app-debug-apk, path: android/app/build/outputs/apk/debug/*.apk }
For the full comparison of all 5 options (PWA, Capacitor, TWA, manual WebView, Tauri Mobile) with pros/cons, read references/options-analysis.md.
pkg install openjdk/gradle in Termux to build locally — broken toolchains waste hours; use CI