跳到主要内容
KernelSU 模块

ClearBox

不可变 Release 已同步

A Magisk module dedicated to automatic cleaning and optimization of Android

介绍

ClearBox

ClearBox

License Downloads

Telegram QQ YHChat

🌍 ?

| English | 简体中文 | 正體中文 | Русский | 한국어 | 日本語 |

What is ClearBox?

ClearBox is a multi-functional, deep, and fast cleaning tool that can quickly free up space on your device, organize storage, lock, clear software caches, installation packages, compressed files, junk files, empty folders, suppress cache, classify files, clear data, and prevent software updates/installs all in one go. It also supports automatic optimization/cleaning, file categorization features, and allows you to add custom cleaning rules, file cleaning/organization categorization, whitelists, and other rules. Additionally, it supports adding custom tasks via an automation system using modules.

The execution time is much faster than regular cleaning software on the market, comparable to ✈️ speed. The automation function is only handled by a very low-usage Timed, so the overhead is negligible. No software background process is required, no forced app binding, and it supports full functionality through a terminal TUI.

image

Compatible with Magisk, APatch, KernelSU, and their various forks

Installation?

Release Version

CI Build

How to use:

:Install and use the module ClearBox app (asked during module installation

:Enable the terminal UI feature by typing ClearBox in any terminal

Brief functions:

One-click optimization & cleanup

Perform fast one-click optimization/cleanup, the effect is equivalent to periodic optimization. Including cache cleanup, junk cleanup, fast disk GC, etc. According to module settings, file cleanup/organization can also be run

Clean/Kill custom directories

This function is rule-based cleanup. You can add cleanup rules yourself in the /data/adb/wipe_cache/CleanConfigs directory.

Configuration method:

Rules use text format. Optionally fill in @/xxx (starting from the root directory) on the first line of the rule file to specify the initial directory. Different rule files are independent.

One file/directory path per line. If you have specified the initial path, you can fill in only the relative (initial directory) path instead of the full path.

Clear junk files & empty folders

Clean internal/external storage empty folders, multimedia cache, software cache, etc.

Clear all software cache

Clears third-party application caches, excluding system application caches. If you have enabled external storage cache cleaning, it will also clean external storage.

Deep File Cleaning

File cleaning function, comes with some built-in cleaning configurations, supports custom file format configurations, and supports external storage.

Configuration Method:

Configuration Directory: /data/adb/wipe_cache/FileConfigs

Configuration Approach: Create a .conf document file in the configuration file directory. The file name (without extension) will be displayed as the corresponding cleaning item name on the cleaning page. Fill in custom file extensions into this file, separated by spaces or line breaks. Lines beginning with # are comments.

Add @MAX or MIN = < size / B or BYTE / K or KB / M or MB / G or GB > within the file to specify the target file size range. Parsing is overwritable — later declarations override previous ones, so you can leverage this to craft your own rules.

Example:

# I am a comment

# This declaration specifies to only organize zip and 7z files with a max of 1G and min of 10MB
# but iso and img have no maximum size limit

@MAX=1/G @MIN=10/M

zip 7z

# max -1 means unlimited (max no longer applies until the next declaration), but min still applies

@max=-1
iso img

# Also supports KB, MB, GB &

@MIN=10/KB exe
@MIN=1/MB apk

Note:MIN cannot be greater than MAX, otherwise MIN is automatically invalidated. Please reset MAX before setting a larger MIN. MAX, MIN, and size units are case‑insensitive (you may have noticed :⁠-⁠)),Floating point numbers (decimals) are currently not supported.

The software/terminal cleaning page will be dynamically built based on the configuration files.

Scope: File cleaning, file organization.

Software rule cleanup

One of the rule cleanup functions, used to clean the internal private directory of software according to rules

Configuration method:

Configuration directory: /data/adb/wipe_cache/AppCleanRules

Configuration way:Create a conf file in the configuration directory. The file name is arbitrary but must not contain special symbols, spaces, etc. Fill in @<package_name>/<app_name> at the beginning of the first line to specify the software corresponding to this rule; After that, one folder path or file path per line. The initial directory is the App data directory.

The module will automatically find the data directory corresponding to the package name. The software name will be displayed in the cleanup interface

The software/terminal cleanup page will be dynamically built according to the configuration file

Please do not hard-code cleanup rules with root directory /xxx in the rules, otherwise cleanup will report an error and skip this rule file.

The module will automatically check some configuration errors

Clear system cache

Clear system software cache, system cache, and also clear MTP host data (can solve MTP file transfer file list display abnormality)

[Beta] Storage Analysis (NCDU)

Analyze storage directory usage – who ate my storage space?

Auto Cleanup

Feature automation, driven by the Timed component (ultra-low overhead).

• Did you know?

You can use the Timed module to run custom tasks! Follow the configuration below:

