cleanyourandroid 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +167 -0
  3. package/package.json +1 -2
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CleanYourAndroid Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md ADDED
@@ -0,0 +1,167 @@
1
+ # CleanYourAndroid
2
+
3
+ <p align="center">
4
+ <strong>Production-Grade Android Debloating, Customization, and Device Management Toolkit</strong>
5
+ </p>
6
+
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/cleanyourandroid"><img src="https://img.shields.io/npm/v/cleanyourandroid.svg?style=flat-square&color=E50914" alt="npm version" /></a>
9
+ <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="License" /></a>
10
+ <a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D20-brightgreen.svg?style=flat-square" alt="Node version" /></a>
11
+ <a href="https://developer.android.com/tools/adb"><img src="https://img.shields.io/badge/Android-ADB%20Non--Root-orange.svg?style=flat-square" alt="Android ADB" /></a>
12
+ <a href="https://github.com/topics/android"><img src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey.svg?style=flat-square" alt="Platform" /></a>
13
+ </p>
14
+
15
+ ---
16
+
17
+ ## ⚡ Overview
18
+
19
+ **CleanYourAndroid (`cya`)** gives everyday Android users complete control over their smartphones **without requiring root access**.
20
+
21
+ Inspired by the raw industrial elegance of **Nothing OS**, **Linear**, and **Material 3**, CleanYourAndroid lets you connect via **USB** or **Android 11+ Wireless Debugging** to safely inspect hardware sensors, remove OEM bloatware in user-space, tune fluid 0.25x–0.50x lightweight animation curves, adjust display densities, inspect live running processes, mirror screens, and audit your device for Android upgrades and Project Treble GSIs.
22
+
23
+ ---
24
+
25
+ ## 🌟 Key Features
26
+
27
+ ### 🔌 Universal ADB Connection Manager
28
+ - Auto-detects connected USB devices, unauthorized states, and Wi-Fi ADB devices.
29
+ - Connects to Wi-Fi ADB (`cya connect <host> [port]`).
30
+ - Supports **Android 11+ Wireless Debugging Pairing Codes** (`cya pair <host> <port> <code>`).
31
+ - Injection-safe execution using typed array arguments with `child_process.spawn`.
32
+ - Auto-detects local Android SDK platform-tools on Windows, macOS, and Linux without requiring manual PATH exports.
33
+
34
+ ### 🛡️ Evidence-Based Debloater Engine
35
+ - Curated bloatware profiles for **Samsung**, **Xiaomi / Redmi / POCO**, **OnePlus**, **Realme**, **Motorola**, **Google Pixel**, and **Nothing**.
36
+ - Safe non-root user-space isolation (`pm uninstall -k --user 0`).
37
+ - **Universal Safety Guard**: Hardcoded bootloop-protection locks critical Android core components (`SystemUI`, `Settings`, `Telephony`, `PackageInstaller`, `Play Services`).
38
+ - Dry-run simulation mode (`--dry-run`).
39
+ - Instant user-space reinstallation mechanism (`cmd package install-existing <package>`).
40
+
41
+ ### 🪶 Lightweight & Fluid Animations Engine
42
+ - Instant speed presets to eliminate perceived touch latency on 60Hz, 90Hz, and 120Hz displays:
43
+ - **`0.35x` Featherweight Fluid (Best Balance)**: Retains high-refresh-rate motion physics with near-zero latency.
44
+ - **`0.25x` Lightning Snappy**: Ultra-fast UI for older and budget devices.
45
+ - **`0.50x` Nothing OS Crisp**: Snappy, modern dot-matrix pacing.
46
+ - **`1.00x` Stock Android Default**: Standard manufacturer animation duration curves.
47
+ - Custom precision decimal scale slider.
48
+
49
+ ### 📲 OS Modernizer & Android Upgrade Hub
50
+ - Hardware capability diagnostics for **Project Treble**, **VNDK version**, and **A/B Partition Schemes**.
51
+ - **Generic System Image (GSI) target identification** (e.g. `arm64_bvN` for modern Android 15/16).
52
+ - Step-by-step guides for **Dynamic System Updates (DSU)**, bootloader unlocking, and official LineageOS custom ROMs.
53
+
54
+ ### 🖥️ Desktop Studio Dashboard
55
+ - Modern web dashboard built with **React 19**, **Vite**, and **Tailwind CSS**.
56
+ - **📸 Live Screen Mirroring & Capture**: Take instant high-res screenshots over ADB and inspect the phone's live display.
57
+ - **⚡ One-Click App Cache Trimmer**: Free up storage and RAM by clearing inactive app caches via ADB `trim-caches`.
58
+ - **📊 Real-Time Storage & RAM Diagnostics**: Inspect internal storage usage and active physical memory in real time.
59
+ - **⚡ Running Processes Inspector**: Monitor live system tasks, PID, user, `%CPU`, and `%MEM`.
60
+ - **🚀 Deep Settings Intent Launchers**: Remotely trigger Developer Options, Battery Saver, and Display settings directly on your phone screen.
61
+
62
+ ---
63
+
64
+ ## 🚀 Quick Start Guide
65
+
66
+ ### 1. Run Directly with NPX (No Installation Needed)
67
+ ```bash
68
+ npx cleanyourandroid
69
+ ```
70
+
71
+ ### 2. Global Installation
72
+ ```bash
73
+ # Using npm
74
+ npm install -g cleanyourandroid
75
+
76
+ # Using pnpm
77
+ pnpm add -g cleanyourandroid
78
+ ```
79
+
80
+ ---
81
+
82
+ ## 📱 Connecting Your Phone
83
+
84
+ ### Method A: USB Cable (Easiest)
85
+ 1. On your phone, go to **Settings** > **About Phone**.
86
+ 2. Tap **Build Number** 7 times to unlock **Developer Options**.
87
+ 3. Go to **Settings** > **Developer Options** > Turn on **USB Debugging**.
88
+ 4. Connect your phone with a USB cable.
89
+ 5. Tap **"Always allow from this computer"** on your phone screen.
90
+
91
+ ### Method B: Wireless Debugging (No Cable, Android 11+)
92
+ 1. Ensure your PC and phone are on the same Wi-Fi network.
93
+ 2. In **Developer Options**, tap **Wireless Debugging** > **"Pair device with pairing code"**.
94
+ 3. Run the pairing command:
95
+ ```bash
96
+ cya pair <IP> <PAIRING_PORT> <6-DIGIT_CODE>
97
+ ```
98
+ 4. Connect using the main connection port displayed on your phone:
99
+ ```bash
100
+ cya connect <IP> <CONNECTION_PORT>
101
+ ```
102
+
103
+ ---
104
+
105
+ ## 💻 CLI Commands Reference
106
+
107
+ | Command | Description |
108
+ | :--- | :--- |
109
+ | `cya` | Launch the interactive terminal UI |
110
+ | `cya doctor` | Diagnose ADB binary, drivers, and device permissions |
111
+ | `cya devices` | List connected USB and Wi-Fi Android devices |
112
+ | `cya connect <host> [port]` | Connect to a device via IP and port |
113
+ | `cya pair <host> <port> <code>`| Pair through Android 11+ Wireless Debugging |
114
+ | `cya info` | Display hardware, software, display DPI, and battery sensors |
115
+ | `cya apps [--filter <type>]` | List installed applications (`all`, `system`, `3rd-party`, `disabled`) |
116
+ | `cya debloat [--dry-run]` | Inspect and safely remove OEM bloatware |
117
+ | `cya themes [--apply <id>]` | Apply curated aesthetic theme presets |
118
+ | `cya customize` | Tune animation scales, DPI overrides, and system dark mode |
119
+ | `cya backup [-o <dir>]` | Create a snapshot manifest of packages and settings |
120
+ | `cya restore <file>` | Restore packages and appearance settings from manifest |
121
+
122
+ ---
123
+
124
+ ## 🎨 Theme Presets
125
+
126
+ - **Nothing OS Vibe (`nothing-os`)**: Minimalist glyph dot-matrix aesthetic, 0.5x snappy animations, AMOLED dark background, Nothing red accent.
127
+ - **Pixel Material You (`pixel-material-you`)**: Fluid 1.0x expressive physics, rounded shapes, pastel accents.
128
+ - **Samsung One UI (`samsung-oneui`)**: Ergonomic thumb-reach spacing, dense widgets, 0.75x responsive curves.
129
+ - **Pure Monochrome (`minimal-monochrome`)**: Zen distraction-free greyscale focus, 0.25x instant response.
130
+ - **Deep AMOLED Midnight (`amoled-dark`)**: Pitch-black `#000000` background to minimize power draw on OLED screens.
131
+
132
+ ---
133
+
134
+ ## 🖥️ Running the Desktop Studio Locally
135
+
136
+ ```bash
137
+ # Clone the repository
138
+ git clone https://github.com/cleanyourandroid/cleanyourandroid.git
139
+ cd cleanyourandroid
140
+
141
+ # Install dependencies
142
+ pnpm install
143
+
144
+ # Build all packages
145
+ pnpm run build
146
+
147
+ # Start the desktop studio
148
+ pnpm --filter @cleanyourandroid/desktop run dev
149
+ ```
150
+
151
+ Open your browser at **`http://localhost:5173/`**.
152
+
153
+ ---
154
+
155
+ ## 🧪 Automated Testing
156
+
157
+ The project includes unit and integration tests with a custom `MockAdbClient` that requires no physical phone connected:
158
+
159
+ ```bash
160
+ pnpm test
161
+ ```
162
+
163
+ ---
164
+
165
+ ## 📄 License
166
+
167
+ CleanYourAndroid is free and open-source software licensed under the [MIT License](LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cleanyourandroid",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "CleanYourAndroid CLI — open-source Android customization and debloating toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,4 +33,3 @@
33
33
  "typescript": "^5.7.3"
34
34
  }
35
35
  }
36
-