AdBlock & MIUI Download Speed Limit Remover icon

AdBlock & MIUI Download Speed Limit Remover

v1.7.0guidecommunity

Deep systemless adblocking engine and MIUI network throttling remover utilizing iptables, chattr, and hosts redirection to eliminate bloatware ads and bypass download restrictions.

Community Package•Networking & Proxies•by ZiXuan & MoLiRanRan•GPL-3.0-only•Updated Jan 1, 2023
Platforms:
✓ Magisk✓ KernelSU✓ APatch
Download v1.7.0Starting download...
adblock-miui-speed-limit-remover-v1.7.0.zip

Overview

AdBlock & MIUI Download Speed Limit Remover (authored by ZiXuan & MoLiRanRan) is an advanced systemless network filtering and ROM debloating suite engineered specifically for Xiaomi MIUI and HyperOS environments, while retaining full compatibility with generic AOSP-based firmwares.

In stock MIUI, Xiaomi implements system-level telemetry and ad networks primarily routed through AnalyticsCore, coupled with download bandwidth caps inside the system package installer and browser unless users possess VIP service tiers. This module addresses both issues simultaneously without modifying the physical /system block device.


Technical Architecture & How It Works

The module integrates multiple defense-in-depth layers operating across early initialization and runtime:

1. Telemetry Nullification via Stub APK Replacement

During Magisk overlay mounting, the module targets Xiaomi’s primary data harvesting package:

/system/app/AnalyticsCore/Analytics.apk
/system/app/AnalyticsCore/.replace

By placing an empty stub APK accompanied by the .replace directive, the Android PackageManager resolves the package as an inactive placeholder, completely neutralizing background telemetry and bandwidth policing without causing system crashes or bootloops.

2. High-Performance Hosts Routing

The module incorporates 42,390 verified advertising, tracker, and metrics domain entries routed to loopback (0.0.0.0):

0.0.0.0 ad.xiaomi.com
0.0.0.0 api.ad.intl.xiaomi.com
0.0.0.0 tracking.miui.com
0.0.0.0 sdkconfig.ad.xiaomi.com

The script verifies file uniqueness using sort | uniq and enforces strict Unix permissions (0644).

3. Screen-Wake Watchdog Daemon

Rather than running heavy polling loops during deep sleep, service.sh waits until user interaction is detected:

until $(dumpsys deviceidle get screen); do
    sleep 5
done

for i in $MODDIR/mod/*.sh; do
    nohup $i >/dev/null 2>&1 &
done

Once the screen is active, specialized mitigation scripts (killpangle.sh, ad.sh, aweme.sh, zhihu.sh) apply precise iptables and package manager restrictions to commercial ad SDKs embedded in third-party applications.


Verification & Operational Commands

Verify active hosts redirection and stub replacement:

# Test DNS null-routing for Xiaomi tracking
ping -c 1 ad.xiaomi.com

# Confirm AnalyticsCore stub mounting
pm path com.miui.analytics

Frequently Asked Questions

Does this module block downloads in third-party browsers?

No. It specifically eliminates manufacturer-enforced bandwidth throttling inside MIUI system downloaders and app stores while redirecting advertising tracking networks to 0.0.0.0.

Can I update the hosts file manually?

Yes. The module includes an update.sh script and reads custom rules from user configuration files located within the module directory.