Config Directory: /data/adb/wipe_cache/TimedConfigs

Create a custom-named .conf file in this directory, fill in and modify the following lines (some are optional):

time=interval/time unit (currently supports M/minutes, H/hours, D/days)
date=last run time (timestamp number). This is an optional parameter. If not filled, the program will automatically set it to the current time. Set to -1 to execute immediately.
run=program and parameters to execute, supports Shell syntax (parsed by Shell)
in=start time/end time (only run between hour X and hour Y. This is an optional parameter)
post=notification title/notification content (send notification. This is an optional parameter; not recommended for minute-level tasks)

Among them, time and run are required fields, all KEYs are case-insensitive. Example:

time=1/D
date=0
run=sync
in=0/5
post=Test Run/Executed Sync

The above configuration will run the /system/bin/sync command once between 0:00 and 5:00 AM daily and send a notification.

image

Block All Software Update Installations

As the name implies, file system-level forced blocking of software installations, does not handle expanded storage, therefore if the software is installed on external storage, this item is invalid

Internal Storage Fix Function

As the name implies, locks the internal storage root directory layout to prevent various applications from randomly creating files/folders, does not handle expanded storage

Block cache function

This is an important function of the module, used to dynamically block foreground software from generating cache.

After turning on this function and restarting to activate, it will automatically cache the latest 5 foreground software and block cache. You can customize and add a whitelist.

Whitelist location: /data/adb/wipe_cache/whitelist.prop or add it in the module ClearBox app.

Other:The module adopts a dynamic wait update method (10s & 30s), on the one hand to avoid continuous resource occupation, on the other hand, some software will be abnormal when launched under the cache block state. Delayed activation of cache blocking after entering the software is the optimal solution.

Blocking cache will not clear the software cache, so the software cache will not be 0, but will grow slowly. This avoids continuous small file erasure and only limits large cache generation

Extremely low overhead, automatically delays execution when the screen is off

If some software is abnormal, please add it to the whitelist yourself!

Magnet (one-click file classification)

One-click organization of internal/external storage files, shares rules with file cleaning, supports custom organization directory

Rule Directory Binding (Redirect)

Configuration Directory:/data/adb/wipe_cache/BindConfigs

Create a custom name .conf file in this directory and fill in custom mount rules:

<Bind Directory> <Target Directory>

Note: Please do not enter absolute paths, but rather relative internal storage paths, otherwise mounting will fail

When writing/creating directories/files into , they will be redirected to

This feature cannot currently run on devices using sdcardfs, but don't worry, Android 12+ devices have basically stopped using sdcardfs

Disk & software optimization

This is an optimization function set, including disk optimization ( f2fs-GC ) and Dexoat (software pre-compilation) functions

F2fs disk GC, this function belongs to emergency GC, so it does not need to be used frequently, just run it regularly. The solution comes from the big guy Coolapk@Amktiao, and has been agreed, thanks to the big guy!

image

Dexoat software pre-compilation, that is, pre-compile software to accelerate runtime speed, the disadvantage is that it takes up storage space, which belongs to the space-electricity-for-smooth operation () The module provides three modes in advance: system default Dexoat, custom compilation mode, RESET:

System default Dexoat: Android system (especially newer systems) will also automatically compile some hotspot functions when idle to improve overall running speed, so the module provides system Dexoat mode, this mode is equivalent to manually triggering system Dexoat, the mode and compilation items are determined by the system.

Custom compilation mode:This mode supports manually specifying the compilation mode, currently supports Speed, Speed-profile, Everything three modes

RESET:Restore compilation

Welcome to contribute and participate in development in any form!

Welcome everyone to share your feedback & suggestions on the module features. Thank you.

👉 Development Guide

The module ClearBox App is made using the Kr-Script project. Thanks to the project.

Star History

Star History

历史版本

V5.2.1

最新 Version 5.2.1

版本代码 101 101-V5.2.1

下载
en-US

ADD

  • Storage analysis (NCDU) now supports displaying symlink types, performance optimization
  • Added cleanup of SystemServer crash logs
  • Added storage cleanup rule preset:
com.tencent.mobileqq   #QQ

UPDATE

  • File organization/cleanup concurrency support, allocated based on device CPU core multiplier, measured file organization speed up to x2
  • Unified module packaging, automatically extracts the corresponding architecture during installation, no extra storage space used
  • App UI theme, layout, animation optimization, upgraded library versions
  • Whitelist now also applies to system cache cleanup

FIX

  • Fixed a bug where file operations could freeze in some scenarios
  • Fixed abnormal animation in App transparent mode
zh-CN

ADD

  • 储存分析(NCDU)支持显示软链接类型,性能优化
  • 增加清理 SystemServer 崩溃日志
  • 新增储存清理规则预设:
com.tencent.mobileqq   #QQ

