Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

Samsung One UI 9.0 Modern Theme Engine & Hex Compatibility Suite

A next-generation theming framework, diagnostic suite, and compatibility layer for Samsung Galaxy devices running One UI 6, 7, 8, and 9.0 (Android 14, 15, and 16).


📱 HexNext app (native, android/)

The main product is now a native Kotlin + Jetpack Compose app in android/, built by GitHub Actions on every push. Grab the APK from the Android APK workflow run's artifacts (or from a release when a v* tag is pushed). It needs Android 14+ and Shizuku.

  • Shizuku running as root (or Sui): HexNext registers real fabricated overlays on the framework: all 65 Monet shades (system_accent1..3_*, system_neutral1..2_*) plus the Android 14+ Material role colors, generated from your accent color and palette style. Pure-black dark mode is available. Every step shows the real result, and the app reads the color back to verify it applied.
  • Shizuku over wireless debugging (no root): Android refuses fabricated overlays from the shell user (OverlayManagerService: "Non-root shell cannot fabricate overlays", and cmd overlay fabricate requires root). HexNext instead hands the seed color and style to System UI's own Monet engine through theme_customization_overlay_packages. On One UI 9 this recolors Material You apps but not One UI's own UI.

Build locally with cd android && ./gradlew assembleDebug. The old WebView app in apps/hex-next/ is kept only as a design reference.


🌟 Features

  • Fabricated Runtime Resource Overlays (RRO): Dynamic, instantaneous color and resource styling via native Android cmd overlay fabricate—no slow compilation, no reboot required.
  • Hex Installer One UI 9 Fix Suite: Fully documented reverse engineering and compatibility layer enabling legacy themers to pass all setup prerequisites.
  • Theme Park Stub Engine: Zero-overhead compatibility stub APK resolving the com.samsung.android.themepark ➔ com.samsung.android.themedesigner namespace migration.
  • HexBridge Pro App & Web Dashboard: Native Android WebView client (com.hexbridge.pro) + lightweight local web server with Shizuku integration for full remote theming and diagnostics.
  • Theme Profiles: Ready-to-use JSON theme templates (AMOLED Pure Black, Neon Violet, Cyberpunk Gold).

📂 Repository Structure

.
├── apps/
│   ├── adb-app-manager/         # Moved: see github.com/Bingblop/ADB-Application-Manager
│   ├── dummy-themepark/         # Theme Park legacy stub APK builder
│   └── hex-bridge/              # Native Android APK & Web Dashboard
│       ├── app.py               # Flask backend & REST API
│       └── build-apk/           # Java sources, AAPT2, D8, and compile scripts
├── bin/
│   └── oneui-themer             # Command line wrapper
├── docs/
│   ├── ONE_UI_9_THEME_ARCHITECTURE.md
│   ├── HEX_INSTALLER_REVERSE_ENGINEERING.md
│   └── FABRICATED_OVERLAYS_GUIDE.md
├── engine/                      # Core Python theming engine
│   ├── cli.py                   # Unified CLI tool
│   ├── fabricated.py            # Android Fabricated Overlay manager
│   ├── overlay_builder.py       # AAPT2 RRO APK compiler
│   ├── shizuku_bridge.py        # Privileged Shizuku (rish) bridge
│   └── system_properties.py     # One UI system settings manager
└── themes/                      # Theme profiles
    ├── amoled-pure-black/
    ├── cyberpunk-oneui/
    └── modern-monet-neon/

🚀 Quick Start

1. Prerequisites

  • Samsung Galaxy device running One UI 6.x – 9.0
  • Shizuku running via Wireless Debugging or Root
  • Termux with git and python installed

2. Inspect Theming Status

./bin/oneui-themer status

3. Apply Hex Installer Compatibility Fix

./bin/oneui-themer fix-hex

4. Apply a Modern Theme Profile

./bin/oneui-themer apply themes/amoled-pure-black/theme.json

📱 Building the HexBridge Pro Native APK

To compile and sign the native companion app directly on your Android device:

cd apps/hex-bridge/build-apk
./compile.sh

The compiled APK will be automatically signed and placed into /storage/emulated/0/Download/HexBridge_Pro.apk.


🛠️ Reverse Engineering Summary

Our full reverse engineering breakdown of project.vivid.hex.bodhi reveals:

  1. Setup Check (Theme Park): Evaluates Settings.System.getString("current_sec_active_themepackage").startsWith("com.samsung.themedesigner").
  2. Build Failures: Legacy Hex Installer attempts to build overlay APKs with deprecated resource IDs against legacy AAPT toolchains.
  3. Modern Alternative: Using native Fabricated Overlays avoids AAPT fragmentation and provides 100% compatibility across all One UI versions.

For detailed analysis, refer to docs/HEX_INSTALLER_REVERSE_ENGINEERING.md.


📄 License

MIT License. See LICENSE for details.

OneUI-Theme-Engine

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages