Skip to content

About

A MediaTek-first Android gaming optimization Magisk module with hardware monitoring, game detection, adaptive resource management, and thermal-aware profiles. Built with Rust.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

AB GameBoost (ABGB)

ABGB is a game-aware Android resource monitoring foundation. Version 0.1 discovers hardware interfaces, reads telemetry, detects configured game packages, classifies thermal status, and presents dry-run profiles. It does not write to /sys or /proc, tune clocks, change governors, or disable thermal protection.

Layout

  • daemon/: Rust CLI and polling daemon, split by hardware, telemetry, game detection, profiles, thermal, state, and logging.
  • config/profiles.json: four policy profiles, adaptive polling intervals, and Mobile Legends (com.mobile.legends) as the initial supported game.
  • module/: Magisk module metadata and lifecycle scripts. Place the Android ARM64 binary at module/abgb when packaging.
  • docs/: architecture, hardware support, build, and safety notes.
  • tests/: mock filesystem integration test.

Build and run

Rust stable is required. From the repository root, build and run the host CLI:

cargo build --release
cargo run -- info
cargo run -- hardware
cargo run -- monitor
cargo run -- profile list
cargo run -- profile show gaming
cargo run -- profile set gaming
cargo run -- session --once
cargo run -- session --interval-ms 1500

For Android ARM64 cross-compilation, see docs/HARDWARE_SUPPORT.md. Pass a device config with --config /absolute/path/profiles.json, or set ABGB_CONFIG to an absolute path. If no module config exists, the binary uses its embedded safe defaults; it never searches the current working directory. profile set is deliberately non-persistent; edit default_profile in JSON to change the daemon's selected default. Add games under games using exact Android package IDs.

session prints newline-delimited JSON with game presence, foreground state, session start/duration, detection diagnostics, and telemetry. --once prints one sample; --interval-ms N overrides adaptive intervals for that run. The default config includes Mobile Legends (com.mobile.legends) with foreground, background, and idle polling intervals.

Magisk installation

Build/copy the ARM64 binary to module/abgb, ensure scripts retain executable permissions, include config/profiles.json, and package the contents of module/ as a Magisk module ZIP. The service waits for sys.boot_completed, checks the binary, and restarts it after exit. Service logs are size-limited with one rotated backup. Uninstall has no hardware changes to reverse.

Limitations

GPU telemetry varies by kernel and may be unavailable. Thermal thresholds are informational generic values and do not replace device kernel policy. Runtime validation on the Galaxy A12 and ADB cross-checks have not been performed. No controller, persistent profile switching, or automatic restore writes are implemented.

About

A MediaTek-first Android gaming optimization Magisk module with hardware monitoring, game detection, adaptive resource management, and thermal-aware profiles. Built with Rust.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages