Overview
While tools like EnergizedProtection and AdAway offer powerful ad-blocking capabilities, they frequently require manual terminal interaction, companion app permissions, or external server dependencies.
Created by programminghoch10, MagicalProtection provides a streamlined, set-and-forget approach to system-wide adblocking. Inspired by the convenience of EnergizedProtection and the architecture of Magisk Magic Mount, MagicalProtection bundles a pre-compiled, highly optimized hosts file directly into the module. It requires no configuration, no companion APK, and operates completely systemlessly.
Architectural Advantages
- No Systemless Hosts Dependency: Unlike AdAway which requires enabling Magisk’s internal Systemless Hosts toggle in settings, MagicalProtection directly binds its curated
/system/etc/hostsfile during boot. - Dual Version Tracking: Release tags utilize an explicit two-tier format—such as
mv19-hv121—wheremvdenotes the module script version andhvdenotes the hosts database revision. - Automated Upstream Sync: The module repository utilizes automated GitHub Actions pipelines to pull, validate, and deduplicate authoritative blocking lists on a recurring schedule.
- POSIX-Compliant Shell Logic: Clean, standards-compliant shell scripts eliminate boot stalls and syntax errors across different Android Toybox and BusyBox environments.
Installation
- Download the latest
MagicalProtection-mv*-hv*.zippackage from GitHub releases. - Open Magisk Manager, navigate to Modules > Install from storage, and select the zip archive.
- Reboot your Android device.
- Ad and tracker blocking is immediately active across all browsers, web views, and native applications.
Uninstallation
To restore stock host resolution, simply disable or remove MagicalProtection from Magisk Manager and reboot. The stock /system/etc/hosts file will remain completely untouched.
