Caution
This utility was custom-built, fine-tuned, and tested specifically for the Nothing Phone (2a) powered by the MediaTek Dimensity 7200 Pro chipset.
- Hardware-Specific Features: Deep kernel-level mechanisms — including MediaTek CPUIdle C-States, MTK PPM core cluster parking, Nothing hardware charging bypass nodes (
/sys/class/power_supply/battery/charging_enabled), and MTK FPSGO / GED rendering schedulers — are explicitly mapped for this device and chipset. - Other Devices / Chipsets (Snapdragon, Google Tensor, Exynos, Unisoc): While standard Android framework modules (Force Doze OS Layer, App Standby Buckets Guard, Hardware Sensor Firewall, Google TCP BBR, App Freezer, Resolution & DPI scaling) are universally compatible across ARM64 Android, chipset-specific kernel paths will not function or may cause instability on non-target devices.
- ZERO RESPONSIBILITY DISCLAIMER: If you choose to install or run this utility on any other device or chipset, you do so STRICTLY AT YOUR OWN RISK. The developer assumes ABSOLUTELY NO RESPONSIBILITY for bootloops, system freezes, kernel crashes, or hardware malfunctions on unsupported hardware.
Phone Control is a high-performance, modular system control and tuning suite engineered for rooted Android devices. Built with strict event-driven architecture, it delivers fine-grained kernel control, deep battery conservation, intelligent load-balancing AI modes, hardware-level display management, and network packet optimization without background polling overhead.
- Architecture Overview
- Core Functional Modules
- Universal Protected Whitelist System
- System Operating Modes & AI Engine
- Master Management & Safe Revert Architecture
- Installation & Requirements
- Build Instructions
- Disclaimer & Safety
┌──────────────────────────────────────────────┐
│ Phone Control UI │
│ (Material 3 / ViewBinding / Kotlin Flow) │
└──────────────────────┬───────────────────────┘
│
┌──────────────────────▼───────────────────────┐
│ MasterManager │
│ • Selective Sub-Feature Hierarchy Control │
│ • Atomic Revert & State Synchronization │
└───────┬──────────────────────────────┬───────┘
│ │
┌───────────────▼──────────────┐ ┌─────────────▼──────────────┐
│ AutoTweakService │ │ MultitaskingManager │
│ (Event-Driven Broadcasts) │ │ (7-Layer Kernel Whitelist) │
└───────────────┬──────────────┘ └─────────────┬──────────────┘
│ │
┌───────▼──────────────────────────────▼───────┐
│ Root Executive Layer (Native Shell) │
│ • Kernel Sysfs / Procfs Nodes │
│ • Android Framework AppOps / DeviceIdle │
│ • Iptables / TC Packet Shaping │
│ • MediaTek PPM / CPUIdle C-States │
└──────────────────────────────────────────────┘
- Zero-Polling Event Engine (
AutoTweakService): Eliminates CPU drain by relying strictly on Android OS broadcast triggers (ACTION_SCREEN_OFF,ACTION_SCREEN_ON,CONNECTIVITY_ACTION,BATTERY_CHANGED) rather than infinite background sleep loops. - Root Abstraction Interface (
ShellUtils): High-speed concurrent and synchronous root command execution supporting Magisk, KernelSU, and APatch root providers. - Fail-Safe Persistence: Preferences are stored in structured XML tables and validated at boot time (
BootReceiver) to ensure settings persist smoothly across device restarts.
Engineered to deliver aggressive battery preservation through distinct Android architectural layers:
- ⚡ Force Doze Mode [OS Framework Layer]:
- Bypasses Android's default 60-minute motion-sensing idle countdown.
- Forces the device into deep Doze state (
dumpsys deviceidle force-idle) immediately when the screen turns off. - Provides an optional toggle to bypass light-doze maintenance windows.
- 📦 App Standby Buckets Guard [Process Runtime Layer]:
- Demotes background battery drains into the Android
RESTRICTEDstandby bucket upon screen lock. - Protects critical user apps in the permanent
ACTIVEstandby bucket. - Includes 1-Click instant action buttons:
APPLY RESTRICTED BUCKETS NOWandRESET ALL APPS TO ACTIVE BUCKET.
- Demotes background battery drains into the Android
- 🌙 Super Doze Deep Sleep [Kernel / CPU Hardware Layer]:
- Activates deep CPU C-States (Core Parking & 400MHz idle frequencies) on MediaTek Dimensity architecture.
- Suppresses background Google Cloud master synchronization (
master_sync_enabled 0). - Blocks non-critical kernel wakelocks (
wlan_wake,wlan_rx_wake) to achieve near 0% overnight battery drop.
- 🔌 Charging Protection & Hardware Bypass Lab:
- Configurable Battery Charge Limit: Automatically stops charging at predefined thresholds (e.g., 80%) to prolong battery lifespan.
- Direct Hardware Bypass Charging: Powers the device directly from the charger without cycling the battery cell, preventing heat buildup during intensive gaming sessions.
- USB Fast Charge Force: Overrides USB power limits on low-output charging ports.
- 🛡️ Hardware Sensor Firewall:
- Permanent individual blocking switches for 5 hardware sensors: NFC, Gyroscope, Magnetometer/Compass, Motion Accelerometer, and Ambient Light.
- Auto-disables sensor power planes on screen off to prevent telemetry drain without breaking accessibility hooks.
Unlocks complete manual and automated control over hardware rendering, memory, and thermal governors:
- 🖥️ Display Resolution & Density Scaling:
- 1-Click resolution switcher (FHD+ 1080p, HD+ 720p, or Native default).
- Independent custom density (DPI) adjustments for optimized UI real estate and higher rendering framerates.
- 🔄 Dedicated Display Refresh Rate Controller:
- Direct hardware panel frequency locking: 60Hz, 90Hz, 120Hz, or Dynamic (LTPO/Adaptive).
- Full real-time synchronization with Operating Mode presets.
- ⚡ Dynamic ZRAM & Swappiness Engine:
- High-speed compressed physical RAM allocation (up to 8GB) using
zstd/lz4compression algorithms. - Dynamic kernel swappiness and dirty page writeback tuning for lag-free application switching.
- High-speed compressed physical RAM allocation (up to 8GB) using
- 💾 UFS Storage Boost:
- Automated filesystem trimming (
fstrim -v /data /system /cache) on boot and scheduled intervals. - I/O queue scheduler optimization (
mq-deadline,kyber,none) with elevated readahead buffers (2048KB).
- Automated filesystem trimming (
- 🌡️ Adaptive Thermal Management Engine:
- Real-time thermal sensor monitoring across CPU clusters and battery cells.
- Optional thermal throttle overrides for sustained gaming performance.
- 🧹 Deep System Optimization:
- Suppresses background system logging (
logd) overhead, flushes runtime ART cache, and adjusts kernel entropy pools.
- Suppresses background system logging (
Guarantees uninterrupted competitive gaming performance:
- 🎯 Game Turbo Suite:
- Auto-detects supported game packages (BGMI, PUBG, Genshin Impact, COD Mobile, etc.) upon launch.
- Sets top-priority CPU scheduling (
SCHED_FIFO/nice -20) and elevates GPU governor floor clocks.
- 🌐 Network Packet Guard:
- Implements
iptablesand Linux traffic control (tc) queue rules to prioritize gaming UDP/TCP packets over background sync tasks, eliminating ping spikes.
- Implements
- 📱 Per-App Display & Power Profiles:
- Assigns custom refresh rates, touch sampling rates, and performance governors individually per application.
Provides granular control over network modems and system telemetry:
- 📡 Smart Data Switcher:
- Fully event-driven logic that disables mobile data connectivity when connected to a stable Wi-Fi network and instantly restores it upon Wi-Fi disconnect.
- 🚀 Google TCP BBR Congestion Control:
- Forces the Linux kernel network stack to use Google's BBR (Bottleneck Bandwidth and RTT) congestion algorithm for enhanced bandwidth and lower latency.
- 📶 5G Modem Keepalive & Anti-Sleep:
- Prevents the cellular baseband modem from throttling to low-power 4G/3G states during standby, ideal for uninterrupted Wi-Fi hotspot sharing.
- 🗼 Home Cell Tower Lock:
- Locks connection to specific local PCI/EARFCN cell towers to prevent unwanted signal roaming and indoor network drops.
- 🔍 ANR-Free App Inspector & Deep Package Recovery:
- 100% Asynchronous Background Threading: Moves all package reflection and icon loading (
pm.getApplicationIcon()) off the UI thread, eliminating ANR (Application Not Responding) timeouts. - Instant In-Memory Search: Filters 400+ applications across memory caches in <1ms at fluid 120fps.
- Deep Hidden Package Discovery: Queries hidden flags (
MATCH_UNINSTALLED_PACKAGES,MATCH_DISABLED_COMPONENTS) and root command fallbacks (pm list packages -d -u) to detect apps hidden by OEM/terminal commands (pm hide). - Dedicated "Disabled / Hidden" 3rd Tab: Instant one-stop view for all frozen, disabled, hidden, and suspended applications.
- Color-Coded Status Badges:
- 🔴
HIDDEN(#FF1744) — Packages hidden viapm hide. - 🟠
DISABLED(#FF9100) — Packages disabled viapm disable/pm disable-user. - 🔵
FROZEN(#00E5FF) — Apps frozen by Phone Control Linux CGroups. - 🟣
SUSPENDED(#E040FB) — Packages suspended viapm suspend. - ⚪
STOPPED(#888888) — Standard stopped processes.
- 🔴
- 1-Tap Unhide & Full System Restore: Unified restore command (
pm default-state --user 0,pm unhide,pm enable,pm unsuspend) that restores launcher icons and restores the "Open" button in Google Play Store.
- 100% Asynchronous Background Threading: Moves all package reflection and icon loading (
- 🛡️ Per-App Network Firewall:
- Individual per-app internet blocking (Wi-Fi and Cellular) via
iptablespacket filtering.
- Individual per-app internet blocking (Wi-Fi and Cellular) via
- 🌐 Private DNS Switcher & Ad-Blocker + Quick Settings Tile:
- Zero VPN Overhead: Manipulates Android's global secure DNS framework (
settings put global private_dns_mode&private_dns_specifier) with 0% battery impact or throughput slowdowns. - Built-in DNS Providers:
- 🛡️ AdGuard DNS (
dns.adguard-dns.com): System-wide ad-blocking and anti-tracking across all apps, browsers, and mobile games. - ⚡ Cloudflare 1.1.1.1 (
one.one.one.one): Ultra-fast, privacy-preserving DNS resolution. - 🔍 Google DNS (
dns.google): High-reliability global recursive DNS. - 🌐 Off / Automatic: Restores standard ISP DNS configuration.
- 🛡️ AdGuard DNS (
- Quick Settings (QS) Tile Integration: Includes a custom
PrivateDnsTileServiceallowing users to cycle through DNS profiles directly from the Android notification shade with real-time status badges.
- Zero VPN Overhead: Manipulates Android's global secure DNS framework (
- 📶 Root Wireless ADB Suite & Smart Port Auto-Sleep:
- One-Tap Wireless Debugging: Enables high-speed wireless ADB (
setprop service.adb.tcp.port) with elevated root permissions without requiring physical USB tethering or PC pairing prompts. - Custom Port Configuration: Flexible port selection across non-privileged ranges (
1024..65535) with instant 1-tap reset to default port5555. - Smart Port Auto-Sleep Engine (Anti-Drain & Security Guard): Event-driven monitor in
AutoTweakServicethat automatically suspends the listening ADB daemon port when disconnected from Wi-Fi, Mobile Hotspot, or USB Tethering networks, preventing battery drain over cellular (Mobile Data) and offline standby, protected by a 15-second anti-flapping debounce delay. - Instant Auto-Reopen on Network Recovery: Reopens listening ports immediately when connecting to Wi-Fi, starting a Mobile Hotspot, or plugging into USB Tethering, broadcasting real-time network roaming alerts and IP/port status toasts.
- Quick Settings (QS) Tile Integration: Custom
WirelessAdbTileServicedisplays live<ip>:<port>status and provides 1-tap toggling directly from the Android Quick Settings shade.
- One-Tap Wireless Debugging: Enables high-speed wireless ADB (
Maintains clean, uncluttered application lifecycles:
-
🎛️ Smart Audio Equalizer Guard (0ms Auto-Sleep Engine):
- The Problem: Third-party equalizer and DSP apps keep persistent wake-locks alive even when music is paused, causing major standby battery drain.
- Hardware-Level Playback Listener: Connects directly to Android's
AudioManager.AudioPlaybackCallbackwith zero background polling loops. - 0ms Instant Unfreeze on Music: The instant Spotify, YouTube, or any media player begins playback, Equalizer is unfrozen via Linux CGroups in <1 millisecond — delivering full bass and treble on the very first beat.
- 30-Second Grace Pause Buffer: When music pauses or tracks change, a 30-second countdown runs before entering sleep. Seeking, switching songs, or browsing playlists never triggers false hibernations.
- Zero Audio Dropouts: Active streams are strictly guarded, ensuring 100% continuous, crystal-clear audio.
-
🎵 Built-in Studio Equalizer & Audiophile DSP Engine:
- Hardware-Accelerated Biquad Filters: Uses Android 9+
DynamicsProcessingfor true multi-band parametric and graphic equalization with zero latency and high dynamic range. - 48-Band Live Real-Time FFT Spectrum Visualizer: Real-time dancing neon cyan/violet spectrum bars and floating peak-decay indicators rendered beneath the Bézier spline curve via
android.media.audiofx.Visualizer. - AutoEQ Headphone Database: Built-in Harman Target calibrated compensation profiles for Nothing Ear (2), Nothing Ear (a), Nothing Ear (1), Sony WH/WF-1000XM5/XM4, Apple AirPods Pro 2 / Max, Sennheiser HD600 / Momentum 4, Moondrop Chu II / Aria, boAt, Realme, and Phone Speaker Clarity Guard with instant 1-tap search and calibration.
- ViPER FX Suite:
- Differential Surround: Haas effect 3D spatial soundstage widening with phase delay matrix.
- Reverberation: Acoustic room reflections across Small Room, Medium Room, Large Room, Concert Hall, and Studio Plate.
- Dynamic System: Harmonic bass diaphragm resonance exciter.
- ViPER Audio Clarity: Natural vocal and high-frequency treble exciter.
- Acoustics & Spatial Imaging:
- Bauer Stereo Crossfeed: Acoustic crosstalk simulation to eliminate headphone ear fatigue.
- L/R Channel Balance: Fine-grained left/right channel balance (-100 to +100).
- Smart Output Auto-Switcher: Auto-switches between dedicated Headphone and Phone Speaker profiles upon 3.5mm plug or Bluetooth A2DP connect/disconnect.
- Poweramp Profile Hub: Full import/export compatibility with Poweramp Equalizer JSON presets (
.json) and custom user preset naming & storage.
- Hardware-Accelerated Biquad Filters: Uses Android 9+
-
❄️ App Freezer & Special Hibernation Engine:
- 3-Tab Modular Architecture: Dedicated tab navigation separating Standard Freeze (Kernel/Process-level), Special Freeze (
pm suspend), and Settings & FGS Immunity configuration. - Dual Hibernation Tiers:
- Normal Freeze (
cgroup v2/am freeze+ SIGSTOP): Suspends process execution with 0ms instant wake and zero memory overhead while keeping normal launcher icons. - Special Freeze (
am force-stop+pm suspend): Suspends the entire package, grays out launcher icons, and disallows waking intents, integrated seamlessly with 1-tap launcher widgets.
- Normal Freeze (
- Foreground Service (FGS) Immunity Guard: Intelligent foreground service inspector protecting active downloads, audio playback, navigation, and critical foreground tasks from background suspension.
- Recents Dismissal Auto-Freeze & Cold Launch Protection: Automatically freezes apps upon swiping away from Recents, backed by verified launcher detection and cold-start debounce guards that eliminate premature auto-closing bugs.
- Active Task & Recents Synchronizer: Real-time active task tracking ensures no app is hibernated while in active foreground use or present in Recents until explicitly dismissed.
- High-Performance RecyclerView Architecture: Re-engineered with native AndroidX
RecyclerViewand view recycling, capable of smoothly rendering and scrolling 150+ hibernating applications at 120Hz with <10ms load times and zero ANR risk. - System Apps Hibernation & Bloatware Control: Allows freezing unused preinstalled system applications via a dedicated 3-way filter (
👤 User Apps,⚙️ System Apps,All Apps), protected by a hardcodedCRITICAL_SYSTEM_PACKAGESguardrail preventing disruption to core OS components. - Smart Equalizer Audio Guard & Rich Target Picker: Keeps external audio equalizers (e.g., Poweramp Equalizer, ViPER4Android, Wavelet) responsive with 0ms instant unfreeze when music plays and 15s auto-sleep on pause. Features a searchable app picker with app icons, application names, and package IDs.
- 3-Tab Modular Architecture: Dedicated tab navigation separating Standard Freeze (Kernel/Process-level), Special Freeze (
-
📊 Live Running Services & Process Monitor:
- Ultra-Fast Background Parser (<100ms): Direct
dumpsys activity servicesparser inspects active processes, PID numbers, and/proc/$pid/oom_score_adjstates in real time with zero UI latency. - FGS vs Background Separation: Clearly differentiates between active Foreground Services (🟢 FGS - downloads, audio streams, active sync) and background workers (🟡 Background), ensuring active download tasks (e.g. SpeedDown) remain uninterrupted.
- Expandable Service Hierarchy: 1-tap chevron expansion reveals exact service class names (e.g.
MediaService,DownloadService) running inside each application process. - 1-Tap Instant Clean Stop: Direct
am force-stopintegration cleanly terminates stubborn bound services (including Android JobScheduler/WorkManager bound services like Google Photos) with zero ANR risk. - Multi-Chip Categorization & Search: Real-time search by app or service name, accompanied by instant filter chips (
All,🟢 Active FGS / Downloads,🟡 Background,👤 User Apps,❄️ Freezer Apps,⚙️ System).
- Ultra-Fast Background Parser (<100ms): Direct
-
📥 Universal System Default Package Installer & Deep Auditor:
- System-Wide "Open With" / Default Installer: Registers global intent filters for
VIEWandINSTALL_PACKAGEhandling.apk,.xapk,.apks, and.apkmfiles from any third-party app (Chrome, WhatsApp, Telegram, Google Files, Solid Explorer). Users can set Phone Control as their permanent system package installer ("Always"). - Translucent Floating Window (
Theme.PhoneControl.Transparent): Slides a sleek, dark glass bottom sheet over whatever app you are currently browsing, without disturbing your task context or launching a full-screen window. - Deep Pre-Install Inspection & Sub-Package Discovery:
- Extracts app icon, app label, and primary package ID.
- Detects and displays
sharedUserIdand bundled split modules (e.g.base,config.arm64_v8a,config.xxhdpi).
- Dual Version Comparison:
- Side-by-side display of currently installed version (Name + Build code) vs incoming new version (Name + Build code).
- Color-coded status badges: 🟢
App Upgrade, 🔵Re-install / Same Version, 🔴Version Downgrade, and ✨Fresh App Installation.
- Full 3-SDK Compatibility Span:
- MIN SDK: Displays minimum required Android version (e.g.
API 32 (Android 12L)). - TARGET SDK: Displays targeted platform level (e.g.
API 36 (Android 16)). - MAX SDK: Extracted directly from binary
AndroidManifest.xml(<uses-sdk android:maxSdkVersion="...">). If no upper limit is specified by the developer, it prominently highlightsNo Limit (All Versions)in vibrant green (#00E676).
- MIN SDK: Displays minimum required Android version (e.g.
- File Specs: Real-time package size calculation and Single APK vs Split Bundle classification.
- Clean DEX Tracker & Privacy Audit:
- Real-time byte inspection of
classes*.dexstreams detecting 14+ ad networks and telemetry SDKs (AdMob, Firebase, Meta Ads, AppsFlyer, Adjust, Unity Ads, AppLovin, ByteDance/Pangle, Vungle, etc.). - Zero-false-positive dictionary architecture (Base64 signature isolation + self-scan bypass).
- Audit badges for critical sensitive permissions (Camera, Mic, Location, Storage, Overlay, etc.).
- Real-time byte inspection of
- Stoppage Diagnostics & Safe Force Install:
- When Android blocks an installation, an interactive diagnostic sheet explains the root cause in plain language (Signature mismatch conflict, version downgrade protection, deprecated target SDK).
- Zero Data Loss Guarantee: Archives
/data/data/<pkg>withtar -czfbefore force reinstallation, providing a 1-click Restore Data button upon completion.
- System-Wide "Open With" / Default Installer: Registers global intent filters for
-
🗑️ Root Bloatware Debloater:
- Safely disables or uninstalls carrier bloatware and unnecessary pre-installed OEM system packages.
-
📦 Installed App Extractor & Backup (.apk / .apks Split Bundle):
- Intelligent Package Extraction: Lists all user and system applications with real-time package size, version code, and split count.
- Split Bundle Packaging (
.apks): Compresses modern multi-split Google Play apps (base APK + architecture libraries + language configs) into standard.apkszip archives using high-throughput JavaZipOutputStream. - Standalone APK Exporter: Exports non-split apps directly as single
.apkfiles. - 1-Tap Sharing & Direct Access: Integrates Android
FileProviderfor instant sharing via WhatsApp, Telegram, or Drive, plus 1-tap directory browsing (/sdcard/PHONE_CONTROL/extracted_apks/).
-
💬 WhatsApp & Telegram Duplicate Media & Junk Cleaner:
- Safe Storage Recovery: Scans and eliminates hidden redundant
/Sent/folders (videos, photos, audio, documents, GIFs), voice note caches, and sticker caches across WhatsApp, WhatsApp Business, Telegram, Telegram Plus, and Telegram X. - Strict Data Safety: Completely isolates personal received photos and videos; only deletes redundant sent copies that were already uploaded or delivered.
- High-Efficiency Cleanup: Tested to recover hundreds of megabytes of flash storage in seconds with live terminal log output.
- Safe Storage Recovery: Scans and eliminates hidden redundant
-
⚡ Storage Boost & Android 14
fstrimEngine:- Multi-Layer fstrim Execution: Uses Android framework's native
sm fstrimwith fallback tovdc cryptfs fstrimand direct partition trimming (toybox fstrim -v /data), eliminating missing binary errors on Nothing OS and Android 14. - Permanent Storage I/O Tuning: Increases storage read-ahead cache and configures the low-latency
mq-deadlinescheduler. - SQLite Database Vacuum: Compacts and optimizes app databases (
VACUUM&REINDEX) to reduce app launch lag. - Ghost / Orphaned App Residue Cleaner: Detects and cleans leftover folders in
/sdcard/Android/obb/and/sdcard/Android/data/for uninstalled packages.
- Multi-Layer fstrim Execution: Uses Android framework's native
-
🔐 App & Data Backup Vault:
- Backup and restore application APKs and internal private data (
/data/data/) locally.
- Backup and restore application APKs and internal private data (
-
🤖 Smart Per-App Profile Automation (Auto Rules Engine):
- Intelligent Foreground App Trigger: Detects application launches in 0ms and automatically applies bespoke hardware, display, battery, and focus rules.
- Performance & Display Profiles: Automatically sets Performance Mode (Turbo 2.8GHz), Balanced, or Power Saver (650M Floor), and locks refresh rate to 60Hz (saves 35-40% battery on YouTube/Netflix), 90Hz, or 120Hz.
- 🔌 Auto Bypass Charging: Direct wall adapter power delivery (0mA goes into battery) when demanding games or streaming apps run, eliminating 100% of charging heat during intense sessions.
- 🔕 Gaming DND (Do Not Disturb): Auto-suppresses calls and heads-up banner notifications while inside matches or reading sessions.
- ⚡ Touch Boost & Thermal Override: Unlocks ultra-low latency touch sampling and prevents premature thermal clock-drop for competitive gaming.
- 1-Tap Smart Rule Templates: Instant 1-click profiles for
🎮 Pro Gamer,🎬 Cinema & Video Streaming,📖 Deep Reader / Battery Saver, and⚙️ Custom Rules. - 0ms Atomic State Restoration: The instant the user presses Home or switches out of the app, all original baseline system settings (CPU mode, refresh rate, bypass charging, DND) are seamlessly and completely restored.
To eliminate app kill issues with critical utilities (such as Key Mapper, accessibility gesture tools, alarms, and messaging apps), Phone Control features a Universal Protected Whitelist Engine managed via MultitaskingManager.kt.
Adding an application once to the Universal Whitelist automatically grants an unbroken 7-Layer Kernel & OS Exemption:
// 1. Android Standard DeviceIdle Doze Whitelist
dumpsys deviceidle whitelist +$packageName
// 2. Android Deep Idle Sleep Exemption
dumpsys deviceidle except-idle-whitelist +$packageName
// 3. Android AppOps Background Execution Permit
cmd appops set $packageName RUN_IN_BACKGROUND allow
// 4. Android AppOps Unrestricted Background Run Permit
cmd appops set $packageName RUN_ANY_IN_BACKGROUND allow
// 5. Android AppOps Input Hook & Wakelock Permit
cmd appops set $packageName WAKE_LOCK allow
// 6. Permanent Active Standby Bucket (Never Demoted to Restricted)
am set-standby-bucket $packageName active
// 7. Prevent Inactivity Marking
cmd activity set-inactive $packageName falsePhone Control replaces traditional static governors with a 4-Stage Progressive Dynamic EAS Ladder engineered specifically for the MediaTek Dimensity 7200 Pro (6 Little Cortex-A510 + 2 Big Cortex-A715 cores):
┌────────────────────────────────────────────────┐
│ STAGE 4: Extreme Unleashed Raw Turbo │
│ 6 Little @ 2.0GHz | 2 Big @ 2.8GHz │
│ [BGMI 90fps / 3D Gaming / 4K Video Export] │
└───────────────────────▲────────────────────────┘
│ >90% Load / Game Turbo
┌───────────────────────┴────────────────────────┐
│ STAGE 3: Balanced Dual-Cluster Compute │
│ 6 Little @ 2.0GHz | 2 Big @ 1.5GHz │
│ [HDR Camera / Video Timeline Editing] │
└───────────────────────▲────────────────────────┘
│ 70-90% Load
┌───────────────────────┴────────────────────────┐
│ STAGE 2: 120Hz Pure 6-Core Fluidity │
│ 6 Little @ 1.25G-2.0G | Big @ 400MHz Sleep│
│ [Rapid App Switching / Heavy Scroll] │
└───────────────────────▲────────────────────────┘
│ 35-70% Load
┌───────────────────────┴────────────────────────┐
│ STAGE 1: Super Cool Pure Eco Base │
│ 6 Little @ 650M-950M | Big @ 400MHz Sleep│
│ [Reading / YouTube / Chatting / Settings] │
└───────────────────────▲────────────────────────┘
│ Screen On (0-35% Load)
┌───────────────────────┴────────────────────────┐
│ SCREEN-OFF: 0.05W Standby Deep Sleep │
│ 6 Little @ 480MHz | Big @ 400MHz Sleep │
└────────────────────────────────────────────────┘
| Stage | Target CPU Load | 6 Little Cores (0–5) | 2 Big Cores (6–7) | Real-World Use Cases | Thermal / Power |
|---|---|---|---|---|---|
| 💤 Standby Sleep | Screen Locked | 480 MHz (Min Floor) |
400 MHz (Deep Sleep) |
Phone in pocket / Overnight | ~0.05W (0% overnight drain) |
| 🟢 Stage 1 (Eco) | 0% – 35% |
650M ➔ 850M ➔ 950M |
400 MHz (Deep Sleep) |
Reading, YouTube, WhatsApp, Settings | Ice Cold (<33°C, 0.12W) |
| 🔵 Stage 2 (Fluid) | 35% – 70% |
1.25 GHz ➔ 2.0 GHz |
400 MHz (Deep Sleep) |
120Hz Fast App Carousel & Scrolling | Butter Smooth 120fps |
| 🟡 Stage 3 (Compute) | 70% – 90% |
2.0 GHz |
1.5 GHz (Cool Clock) |
HDR Camera processing, Video editors | Balanced (<38°C) |
| 🔴 Stage 4 (Turbo) | >90% / Gaming |
2.0 GHz (Max) |
2.8 GHz (Full Turbo) |
BGMI 90fps, Genshin, 4K Rendering | Maximum Peak Performance |
🔐 Hidden Test Lab & Biometric Screen Lock Protection
For safety and clean UI presentation, the Stage Override Test Lab is hidden by default:
- Activation Trigger: Long-press on the "Operation Mode Control" card on the main dashboard.
- Biometric Authentication: A Material confirmation dialog prompts for device authentication via Android's
KeyguardManager(supporting Fingerprint, PIN, Pattern, or Password). - Instant Lock: Includes a dedicated
[✕ Lock]button in the Test Lab header to immediately conceal and lock the laboratory card. - ⚡ Apply Selected Mode Button: Allows instant 0ms manual re-application with toast verification.
Phone Control integrates natively into Nothing OS & Android 16's Control Center / Notification Shade with a dedicated Mode Control QS Tile (ModeControlTileService):
-
1-Tap Instant Mode Cycling: Tap the tile anytime from any app, full-screen video, or game without opening Phone Control to cycle between:
$$\text{AI Auto} \longrightarrow \text{Balanced} \longrightarrow \text{Power Saver} \longrightarrow \text{Performance} \longrightarrow \text{AI Auto}$$ -
Live Dynamic State & Subtitle:
- 🤖 Mode: AI Auto — Subtitle shows live active AI stage (AI: Eco Active, AI: Daily Fluent, AI: Extreme Turbo).
- ⚡ Mode: Balanced — Subtitle: Pure 6-Core Fluid (120Hz).
- 🔋 Mode: Power Saver — Subtitle: 650MHz Ice Eco.
- 🚀 Mode: Performance — Subtitle: Turbo 2.8GHz Unleashed.
-
Immediate Audio-Visual Feedback: Dispatches clear on-screen Toast alerts upon each tap, and broadcasts
UPDATE_UIevents to immediately update radio buttons and status headers in the main app.
Upon phone reboot or restart (ACTION_BOOT_COMPLETED), Android executes heavy initialization workloads (DEX bytecode optimization, media scanner, Google Play sync, app widgets, and launcher caching).
- Boot Time Acceleration (0 – 90 Seconds / 1.5 Minutes):
- Little Cores (0–5) unlock to
2.0 GHzand Big Cores (6–7) unlock to2.8 GHz(Stage 4 Turbo). - Ensures all startup tasks complete within the first 90 seconds with zero boot-time lag or UI sluggishness.
- Little Cores (0–5) unlock to
- Automatic Eco Transition (After 90 Seconds):
- Automatically transitions down to the user's configured mode (e.g. Stage 1 Eco:
650 MHzBase Floor + Big Cores400 MHzDeep Sleep, ready to dynamically spike on touches and app loads). - Returns the device to an ultra-cool, power-saving idle state immediately after initialization.
- Automatically transitions down to the user's configured mode (e.g. Stage 1 Eco:
The Main Dashboard CPU Card features instant sub-frequency color telemetry and live hardware frequency readings directly on-screen without requiring terminal access:
- Stage 1 (Pure Eco):
- Cyan (
#00E5FF) @650 MHz—S1 • 650M(Static Screen, Reading, Normal Chat, Settings) - Yellow (
#FFD700) @850 MHz—S1 • 850M(Touch Burst, Fast Feed Scrolling, Rapid Typing) - Red (
#FF5252) @950 MHz—S1 • 950M(WhatsApp Video Call, PiP Floating Window, App Transitions)
- Cyan (
- Stage 2 (Fluid 120Hz):
- Green (
#69F0AE) @1.25GHz - 2.0GHz—S2 • 1.4G/S2 • 2.0G(6 Little Cores maxed, 2 Big Cores in 400MHz Deep Sleep)
- Green (
- Stage 3 (Dual-Cluster Compute):
- Yellow (
#FFD700) @2.0GHz + 1.5GHz—S3 • 2.0G(Camera HDR, Video Editing, Heavy Compute)
- Yellow (
- Stage 4 (Extreme Turbo):
- Red (
#FF5252) @2.0GHz + 2.8GHz—S4 • 2.8G(Full Turbo Unleashed for 3D Gaming & Benchmarks)
- Red (
WhatsApp, Telegram, Zoom, Google Meet, and Instagram video calls are intelligently handled by an automated hardware-level monitoring pipeline:
- Dual Hardware-Level Detection:
CameraManager.AvailabilityCallback: Connects directly to Android's camera subsystem. As soon as any application opens the camera sensor (onCameraUnavailable), the engine triggers instantly in 0ms.AudioManager.OnModeChangedListener(MODE_IN_COMMUNICATION): Detects active VoIP call sessions and telephony communication states without polling loops.
- Instant 950MHz Little Core Lock:
- Even if the device is currently running in Stage 1 (650MHz Strict Lock) or Power Saver Mode, the engine temporarily unlocks and locks all 6 Little Cores strictly to
950 MHz(scaling_max_freq = 950000&scaling_min_freq = 950000). - Provides jitter-free, 100% smooth 30-60fps hardware video decoding/encoding and Picture-in-Picture (PiP) window rendering.
- Even if the device is currently running in Stage 1 (650MHz Strict Lock) or Power Saver Mode, the engine temporarily unlocks and locks all 6 Little Cores strictly to
- 400MHz Deep Sleep on Big Cores:
- Both Big Cores (6 & 7) remain permanently clamped at
400 MHzDeep Sleep throughout the entire call. - Result: Ice-cold thermal performance (<34°C even during 1+ hour video calls) with near-zero battery drain.
- Both Big Cores (6 & 7) remain permanently clamped at
- Auto-Restore on Call End:
- The moment the video call terminates and the camera sensor is released (
onCameraAvailable+ audio mode reset), the engine immediately re-applies the user's base configured frequency (e.g. 650MHz Base Floor).
- The moment the video call terminates and the camera sensor is released (
- 👻 100% Invisible Background Architecture (Android 14 / 15 / 16):
- Operates without any persistent foreground notification banner or notification drawer clutter.
- Completely omitted from Android 14/15/16's default "Active Apps" / "Apps running in background" Quick Settings drawer.
- Maintained permanently alive through root-level Doze exemptions (
dumpsys deviceidle whitelist+appops RUN_IN_BACKGROUND allow).
Phone Control features a high-precision, studio-grade audio mastering suite built directly into the operating system's audio pipeline:
- Zero-Flashing Android Architecture:
- Runs 100% on Android's native
DynamicsProcessingframework andAudioEffectengine. - Completely eliminates the need for unstable Magisk modules or risky
/vendorHAL patches on Android 14, 15, and 16.
- Runs 100% on Android's native
- Poweramp JSON Preset Compatibility:
- Direct 1-tap parser for exported Poweramp Equalizer JSON profiles (both Graphic and Parametric formats).
- Pre-Bundled Audiophile Profiles:
- 🎵 DTS Sound Unbound profile: Punchy 90Hz low-shelf bass (+5.2dB) + ultra-clear 10kHz air treble (+3.0dB).
- 🎬 DTS Theater Mode: Cinema surround calibration with +7.5dB dynamic low-end boost and -1.0dB headroom preamp.
- 🍿 DTS Theater Mode 2: Extreme sub-bass (+8.0dB @ 31Hz & +7.0dB @ 62Hz) with -6.0dB clean preamp protection.
- 🎬 Dimensional 3D Theater (IMAX & Dolby Atmos Cinema): Comprehensive acoustic theater matrix combining +7.5dB sub-bass floor rumble, +2.8dB vocal presence, 80% Haas Differential Surround widening, Concert Hall reverberation, and 70% dynamic diaphragm drive.
- 🎸 My song 2 (Pure Parametric Biquad): Ultra-precise frequency notches and resonance points (77Hz Q=1.96, 178Hz Q=0.71, 1006Hz Q=4.28, 5689Hz Q=5.27).
- ⚡ Studio Flat (Bypass): Clean reference curve.
- 🛡️ Read-Only Factory Preset Protection & Custom Forking:
- Built-in factory presets (DTS profiles, Dimensional 3D Theater, etc.) can never be accidentally modified, overwritten, or corrupted.
- Adjusting any slider or setting instantly forks into a
Custom (Unsaved)profile, displaying a clear orange warning badge. - Users can save their custom sound signature under any custom name with a single tap, while the pristine factory preset remains permanently recoverable in 1 click.
- Storage Access Framework (SAF) JSON File Picker & Paste:
- Tap the
+icon in the Studio Equalizer top bar to open Android's native system Document Picker (com.android.documentsui) and select.jsonpreset files directly from Downloads, WhatsApp, or local storage. - Also supports direct copy-pasting of raw Poweramp JSON profile text strings.
- Tap the
- Live Dynamic Bézier Curve Visualizer:
- Renders a real-time glowing neon Bézier spline curve across 20Hz to 20kHz with logarithmic frequency interpolation.
- Hardware Preamp & Peak Limiter:
- Adjustable Preamp Gain (-12.0 dB to +12.0 dB).
- Integrated brickwall peak limiter ensures zero crackling, clipping, or audio distortion even under +9dB sub-bass loads.
- Master Tone & Spatial Controls:
- Tone Bass (90Hz Shelf) and Tone Treble (10kHz Shelf) sliders.
- Hardware Subwoofer Bass Boost and 3D Spatial Virtualizer.
- 🛡️ Zero-Dropout Audio Shield & Notification Bypass Protection:
- No Flickering / Dropout: Eliminates destructive
hasControl()effect teardowns inStudioDspManager.kt. Effects remain cleanly attached across playback transitions without volume dips or cutouts. - System Notification Filtering:
AutoTweakService.ktfilters outUSAGE_NOTIFICATION,USAGE_NOTIFICATION_COMMUNICATION_INSTANT, andUSAGE_ASSISTANCE_SONIFICATIONevents, ensuring incoming notification alerts and ringtones never disengage DSP filters or reset equalizers. - SystemUI Exclusion:
FreezerManager.ktexplicitly ignorescom.android.systemuiaudio streams, keeping media playback priority strictly on active music and video applications.
- No Flickering / Dropout: Eliminates destructive
- 🎧 AutoEQ Headphone Database Integration (
AutoEqManager):- Integrated database containing thousands of parametric compensation curves for consumer, audiophile, and studio monitor headphones.
- Instant search filter by headphone brand and model with 1-tap parametric EQ target curve application.
- 🎚️ 4-Tab Bottom Navigation Architecture:
- Effects Tab: Preamp Gain, Brickwall Peak Limiter, Equal Loudness Limiter, Bass Drive, and Dynamics Compressor.
- Apps & Cinema Tab: Per-app equalizer assignment, Cinema Voice Boost, and YouTube / Media player auto-switching.
- Spatial Tab: Differential Surround widening, Virtualizer, and Multi-Environment Acoustic Reverb.
- EQ Tab: 10-Band Graphic/Parametric Equalizer with Bézier curve visualizer and preset management.
Engineered for seamless wireless development and debugging over local Wi-Fi and Mobile Hotspot connections without cables or dynamic port confusion:
- ⚡ Fixed TCP/IP Port 5555 Daemon:
- Directly switches Android's
adbddaemon to listen on standardized port 5555 via root execution:setprop service.adb.tcp.port 5555; stop adbd; start adbd
- Eliminates the need to repeatedly enable Android 11+'s rotating dynamic pairing ports in Developer Options.
- Directly switches Android's
- 🔄 Boot & Restart Persistence:
- Automatically registered in
BootReceiver.kt. Whenever the device restarts, port 5555 is immediately re-opened in the background if the feature was enabled.
- Automatically registered in
- 📱 Dedicated Quick Settings (QS) Tile (
WirelessAdbTileService):- 1-Tap toggle in the notification shade to activate or deactivate wireless debugging on the fly.
- Dynamic Subtitle: Displays the active IP and port (e.g.
10.18.16.233:5555) orOff. - Auto-Clipboard Copy: Tapping the tile to enable immediately copies
adb connect <IP>:5555to the device clipboard for 1-click terminal execution on your computer.
- 📶 Mobile Hotspot-First IP Resolution:
- Intelligently scans network interfaces and prioritizes soft AP/Hotspot interfaces (
ap0,softap0,swlan0,rndis) over standard Wi-Fi (wlan0), ensuring immediate connectivity when working tethered to your phone.
- Intelligently scans network interfaces and prioritizes soft AP/Hotspot interfaces (
- 🧩 Fully Decoupled Architecture:
- Isolated into its own standalone card in Master Settings (
cardWirelessAdb), guaranteeing that toggling System Tools Hub or changing master optimization presets never accidentally disconnects your active ADB debugging session.
- Isolated into its own standalone card in Master Settings (
- Real-Time Floating Performance HUD (
FloatingHudService&HudTileService):- Draggable, ultra-compact on-screen overlay presenting live CPU frequencies for Little and Big core clusters, GPU clock speeds, real-time FPS counter, and battery/thermal temperatures.
- Dedicated Quick Settings Tile (
HudTileService) to toggle the overlay on and off instantly without opening the app.
- Granular Frequency Tuning (480 MHz – 2.8 GHz):
- Precision frequency limiters supporting every discrete CPU clock frequency on the Dimensity 7200 Pro, including the dedicated 750 MHz low-power step.
- Per-app CPU governor locks (
schedutil,performance,powersave) and interactive task affinity.
- Recents-Aware Streaming Priority:
- Smart priority scheduler detects active Picture-in-Picture (PiP) and background streaming apps (e.g., YouTube, Twitch, Spotify), providing a 4-second freeze debounce and progressive Energy-Aware Scheduling (EAS) to prevent audio stutters during multitasking.
Phone Control incorporates a Hierarchical Master Tweak Architecture:
- Master Category Toggles: Enabling a category activates its background engine while keeping sub-features selectively configurable. Turning OFF a master category immediately reverts all modified kernel parameters in that group.
- Emergency Revert Engine (
Revert All Modifications):- Restores all CPU/GPU governors to stock
schedutil. - Clears all
iptablespacket filters and network locks. - Restores display resolution, DPI, and refresh rate to manufacturer defaults.
- Re-enables all hardware sensors and resets all App Standby Buckets to
active. - Disables all feature flags and resets UI switches to a clean default state.
- Restores all CPU/GPU governors to stock
- Language: Kotlin 100%
- Target SDK: Android 14 / 15 (API 34/35)
- Minimum SDK: Android 12 (API 31)
- Root Provider: Native Root Shell Execution (
su/su -mm) - UI Components: Android Material 3 Design Components, ViewBinding, NestedScrollView
- Build System: Gradle Kotlin DSL / Groovy
- Primary Target Device: Nothing Phone (2a) (Model:
AIN142/A142) - Chipset Architecture: MediaTek Dimensity 7200 Pro (MT6886) (Required for 100% full hardware & kernel feature compatibility).
- Android Version: Android 12, 13, 14, 15, or 16 (Nothing OS 2.x / 3.x).
- Root Access: Superuser permissions granted via Magisk (v24.0+), KernelSU (v0.6.0+), or APatch.
- Storage Permissions: Required for backup/restore operations in App & Data Vault.
- Download the latest
app-debug.apkfrom the Releases section. - Install the APK on your device.
- Launch the app and grant Superuser (Root) access when prompted.
Clone the repository and build using Gradle:
# Clone the repository
git clone https://github.com/m4mental/phone-control.git
cd phone-control
# Build Debug APK
./gradlew assembleDebug
# Install to connected ADB device
adb install -r app/build/outputs/apk/debug/app-debug.apkWarning
Phone Control executes direct kernel and hardware-level modifications requiring Superuser privileges. While all tweaks are carefully designed with safety boundaries and verified on live hardware, the developers assume no responsibility for data loss, hardware damage, or warranty voidance. Always ensure you have a valid device backup and utilize the "Revert All Modifications" function before uninstallation.
This project is open-source software licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for more details.