UPDATE

  • 文件归类/清理并发支持,根据设备 CPU 核倍数分配,实测文件归类速度最高 x2
  • 统一打包模块,安装时自动解压对应架构,不占用额外储存空间
  • App UI 主题、排版、动效优化,升级库版本
  • 现在白名单对系统缓存清理同样生效

FIX

  • 修复部分场景下文件操作可能卡死的 Bug
  • 修复 App 透明模式动画异常
zh-TW

ADD

  • 儲存分析(NCDU)支援顯示軟連結類型,效能最佳化
  • 增加清理 SystemServer 崩潰日誌
  • 新增儲存清理規則預設:
com.tencent.mobileqq   #QQ

UPDATE

  • 檔案歸類/清理並發支援,根據裝置 CPU 核心倍數分配,實測檔案歸類速度最高 x2
  • 統一打包模組,安裝時自動解壓對應架構,不佔用額外儲存空間
  • App UI 主題、排版、動效最佳化,升級函式庫版本
  • 現在白名單對系統快取清理同樣生效

FIX

  • 修復部分場景下檔案操作可能卡死的 Bug
  • 修復 App 透明模式動畫異常
ru-RU

ADD

  • Анализ хранилища (NCDU) теперь поддерживает отображение типов символических ссылок, оптимизация производительности
  • Добавлена очистка журналов сбоев SystemServer
  • Добавлен предустановленный набор правил очистки хранилища:
com.tencent.mobileqq   #QQ

UPDATE

  • Поддержка параллельной классификации/очистки файлов, распределение в зависимости от кратности ядер CPU устройства, измеренная скорость классификации файлов до x2
  • Унифицированная упаковка модуля, при установке автоматически распаковывается соответствующая архитектура, не занимает дополнительное пространство
  • Оптимизация темы, компоновки и анимации App UI, обновление версий библиотек
  • Теперь белый список также действует для очистки системного кэша

FIX

  • Исправлена ошибка, из-за которой файловые операции могли зависать в некоторых сценариях
  • Исправлена аномалия анимации в прозрачном режиме App
ko-KR

ADD

  • 저장소 분석(NCDU)이 심볼릭 링크 유형 표시 지원, 성능 최적화
  • SystemServer 충돌 로그 정리 추가
  • 저장소 정리 규칙 사전 설정 추가:
com.tencent.mobileqq   #QQ

UPDATE

  • 파일 분류/정리 동시 지원, 장치 CPU 코어 배수에 따라 할당, 실측 파일 분류 속도 최대 x2
  • 모듈 통합 패키징, 설치 시 해당 아키텍처 자동 압축 해제, 추가 저장 공간 사용 안 함
  • App UI 테마, 레이아웃, 애니메이션 최적화, 라이브러리 버전 업그레이드
  • 이제 화이트리스트가 시스템 캐시 정리에도 적용됨

FIX

  • 일부 시나리오에서 파일 작업이 멈출 수 있는 버그 수정
  • App 투명 모드 애니메이션 이상 수정
ja-JP

ADD

  • ストレージ分析(NCDU)がシンボリックリンクタイプの表示をサポート、パフォーマンス最適化
  • SystemServer クラッシュログのクリーニングを追加
  • ストレージクリーニングルールプリセットを追加:
com.tencent.mobileqq   #QQ

UPDATE

  • ファイル分類/クリーニングの並行処理をサポート、デバイスの CPU コア倍数に基づいて割り当て、実測ファイル分類速度最大 x2
  • モジュールを統合パッケージ化、インストール時に対応アーキテクチャを自動解凍、追加ストレージ容量を使用しない
  • App UI テーマ、レイアウト、アニメーションの最適化、ライブラリバージョンをアップグレード
  • ホワイトリストがシステムキャッシュクリーニングにも適用されるようになりました

FIX

  • 一部のシナリオでファイル操作がフリーズする可能性があるバグを修正
  • App の透明モードのアニメーション異常を修正

文件 1

ClearBox-V5.2.1-101.zip 3.1 MiB

SHA-256 2b2715837d328e8bd56314f6adcd0527f2a50445af21b1579e4a60bd3b400a28 · Attestation

透明度

Tag
101-V5.2.1 不可变 Release
Tag commit
bc9e9feb246d
内容 commit
49e7adf99123
SHA-256
2b2715837d328e8bd56314f6adcd0527f2a50445af21b1579e4a60bd3b400a28
最近同步到变更

自行复核

KernelSU 模块不对模块签名,也不审计模块代码。SHA-256 只证明下载内容与本索引一致。可使用 GitHub CLI 自行复核:

gh release verify 101-V5.2.1 -R FLYCOM-E/ClearBox
gh release verify-asset 101-V5.2.1 ClearBox-V5.2.1-101.zip -R FLYCOM-E/ClearBox