An interactive, fast, and visual Android storage analysis tool. It extracts storage details (both Internal Storage and external SD cards) from your connected Android device via ADB and generates a premium, interactive Treemap HTML visualization of space consumption.
- β‘ Fast Startup: Powered by
uvfor ultra-fast virtual environment creation and package installation. - π Interactive Treemap: Generates an HTML report (
storage_visualisation.html) using Plotly with dynamic hover details (exact size in MB/GB, share of parent folder, and share of total storage). - π Full Storage Deep Scan: Parses the entire
/storagedirectory, mapping:- Internal Storage (
/storage/emulated/0displayed asInternal_Storage) - Physical/External SD Card storage (
/storage/XXXX-XXXXdisplayed with its breakdown)
- Internal Storage (
- π Auto-clean Logic: Safely ignores non-leaf nodes (parent directory totals) to prevent visualization layout crashes.
- π‘οΈ Error Resilience: Handles permission denied directories gracefully and ensures the scan completes.
Before running the tool, ensure you have the following installed and configured:
- Python 3.8+: Ensure Python is added to your system
PATH. - Android SDK Platform Tools (ADB):
- Ensure
adbis installed and globally accessible in your systemPATH. - Enable USB Debugging on your Android device (Settings -> Developer Options -> USB Debugging).
- Connect the device via USB and authorize the computer when prompted.
- Ensure
- uv (Optional but Recommended): If installed, the script will utilize it for blazing-fast package management. If not, it falls back to standard
pipautomatically.
- Clone or download this repository to your computer.
- Double-click or run the startup batch script:
start.bat
- The script will:
- Create and activate a Python virtual environment (
.venv). - Auto-install/update required libraries (
pandas,plotly) usinguv(orpip). - Run an ADB command to scan files on the device.
- Run the Python parser and generator.
- Automatically open the final interactive
storage_visualisation.htmlreport in your default web browser.
- Create and activate a Python virtual environment (
- ADB File Scan: Runs a fast list query using
du -ak /storageto find sizes of all files/directories on the device. - Data Cleansing: A python script processes paths, converts KB to MB/GB, filters out intermediate parent directory totals to avoid visualization schema errors, and separates Internal Storage and SD Card routes.
- Plotly Visualization: Renders a gorgeous Treemap visualization showing storage consumers recursively, colored by size intensity.