š¤ Android Cleaner
SvelteKit Web App for Android Device Management via ADB
A functional web application for managing Android apps through ADB commands. Features batch processing, app metadata analysis, and bulk operations for device cleanup.
Functional table interface with batch processing, selection tools, and app metadata
⨠Features
š Advanced App Intelligence
- High-Accuracy Names: AAPT-powered real app display names (no more
com.package.names)
- Comprehensive Metadata: Install source, target SDK, last used dates, data usage, app flags
- Smart Device Detection: Auto-detects Samsung Fold models and other devices with pretty names
š Functional UI
- Sortable Data Table: Click column headers to sort by size, date, SDK version, etc.
- Range Selection: Shift-click to select multiple apps at once
- Batch Progress: Live progress tracking during app processing
- User Feedback: Toast notifications for actions and errors
- Batch Processing: Processes apps in groups of 5 to prevent system overload
- Stop Control: Cancel batch operations in progress
- Caching: File-based cache for faster subsequent loads
- Error Handling: Tracks and displays failed operations
šÆ Additional Features
- Bulk Operations: Select and uninstall multiple apps at once
- System App Protection: Basic safety checks to prevent removing system apps
- Device Detection: Identifies connected Android devices with friendly names
- App Store Links: Click app names to open store pages (where available)
š System Requirements
Essential
- ADB (Android Debug Bridge): Bundled with app, no setup needed
- USB Debugging: Enabled on your Android device
- Chrome/Chromium: For best app mode experience (auto-detected)
Supported Devices
- ā
Android devices with ADB support
- ā
Samsung Galaxy series (tested with Fold 5, enhanced detection)
- š Multiple device support (UI implemented, backend switching in progress)
Operating Systems
- š macOS: Tested and working
- šŖ Windows: Should work (ADB path may need adjustment)
- š§ Linux: Should work (ADB path may need adjustment)
š Quick Start
1. Enable USB Debugging
Settings ā Developer Options ā USB Debugging ā ON
2. Connect Device
# Check connection (bundled ADB)
./tools/sdk/platform-tools/adb devices
3. Run Development Server
npm install # Install dependencies + setup AAPT
npm run dev # Start at http://localhost:5173
4. Manage Apps
- App opens in browser
- Select your device from dropdown
- Apps load progressively with real-time progress
- Select apps ā Uninstall ā Clean device! š
š§ Development Setup
Prerequisites
- Node.js 18+ or Bun 1.0+
- PNPM (recommended) or NPM
Clone & Install
git clone <repository>
cd android-cleaner
pnpm install # Auto-runs AAPT setup
Development Server
pnpm dev # http://localhost:5173
Build for Production
# Build for production
pnpm build
# Preview production build
pnpm preview # http://localhost:4173
š Architecture
Tech Stack
- Frontend: SvelteKit + DaisyUI + TailwindCSS
- Backend: SvelteKit API routes + Node.js child_process
- ADB Integration: Android SDK build-tools + AAPT
- Caching: File-based JSON with device-specific invalidation
Key Components
src/
āāā routes/
ā āāā +page.svelte # Main UI
ā āāā api/
ā āāā adb/status/ # Device detection
ā āāā apps/
ā āāā list/ # Package enumeration
ā āāā list-batch/ # Batch processing
ā āāā details/ # Individual app data
ā āāā uninstall/ # Bulk uninstall + cache updates
āāā lib/
ā āāā app-names.js # AAPT integration
ā āāā cache.js # Smart caching system
āāā tools/ # Bundled Android SDK tools
š± Use Cases
Practical Android App Management
- App Analysis: View installed apps with metadata like install dates, sizes, and sources
- Bulk Cleanup: Remove multiple unwanted apps efficiently before device migration
- Device Auditing: Review what's installed and identify apps for removal
Useful for:
- Cleaning devices before migrations
- App auditing and storage cleanup
- Android development and testing workflows
š¤ Contributing
Built with ā¤ļø for Android power users. Contributions welcome!
Development Workflow
- Read
docs/next-session.md for current priorities
- Check
docs/roadmap.md for planned features
- Follow existing code patterns and conventions
- Test with real Android devices when possible
š License
Private Project - Built for Android device management.
š§ Functional Android device management via ADB with web interface