Magisk Module Logo
MagiskModule
AY ZRAM & Swap Optimizer logo

AY ZRAM & Swap Optimizer

Developed by @ahmedyasir2023

Dls
Ver
v16.0.0
Size
30.72 KB
Date
29 Oct 2026
ay-zram-swap-optimizer-ultimate-pro.md

AY ZRAM & Swap Optimizer Ultimate v16.0.0

Advanced Android Virtual Memory Management. Safety-First, Kernel-Aware, Reversible.

AY ZRAM & Swap Optimizer Ultimate is a safety-focused Android root module designed for conservative virtual memory tuning, kernel diagnostics, and ownership-aware configuration recovery.

Key Features

  • Three Profiles: Normal, Preferred & Maximum
  • Verified Swappiness Configuration
  • Active / Inactive / Unknown ZRAM Detection
  • Ownership-Aware Snapshot & Rollback
  • Kernel Parameter Diagnostics
  • Success / Partial / Failed Operation Reporting
  • Local Operation History & Troubleshooting
  • Modern Black & Gold WebUI
  • English & Arabic Interface with RTL Support
  • CLI Control for Advanced Users
  • Persistent Configuration & Upgrade-Aware State Management

Built With Safety In Mind

  • No automatic ZRAM resizing
  • No forced compression algorithm changes
  • No swapoff / swapon operations
  • No artificial RAM cleaning or forced compaction
  • No unnecessary background monitoring
  • No telemetry or external data uploads
  • No blind restoration over externally modified values

Profiles

  • NORMAL: Conservative baseline that preserves the kernel's current setting unless a safely verified module-owned change needs restoration.
  • PREFERRED: Requests a swappiness target of 100 when active ZRAM and safe application conditions are confirmed.
  • MAXIMUM: Requests a swappiness target of 120 for advanced, device-specific testing.

Important Notice

Profile values are configuration targets, not guaranteed performance improvements. Actual behavior depends on the Android version, kernel implementation, hardware, memory pressure, and workload.

V16 reads additional VM parameters for diagnostics without automatically modifying them. Physical-device compatibility and performance improvements must be validated on the target device.

Changelog V16.0.0 (Release Date: 2026-10-28)

Core Engine & Safety

  • Improved kernel write verification using actual read-back values.
  • Introduced per-parameter ownership tracking.
  • Added per-boot snapshots and safer rollback conditions.
  • Prevented automatic restoration over values changed externally.
  • Improved atomic state and configuration file updates.
  • Enhanced boot identity validation.
  • Improved conservative lock handling and concurrency protection.

ZRAM & Memory Management

  • Added explicit ACTIVE / INACTIVE / UNKNOWN ZRAM states.
  • Refined profile application rules.
  • Normalized success, partial, and failed operation results.
  • Added meaningful exit codes and parameter-level status reporting.
  • Removed automatic modifications to additional VM tunables that lack a universal performance justification.
  • Preserved existing ZRAM configuration and swap-device setup.

WebUI & User Experience

  • Redesigned the interface with a modern black-and-gold theme.
  • Added responsive layouts and Arabic RTL support.
  • Improved current profile and applied-state reporting.
  • Added kernel parameter readings and diagnostic information.
  • Improved operation history and output inspection.
  • Added Preview Only behavior when the required execution bridge is unavailable.
  • Improved error handling and prevention of misleading success messages.

Installation & Maintenance

  • Preserved the original module ID for compatibility.
  • Added persistent configuration outside the module installation directory.
  • Improved profile and history migration handling.
  • Updated documentation and troubleshooting guidance.
  • Added automated host-side regression testing.

Performance & Compatibility

  • Reduced unnecessary background activity.
  • No artificial RAM cleaning or forced memory compaction.
  • No unverified FPS, battery-life, or performance claims.
  • Added explicit compatibility limitations and a real-device validation plan.

Validation Status

Automated host-side tests use mock kernel interfaces. Physical-device installation, root-manager WebUI integration, vendor-kernel compatibility, and performance measurements have not yet been verified.

V15 Upgrade Note

Legacy V15 snapshots lack sufficient per-parameter ownership information for safe automatic rollback. V16 does not blindly restore those snapshots. Follow the upgrade instructions in the documentation before relying on V16 state tracking.

Developer Information

  • Developer: Eng. Ahmed Yasir
  • Project: AY ZRAM & Swap Optimizer Ultimate
  • Version: 16.0.0

Reviews (3)

H
@Haruko

Can I combo all your module?

ahmedyasir2023
@ahmedyasir2023

You can install **AY MODULE SENTINEL X** and it will tell you about all other conflicting modules.

ahmedyasir2023
@ahmedyasir2023

Yes Bro.