## ✨ 核心亮点 - 🌐 **网站转App** - 输入任意网址,生成独立 WebView 应用 - 🎬 **媒体转App** - 图片/视频一键转换为全屏展示应用 - 💻 **HTML转App** - HTML/CSS/JS 项目转换为独立应用 - 🧩 **扩展模块系统** - 类油猴脚本,9个功能丰富的内置模块,支持自定义开发 - 🤖 **AI 模块开发** - AI Agent 辅助开发扩展模块,自动生成代码 - 🎨 **AI 图标生成** - 使用 AI 生成精美应用图标 - 🎵 **在线音乐搜索** - 在线搜索下载音乐作为 BGM - 📢 **公告模板系统** - 10 种精美公告弹窗模板 - 🌐 **网页自动翻译** - 网页内容自动翻译功能 - 📦 **一键出包** - 无需 Android Studio,直接生成可安装 APK - 🛡️ **内置功能** - 广告拦截、激活码验证、背景音乐、公告弹窗 - ⚡ **应用修改器** - 修改已安装应用的图标和名称 - 🧩 **APK 注入** - 支持向 APK 文件注入插件,增强应用功能 - 🔐 **自动签名** - 注入插件后自动为 APK 签名,确保可正常安装
| Files | Last commit | Last update |
|---|---|---|
| 9 months ago | ||
| 9 months ago |
ZunYuanGe - Web to App Tool🚀
English | 简体中文
Transform any website or media into a standalone Android app with zero coding!
ZunYuanGe - Web to App Tool is a powerful Android application that enables anyone to convert websites, images, and videos into independent apps. Build APK packages directly on your phone – no Android Studio required.
✨ Key Features
- 🌐 Website to App - Enter any URL to generate a standalone WebView app
- 🎬 Media to App - One-click conversion of images/videos into full-screen showcase apps
- 💻 HTML to App - Convert HTML/CSS/JS projects into standalone apps
- 🧩 Extension Module System - Tampermonkey-like scripts with 9 feature-rich built-in modules, supporting custom development
- 🤖 AI Module Development - AI Agent assists in developing extension modules, automatically generating code
- 🎨 AI Icon Generation - Generate beautiful app icons using AI
- 🎵 Online Music Search - Search and download music online as BGM
- 📢 Announcement Template System - 10 beautiful announcement popup templates
- 🌐 Auto Web Translation - Automatic webpage content translation functionality
- 📦 One-Click APK Build - Generate installable APKs without Android Studio
- 🛡️ Built-in Features - Ad blocking, activation code verification, background music, announcement popups
- ⚡ App Modifier - Modify icons and names of installed apps
- 🧩 APK Injection - Support injecting plugins into APK files to enhance app functionality
- 🔐 Auto Signing - Automatically sign APKs after plugin injection to ensure normal installation
🎯 Use Cases
-
📱 Package frequently used websites as standalone apps for one-click desktop access
-
🎞️ Create digital albums, video wallpapers, product showcase apps
-
💻 Quickly package frontend projects into Android apps
-
🏢 Rapidly app-ify enterprise internal systems
-
🎮 Independent packaging of game/tool H5 apps
-
🔧 Change favorite icons for installed apps
-
🧩 Add custom functions to webpages (ad blocking, dark mode, etc.)
📋 Feature Details
Core Features
- URL to App: Enter any URL to generate a standalone app
- Media to App: Support converting images/videos into standalone apps
- HTML to App: Support converting HTML/CSS/JS projects into standalone apps
- Custom Icon: Support selecting from gallery or generating custom app icons with AI
- Custom Name: Customize app display name
Extension Module System
- Tampermonkey-like Scripts: Inject custom JavaScript/CSS code into webpages
- 9 Built-in Modules: Video downloader, Bilibili/Douyin/Xiaohongshu video extractors, video enhancer, web analyzer, dark mode, privacy protection, content enhancer
- 30+ Code Templates: Quickly create common functional modules
- Module Categories: 20+ categories (content filtering, style modification, function enhancement, media processing, etc.)
- URL Match Rules: Support wildcard and regular expression matching
- Config System: Modules support user-defined configurations
- Permission Declaration: Fine-grained permission control
- Share Code: One-click generate share code for easy module sharing
- Import/Export: Support module file import and export
AI Module Development Agent
- Natural Language Development: Describe requirements in natural language, AI automatically generates module code
- Syntax Check: Automatically check JavaScript/CSS syntax errors
- Security Scan: Detect XSS, eval and other security issues
- Auto Fix: AI automatically fixes detected errors
- Code Snippet Library: Quick insertion of commonly used code snippets
- Debug Test Pages: Built-in test pages to verify module effects
AI Features
- Multi-Provider Support: Google Gemini, OpenAI, Zhipu GLM, Volcengine, MiniMax, OpenRouter, etc.
- AI HTML Coding: AI-assisted generation and modification of HTML/CSS/JS code
- AI Icon Generation: Generate app icons using AI
- AI Icon Library: Collect and manage generated icons
- Session Management: Support for multiple sessions, template selection, style customization
- Real-time Preview: Directly preview effects after code generation
- AI Settings: Unified management of API keys and model configurations
Integrated Features
- Splash Screen: Support image/video startup animations with built-in video trimmer
- Background Music: Support adding BGM to apps, with synchronized LRC lyrics display
- Online Music Search: Search and download music online as BGM
- Activation Code Verification: Built-in activation code mechanism to restrict app usage
- Popup Announcements: Display announcement information on startup, support link jumps
- Announcement Templates: 10 beautiful announcement templates (Xiaohongshu, gradient, glassmorphism, neon, etc.)
- Ad Blocking: Built-in ad blocking engine to automatically filter web ads
- Auto Web Translation: Automatic webpage content translation, supporting Chinese/English/Japanese and other languages
- Ad Integration: Reserved ad SDK interfaces (banner/interstitial/splash)
Export Features
- Desktop Shortcut: Create desktop icons to launch like native apps
- Build APK Package: Directly generate standalone APKs for installation without Android Studio
- Project Template Export: Export complete Android Studio projects for self-compilation of APKs
Media App Features
- Image to App: Select images to generate full-screen showcase apps
- Video to App: Select videos to generate loop-playing apps
- Display Configuration: Support audio toggle, loop playback, auto-play, fill screen
- APK Packaging: Media apps support export as standalone APKs
Theme System
- Multiple Themes: Built-in multiple beautiful theme styles
- Dark Mode: Support following system or manual switching
- Animation Effects: Customizable animation toggle and speed
- Particle Effects: Some themes support particle background effects
App Icon Modifier
- App List Scanning: Automatically obtain the list of installed apps on the device
- Icon/Name Modification: Freely modify any app's icon and display name
- Clone Install: Install modified apps as new apps with independent package names
- Shortcut Launch: Create shortcuts with new icons to launch original apps
Tech Stack
- Language: Kotlin 1.9+
- UI Framework: Jetpack Compose + Material Design 3
- Architecture: MVVM + Repository
- Database: Room
- Network: OkHttp
- Image Loading: Coil
- Minimum Support: Android 6.0 (API 23)
Project Structure
app/src/main/java/com/webtoapp/
├── WebToAppApplication.kt # Application class
├── core/ # Core feature modules
│ ├── activation/ # Activation code management
│ ├── adblock/ # Ad blocking
│ ├── ads/ # Ad integration
│ ├── ai/ # AI features
│ │ ├── AiApiClient.kt # AI API client
│ │ ├── AiConfigManager.kt # AI config management
│ │ └── htmlcoding/ # AI HTML coding
│ ├── announcement/ # Announcement management
│ ├── apkbuilder/ # APK builder
│ │ ├── ApkBuilder.kt # Build core
│ │ ├── JarSigner.kt # APK signing tool
│ │ ├── ArscEditor.kt # Resource table editor
│ │ ├── AxmlEditor.kt # Manifest editor
│ │ └── ApkTemplate.kt # Template management
│ ├── appmodifier/ # App modifier
│ ├── injector/ # APK injector
│ │ ├── core/ # Injection core features
│ │ │ ├── ApkInjector.java # Main APK injection class
│ │ │ └── DexInjector.java # DEX file modification
│ │ └── ui/ # Injector UI interface
│ ├── bgm/ # Background music
│ │ ├── BgmPlayer.kt # Player
│ │ ├── OnlineMusicApi.kt # Online music API
│ │ └── OnlineMusicDownloader.kt # Music downloader
│ ├── export/ # Export features
│ ├── extension/ # Extension module system
│ │ ├── ExtensionModule.kt # Module data model
│ │ ├── ExtensionManager.kt # Module manager
│ │ ├── BuiltInModules.kt # 9 built-in modules
│ │ ├── ModuleTemplates.kt # 30+ code templates
│ │ ├── CodeSnippets.kt # Code snippet library
│ │ └── agent/ # AI Agent system
│ │ ├── ModuleAgentEngine.kt # Agent engine
│ │ ├── AgentToolExecutor.kt # Tool executor
│ │ └── AgentTool.kt # Tool definitions
│ ├── shell/ # Shell mode management
│ └── webview/ # WebView management
│ ├── WebViewManager.kt
│ └── TranslateBridge.kt # Translation bridge
├── data/ # Data layer
│ ├── model/ # Data models
│ │ └── WebApp.kt
│ └── repository/ # Data repository
├── ui/ # UI layer
│ ├── MainActivity.kt # Main Activity
│ ├── media/ # Media app
│ ├── navigation/ # Navigation
│ ├── screens/ # Screens
│ │ ├── HomeScreen.kt # Home
│ │ ├── CreateAppScreen.kt # Create app
│ │ ├── CreateMediaAppScreen.kt # Create media app
│ │ ├── CreateHtmlAppScreen.kt # Create HTML app
│ │ ├── ExtensionModuleScreen.kt # Extension module management
│ │ ├── ModuleEditorScreen.kt # Module editor
│ │ ├── AiModuleDeveloperScreen.kt # AI module development
│ │ ├── HtmlCodingScreen.kt # AI HTML coding
│ │ ├── AiSettingsScreen.kt # AI settings
│ │ ├── ThemeSettingsScreen.kt # Theme settings
│ │ ├── AboutScreen.kt # About
│ │ └── AppModifierScreen.kt # App modifier
│ ├── components/ # Reusable components
│ │ ├── announcement/ # Announcement templates
│ │ │ ├── AnnouncementTemplates.kt # 10 templates
│ │ │ └── AnnouncementTemplateSelector.kt
│ │ ├── IconGeneratorDialog.kt # AI icon generator
│ │ ├── IconLibraryDialog.kt # AI icon library
│ │ ├── OnlineMusicSelector.kt # Online music selection
│ │ ├── ManualLrcAligner.kt # Manual LRC alignment
│ │ ├── ExtensionModuleSelector.kt # Module selector
│ │ └── CodeSnippetSelector.kt # Code snippet selection
│ ├── theme/ # Theme system
│ └── viewmodel/ # ViewModel
└── util/ # Utilities
├── MediaStorage.kt # Media file storage
└── IconLibraryStorage.kt # AI icon library storage
Usage Guide
Create an App
- Click the "Create App" button on the home screen
- Enter the app name and website URL
- (Optional) Select a custom icon or generate one with AI
- (Optional) Configure activation code, announcement, ad blocking, etc.
- (Optional) Select extension modules to enhance functionality
- Click Save
Use Extension Modules
- When creating/editing an app, expand the "Extension Modules" card
- Click "Select Modules" to browse available modules
- Select the required modules (such as dark mode, ad blocker, etc.)
- Modules will be automatically injected and executed when the app runs
Create Custom Modules
- Enter the "Extension Modules" page
- Click "+" to create a new module
- Choose a template or start from scratch
- Configure module name, category, URL match rules
- Write JavaScript/CSS code
- Save and test
AI-Assisted Module Development
- Enter the "AI Module Development" page
- Describe the functionality you want in natural language
- AI will automatically generate module code
- Automatic syntax checking and security scanning
- Preview the effect and save
Run Apps
- Click the app card to directly preview and run
- Long press or click the menu for more operations
Create Desktop Shortcuts
- Click the menu on the right side of the app card
- Select "Create Shortcut"
- Confirm adding to desktop
Build APK Installation Package
- Click the menu on the right side of the app card
- Select "Build APK"
- Click "Start Build"
- Installation interface automatically pops up after build completion
Export as Project Template
- Click the menu on the right side of the app card
- Select "Export Project"
- Find the project folder in the export directory
- Open and compile with Android Studio
Use App Modifier
- Click the app icon button in the upper right corner of the home screen
- Search or filter the target app in the app list
- Click the app to enter the modification interface
- Select a new icon and enter a new name
- Choose operation method:
- Shortcut: Create a desktop shortcut with the new icon
- Clone Install: Generate a new APK and install as an independent app
Use APK Injection Feature
- Enter the "APK Injection" interface
- Select the APK file to inject into
- Select the plugins to inject
- Click the "Start Injection" button
- Wait for injection to complete, generating an APK with plugins
- Injected APK will be automatically signed to ensure normal installation
APK Injection Notes
- Injected APK will be saved in the same directory as the original APK
- Filename format: original_filename_zyg.apk
- Support injecting multiple plugins simultaneously
- Do not close the app during injection
- Some APKs may have anti-injection mechanisms, causing injection failure
Build Instructions
Requirements
- Android Studio Hedgehog (2023.1.1) or higher
- JDK 17
- Gradle 8.2
Build Steps
# Clone the project
git clone <repository_url>
# Enter project directory
cd web-to-app
# Build Debug version
./gradlew assembleDebug
# Build Release version
./gradlew assembleRelease
Signing Configuration
For Release builds, add signing configuration in app/build.gradle.kts:
signingConfigs {
create("release") {
storeFile = file("your-keystore.jks")
storePassword = "your-store-password"
keyAlias = "your-key-alias"
keyPassword = "your-key-password"
}
}
Extension Module System
Built-in Modules
| Module | Function |
|---|---|
| ⬇️ Video Downloader | Automatically detect webpage videos, support MP4 and Blob stream download |
| 📺 Bilibili Video Extractor | Extract Bilibili highest quality video and audio stream URLs |
| 🎬 Douyin Video Extractor | Extract Douyin watermark-free video URLs |
| 📱 Xiaohongshu Video Extractor | Extract Xiaohongshu video playback URLs |
| ⚡ Video Enhancer | Speed control (0.5x-5x), picture-in-picture, background playback, block app jumps |
| 🔧 Web Analyzer | Element inspection, network monitoring, Cookie management, Console injection |
| 🌙 Advanced Dark Mode | Smart color inversion, image brightness control, scheduled toggle |
| 🛡️ Privacy Protection | Remove ads, anti-fingerprint tracking, click hijacking protection, external link warning |
| 📝 Content Enhancer | Force copy, selected text translation, long screenshot, Markdown conversion |
Module Categories
- Content Filtering, Content Enhancement, Style Modification, Theme Beautification
- Function Enhancement, Automation, Navigation Assistance, Data Extraction
- Media Processing, Video Enhancement, Image Processing, Audio Control
- Security & Privacy, Anti-tracking, Social Enhancement, Shopping Assistant
- Reading Mode, Translation Tools, Development & Debugging, Others
NativeBridge API
Extension modules can call Android native functions through window.NativeBridge:
| API | Function |
|---|---|
showToast(msg, duration?) |
Display Toast notification |
vibrate(ms?) |
Trigger vibration feedback |
copyToClipboard(text) |
Copy to clipboard |
share(title, text, url?) |
Call system share |
saveImageToGallery(url) |
Save image to gallery |
saveVideoToGallery(url) |
Save video to gallery |
openUrl(url) |
Open link in browser |
openApp(packageName) |
Open other apps |
getDeviceInfo() |
Get device information |
isNetworkAvailable() |
Check network status |
saveToFile(content, filename) |
Save file |
Module Development Example
// Example 1: Auto hide ads
const selectors = getConfig('selectors', '.ad-banner').split('\n');
function hideAds() {
selectors.forEach(sel => {
document.querySelectorAll(sel).forEach(el => {
el.style.display = 'none';
});
});
}
hideAds();
new MutationObserver(hideAds).observe(document.body, { childList: true, subtree: true });
// Example 2: One-click save image (using NativeBridge)
document.querySelectorAll('img').forEach(img => {
img.addEventListener('contextmenu', (e) => {
e.preventDefault();
NativeBridge.saveImageToGallery(img.src);
NativeBridge.vibrate(50);
NativeBridge.showToast('Image saved');
});
});
// Example 3: Share current page
function shareCurrentPage() {
NativeBridge.share(document.title, 'Share an interesting page with you', location.href);
}
Announcement Templates
10 beautiful announcement popup templates built-in:
- Minimal Style - Clean and elegant
- Xiaohongshu Style - Lively and cute
- Gradient Style - Modern and stylish
- Glassmorphism Style - Transparent texture
- Neon Style - Cool glowing effect
- Cute Style - Pink and sweet
- Elegant Style - Golden and noble
- Festive Style - Celebratory and lively
- Dark Style - Mysterious and deep
- Natural Style - Fresh and green
Ad Blocking Rules
Built-in common ad domain blocking, support custom rules:
- Domain rules:
||example.comor directly enter domain name - Wildcard rules:
*ads*,*/banner/*
Activation Code Mechanism
- Support batch setting of multiple activation codes
- Activation status local persistence
- Support SHA-256 encryption verification
Notes
- Some websites may have anti-crawling mechanisms, loading may be restricted
- Network permission is required for normal use
- Exported projects need to be compiled with Android Studio on PC
- Activation codes are only verified locally, please extend for server-side verification if needed
- Extension modules execute in WebView, some websites may have CSP restrictions
License
MIT License
📜 Changelog
v1.0.0
Core Features
- URL to App: Enter any URL to generate a standalone app
- Media to App: Support converting images/videos into standalone apps
- Image to App: Full-screen display, support fill screen
- Video to App: Support loop playback, audio toggle, auto-play
- Media apps support export as standalone APK
- HTML to App: Support converting HTML/CSS/JS projects into standalone Android apps
- Custom Icon: Support selecting from gallery or generating with AI
- Custom Name: Customize app display name
Extension Module System
- Tampermonkey-like JS/CSS injection system
- 9 feature-rich built-in modules (video download, platform video extractors, video enhancer, web analyzer, dark mode, privacy protection, content enhancer)
- 30+ code templates for quick module creation
- 20+ module categories covering common needs
- URL match rules support (wildcards/regex)
- User-configurable settings
- Share code import/export
- AI Module Development Agent: AI-assisted extension module development
- Natural language requirement description, auto code generation
- Automatic syntax check and security scan
- Auto-fix detected errors
- Code snippet library for quick insertion
AI Features
- AI HTML Coding Assistant: AI-powered code generation and modification
- Multiple text/image generation models
- Session management, template selection, style customization
- Code block parsing, live preview
- AI Settings: Unified API key and model management
- Multiple API keys support, real-time connection testing
- Custom Base URL support, model list fetched from API
- AI Icon Generator: Generate app icons using AI
- AI Icon Library: Collect and manage generated icons
Theme System
- Brand new theme customization feature
- Multiple beautiful theme styles, dark mode support
- Customizable animation effects and speed
- Particle background effects for some themes
Media App Features
- Media App: Support converting images/videos into standalone apps
- Video Trimmer: Visual video segment selection with real-time preview
Splash Screen and Video Trimming
- Splash Screen: Support setting image or video for app startup
- Image splash screen with configurable display duration
- Video splash screen with built-in video trimmer (unlimited duration)
- Video splash screen supports audio toggle
- Support click to skip, landscape display, fill screen
App Modifier
- App list scanning: Automatically scan all installed apps on the device
- Icon/Name modification: Freely modify any app's icon and display name
- Clone install: Generate cloned apps with independent package names
- Shortcut launch: Create shortcuts with new icons to launch original apps
APK Building and Signing
- One-click build standalone APK installation package
- Auto signing: Automatically sign APKs after injection to ensure normal installation
- Follow Android Adaptive Icon specification for icon handling
- Improved icon clarity (using xxxhdpi 432px resolution)
- APK encryption protection: Encrypt configuration files and resources
Status Bar and Fullscreen Mode
- Fullscreen mode: Hide toolbar, no browser features
- Show status bar option in fullscreen mode
- Transparent status bar overlay in fullscreen mode
- Status bar style configuration: Custom height, background color/image, transparency
- Status bar color follows theme: Defaults to theme color, light background for light theme, dark background for dark theme
- Support custom status bar background color: Choose transparent, follow theme, or custom color
Data Backup and Auto-start
- Boot auto-start and scheduled auto-start functionality
- Data backup: One-click export/import all app data
Other Features
- Online Music Search: Search and download music online for BGM
- Background Music (BGM): Add BGM with LRC lyrics sync
- Announcement Template System: 10 beautiful popup templates
- Auto Web Translation: Automatic webpage content translation
- Ad blocking: Built-in ad blocking engine, automatically filter web ads
- Desktop mode: Force desktop mode for webpage loading
Improvements
- Refactored extension module architecture for more flexible development
- Optimized AI features, support more models and providers
- Home UI integration with AI Coding, Theme, AI Settings entries
- FAB menu adds HTML app creation
- Home FAB changed to expandable menu, supporting web app and media app creation
- Data model refactoring for video trimming configuration persistence
- Shell mode (APK export) fully supports splash screen playback
- Optimized MediaPlayer for precise seek and auto-stop
- Optimized AI HTML Coding prompts and model compatibility
- Optimized ArscEditor icon path replacement
Bug Fixes
- Fixed long-press text cannot be copied in HTML projects
- Fixed HTML app not showing status bar issue
- Fixed some system apps showing empty names
- Fixed code block content overlay issue in AI Module Developer
- Fixed tool calling failure in AI HTML Coding
- Fixed JS file picker compatibility issue on some systems
- Fixed video fullscreen not auto-rotating to landscape, now auto-rotates and fills screen
- Fixed long-press image save not working on Xiaohongshu and similar sites
- Fixed Blob format file (e.g., JSON) export failure
- Fixed CSS/JS not working after HTML project import
- Fixed duplicate app name display in recent tasks list
- Fixed shortcut icon incorrectly using splash image
- Fixed database schema mismatch causing crashes
- Fixed invalid APK package name causing installation failure
- Fixed APK permission/Provider conflict issues
- Fixed APK build icon being enlarged and cropped
- Fixed custom icon not working in Release version APK builds
- Fixed status bar text visibility issue
System Support
- Support Android 6.0 (API 23)
- Support multiple device screens (including notch/punch-hole displays)
- Support immersive fullscreen mode
- Status bar and navigation bar fully transparent
- Content fills the entire screen
- Auto-hide virtual buttons during video playback
Introduction
## ✨ 核心亮点 - 🌐 **网站转App** - 输入任意网址,生成独立 WebView 应用 - 🎬 **媒体转App** - 图片/视频一键转换为全屏展示应用 - 💻 **HTML转App** - HTML/CSS/JS 项目转换为独立应用 - 🧩 **扩展模块系统** - 类油猴脚本,9个功能丰富的内置模块,支持自定义开发 - 🤖 **AI 模块开发** - AI Agent 辅助开发扩展模块,自动生成代码 - 🎨 **AI 图标生成** - 使用 AI 生成精美应用图标 - 🎵 **在线音乐搜索** - 在线搜索下载音乐作为 BGM - 📢 **公告模板系统** - 10 种精美公告弹窗模板 - 🌐 **网页自动翻译** - 网页内容自动翻译功能 - 📦 **一键出包** - 无需 Android Studio,直接生成可安装 APK - 🛡️ **内置功能** - 广告拦截、激活码验证、背景音乐、公告弹窗 - ⚡ **应用修改器** - 修改已安装应用的图标和名称 - 🧩 **APK 注入** - 支持向 APK 文件注入插件,增强应用功能 - 🔐 **自动签名** - 注入插件后自动为 APK 签名,确保可正常安装
Customize your domain