Hybrid Mount

Hybrid Mount is a mount logic metamodule implementation for KernelSU and APatch. It manages module file integration into the Android system using a combination of OverlayFS and bind mounts (Magic Mount).

The project includes a WebUI dashboard for module management and configuration.

🇨🇳 中文 (Chinese)


Technical Overview

Mounting Strategies

The core binary (meta-hybrid) determines the mounting method for each module directory based on configuration and system compatibility:

  1. OverlayFS: Uses the kernel’s OverlayFS to merge module directories with system partitions. This is the default strategy for supported filesystems.
  2. Magic Mount: Uses recursive bind mounts to mirror modified file structures. This serves as a fallback strategy when OverlayFS is unavailable or fails.

Functionality


Configuration

Configuration is stored at /data/adb/meta-hybrid/config.toml.

ParameterTypeDefaultDescription
moduledirstring/data/adb/modules/Path to the module source directory.
mountsourcestringAuto-detectMount source label (e.g., KSU, APatch).
partitionslist[]List of partitions to explicitly manage.
overlay_modestringtmpfsBackend for loop devices (tmpfs, ext4, erofs).
disable_umountboolfalseIf true, skips unmounting the original source (debug usage).
backupobject{}Settings for boot snapshot retention.

WebUI

The project provides a web-based interface built with SolidJS.


Build Instructions

The project uses xtask for build automation.

Prerequisites

Compilation

  1. Full Build (Binary + WebUI):

    cargo run -p xtask -- build --release
    

    Output will be generated in the output/ directory.

  2. Binary Only:

    cargo run -p xtask -- build --release --skip-webui
    

License

This project is licensed under the GPL-3.0 License.

Module Info

Search on : Google Bing Yandex