π English | EspaΓ±ol | Italiano | PortuguΓͺs
Transform your Samsung Galaxy S24 into a dedicated Edge LLM AI Appliance and Battery-Optimized Workstation β local on-device OpenAI-compatible LLM server, Exynos 2400 AMD Xclipse 940 GPU acceleration, custom ChatGPT-like Web UI, lightweight launcher, and complete bloatware purge with no root required.
Transform your device in seconds into a local offline LLM server:
| OS | Quick Setup (Transform to AI Appliance) | Rollback (Restore Stock) |
|---|---|---|
| Windows (CMD) | create_hostai_phone.bat |
restore_hostai_phone.bat |
| Windows (PowerShell) | .\create_hostai_phone.ps1 |
.\restore_hostai_phone.ps1 |
| macOS / Linux | bash create_hostai_phone.sh |
bash restore_hostai_phone.sh |
Full step-by-step documentation available in the S24 Edge LLM Appliance Replication Guide.
-
HostAI S24 Edition (
releases/hostai-s24-exynos.apk):- Local OpenAI API: Full
/v1/chat/completionsand/v1/modelsendpoints running on port8080. - Hardware Acceleration: Optimized for Samsung Exynos 2400 with AMD Xclipse 940 GPU via OpenCL.
- On-Device Models: Preconfigured for Google Gemma 4 E2B Instruct (2.6 GB), TinyGarden 270M (288 MB), and EmbeddingGemma.
- Zero Cloud Leakage: 100% offline edge neural processing β zero personal data leaves the device.
- Local OpenAI API: Full
-
Built-in ChatGPT-like Web UI (
http://localhost:8080/chat):- Obsidian Dark & Clean Light themes with 1-tap instant switch.
- Zero CDN Dependencies: 100% self-contained vanilla HTML/JS/CSS, loads in <5ms with zero blank page issues.
- Live SSE Streaming: Real-time token streaming with typing animation and Stop Generation button.
- Rich Markdown & Code: Syntax-highlighted code blocks with 1-click "Copy" button.
- Session History: Multi-chat sidebar with persistence in
localStorage.
-
OpenNovaLauncher S24 Edition (
releases/opennovalauncher-s24.apk):- Dedicated minimal home launcher tailored for AI workflows.
- Integrated HostAI Studio card & 1-tap Web Chat shortcut.
- Native folder management, dynamic 3/4/5 column grid, hide apps manager, zero telemetry.
- 3-button navigation bar insets compensated for smooth scrolling.
-
Needle Router S24 Edition (
releases/needle-router-v1.2.apk):- Zero-latency natural language intent router and local offline assistant for Samsung Galaxy S24.
- Hardware control: Camera, Flashlight/Torch, Alarms, Clock, Wi-Fi, Bluetooth, Settings, App launch.
- Integrates with local HostAI OpenAI server for complex queries.
- Offline Neural TTS: Native binding to Kaldi Sherpa-ONNX (
com.k2fsa.sherpa.onnx.tts.engine) with pre-packaged Italian VITS Piper voice for zero-cloud spoken feedback.
-
De-Googled & Sealed Privacy Architecture:
- Dicio Voice Assistant (
releases/dicio.apk): Offline voice AI assistant bridge to HostAI LLM. - MicroG-RE (
releases/microg-morphe-re.apk): Open-source GMS replacement with zero background telemetry. - App Stores: F-Droid (
releases/f-droid.apk) and Aurora Store (releases/aurora-store.apk) in anonymous mode. - AppOps Cage for Gemini: Sealed sandbox for
googlequicksearchbox(0 MB idle RAM consumption). - RAM Squeeze: Neutralized 19 Knox/telemetry packages, freeing >4.5 GB physical RAM (over 60% memory free) for model weights and large context buffers.
- Dicio Voice Assistant (
| Model | One UI / Android |
|---|---|
| SM-S921B (S24 base) | One UI 8.5 / Android 16 & One UI 9.0 Beta / Android 17 (tested on Exynos) |
| SM-S926B (S24+) | One UI 8.5 / Android 16 & One UI 9.0 Beta (untested) |
| SM-S928B (S24 Ultra) | One UI 8.5 / Android 16 & One UI 9.0 Beta (untested) |
| S23, S22, S21 series | One UI 5+ / Android 13+ (untested) |
| Category | Packages | Reason |
|---|---|---|
| Bixby | agent, wakeup, vision, visionintelligence, 13 language packs | Always-listening assistant + AI |
| Samsung Apps | Game Tools, GOS, Smart Suggestions, Aware Service, BBC Agent, Reminder, Routines, Routine Plus, Live Effect, OneConnect, STPlatform, Forest, Buds Manager, Rubin App, My Galaxy, Samsung Health | Bloat + background drain |
| Knox | kpecore, attestation, pushmanager, container, analytics, zt framework | April 2026 attestation loop bug |
| App Update Center | updatecenter, scpm, statsd | Pushes "Experience" app recommendations + telemetry |
| Samsung Pay | spayfw | Payment service (Google Wallet unaffected) |
| Messages, Docs, Chromecast, Feedback, Supervision | Unused services | |
| Facebook/Meta | Facebook, Messenger | Social battery drain |
| Microsoft | Edge, Excel, Word, Remote Desktop, Outlook | Office sync drain |
| Category | Setting | Value |
|---|---|---|
| Battery | Adaptive Battery | ON |
| App Auto Restriction | ON | |
| Battery Saver | ON | |
| Enhanced CPU Resp. | OFF | |
| Enhanced Processing | OFF | |
| Radio | BLE Scan Always | OFF |
| Nearby Scanning | OFF | |
| WiFi Power Save | ON | |
| WiFi Wakeup | OFF | |
| Display | AOD / Always On | OFF |
| Screen Timeout | 30s | |
| Lift to Wake | OFF | |
| Smart Stay | OFF | |
| Doze | ON | |
| Performance | Animations | 0.5x |
| RAM Plus | 2 GB (selectable: 0/2/4/6/8 GB) | |
| Protection | Max charge | 80% |
appops set RUN_ANY_IN_BACKGROUND deny on:
- Instagram β continuous wakelocks
- WhatsApp β background sync drain
- Tandem β frequent polling
Tested on SM-S921B (Exynos 2400) Β· One UI 8 Β· Android 16
| Metric | Before (Jul 16) | After (Jul 17) | Improvement |
|---|---|---|---|
| Standby drain | ~78 mA/h | 53 mA/h | -32% |
| Estimated standby | ~1.5 days | 2 days 4 hours | +43% |
| Deep Doze | β Not active | β Active | β |
| Instagram (mAh/h) | 57.1 | 29.8 | -48% |
| System (mAh/h) | 28.9 | 11.4 | -61% |
| Kernel (mAh/h) | 12.0 | 9.6 | -20% |
Duration: 12h 40m on battery
Screen-on: 56m (7.4%)
Drain: 33% (1,286 mAh / 3,900 mAh capacity)
Standby: ~53 mA/h drain rate β excellent
Top consumers (mAh):
Instagram 377 (29%)
System (UID 1000) 144 (11%)
WhatsApp 140 (11%)
Kernel 122 (9%)
Google Play Services 45 (4%)
Deep Doze consumed only 581 mAh over ~11 hours of standby β the phone enters deep sleep correctly after disabling Samsung bloat that was holding wakelocks.
The project includes a native Kotlin Android app at android-app/. It runs ADB shell commands directly on the phone via Shizuku β no PC needed after initial setup.
Latest release: v2.3 β APK available on GitHub Releases.
Author: mich-de | github.com/mich-de/samsung_s24_battery_life
New bloatware found after the S921BXXSGDZG1 OTA (July 27, 2026) that were pushing "Experience" app install recommendations:
- App Update Center β pushes "Experience" app installs after OTA
Device Protection / loolβ withdrawn on 14 August.loolowns thecom.samsung.android.sm.dcapiprovider that system_server calls when Sleep mode changes the power saving mode; disabled, it crashed system_server in a loop until RescueParty rebooted the phone and rolled back the settings this app had written. Do not re-add.- Smart Contextual Platform (scpm) β usage pattern analytics
- Samsung Analytics (statsd) β telemetry collection
- Theme Designer, Share Live, Easy Setup, SmartThings Find, Galaxy App Booster
New system toggles: Samsung Error Reports OFF, Samsung HQM Telemetry OFF
A weekly (or daily) reboot at a time you pick, driven by an alarm and svc power reboot β Samsung's own "Auto restart" is off and its UI is disabled from the factory on this device. It only fires while the phone is idle: screen off, charging, above 30%, no call in progress. Any condition not met and it retries every 15 minutes for up to 2 hours, then waits for the next day. A notification gives 60 seconds of warning with Cancel.
Reboots done this way are tagged: getprop ro.boot.bootreason reads reboot,s24opt_scheduled, so they stay distinguishable from a crash-driven reboot,rescueparty.
- Full UI redesign β dark cyberpunk theme with gradient cards, electric blue accents, monospace typography
- Tab-based navigation β Quick Settings presets, category browsing, execution logs
- Real-time status β check which optimizations are applied, with green dots for active
- Search bar β filter optimizations by name within each category
- Colored execution logs β green for success, red for errors, blue for info
- Save logs to file β export execution logs for analysis
- Profile manager β save and load optimization profiles
- Language toggle β English (default) / Italian
- New app icon β custom processed icon (white on transparent)
| Category | Count |
|---|---|
| Samsung Bloat | 27 |
| Google Bloat | 6 |
| Facebook/Meta | 2 |
| Microsoft Bloat | 5 |
| Knox Matrix Reset | 6 |
| Google Play Reset | 2 |
| Background Restrict | 3 |
| System Settings | 47 |
Every optimization includes clear descriptions of what it does and what you lose.
- Install Shizuku v13.6+ from GitHub Releases
- Start Shizuku via Wireless Debugging or ADB
- Open S24 Battery Optimizer β it auto-requests Shizuku permission
- Browse categories, toggle optimizations, tap Apply Selected
The app handles everything via Shizuku. These manual steps are only needed once for setup:
# Via ADB (phone connected to PC with USB Debugging): .\adb.exe shell sh /data/local/tmp/shizuku.dex
# Pair with Shizuku app: .\adb.exe shell settings put global development_settings_enabled 1
That's it. Everything else β disabling packages, changing settings, restricting background β is done inside the app.
Will I lose data? No. pm disable-user only hides apps.
Does Google Wallet work? Yes, completely independent of Samsung Pay.
Samsung Pay? Now disabled by default. Google Wallet works fine.
Bixby doesn't work anymore? Correct. If you need it, don't disable Bixby packages in the app.
Hey Google / Gemini works? Yes, preserved.
Battery seems worse after reboot? Normal. Android recalibrates for 1-2 charge cycles.
s24-battery-optimizer/
βββ create_hostai_phone.bat β 1-click: turn S24 into dedicated Edge LLM appliance
βββ create_hostai_phone.ps1 β PowerShell version
βββ create_hostai_phone.sh β Linux / macOS version
βββ restore_hostai_phone.bat β Full rollback / safety net: restores all stock Samsung & Knox apps
βββ restore_hostai_phone.ps1 β PowerShell rollback version
βββ restore_hostai_phone.sh β Linux / macOS rollback version
βββ releases/ β Executable files
β βββ s24-battery-optimizer.apk
β βββ hostai-s24-exynos.apk β Edge LLM server (Exynos 2400 / AMD Xclipse 940)
βββ S24_Edge_LLM_Appliance_Replication_Guide.md β Edge LLM appliance replication runbook
βββ android-app/ β Android app source (Kotlin + Compose)
β βββ ...
βββ README.md β English (default)
βββ README-ES.md
βββ README-IT.md
βββ README-PT.md
MIT β use, modify, share.
