cleanyourandroid 1.0.0 → 1.0.1
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.
- package/LICENSE +22 -0
- package/README.md +171 -0
- 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,171 @@
|
|
|
1
|
+
# CleanYourAndroid
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/cleanyourandroid/cleanyourandroid/main/docs/assets/banner.png" alt="CleanYourAndroid Banner" width="800" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>Production-Grade Android Debloating, Customization, and Device Management Toolkit</strong>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<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>
|
|
13
|
+
<a href="https://github.com/cleanyourandroid/cleanyourandroid/actions"><img src="https://img.shields.io/github/actions/workflow/status/cleanyourandroid/cleanyourandroid/ci.yml?branch=main&style=flat-square" alt="CI Status" /></a>
|
|
14
|
+
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="License" /></a>
|
|
15
|
+
<a href="https://www.npmjs.com/package/cleanyourandroid"><img src="https://img.shields.io/npm/dm/cleanyourandroid?style=flat-square&color=black" alt="Downloads" /></a>
|
|
16
|
+
<a href="https://github.com/cleanyourandroid/cleanyourandroid/stargazers"><img src="https://img.shields.io/github/stars/cleanyourandroid/cleanyourandroid.svg?style=flat-square" alt="GitHub stars" /></a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## ⚡ Overview
|
|
22
|
+
|
|
23
|
+
**CleanYourAndroid (`cya`)** gives everyday Android users complete control over their smartphones **without requiring root access**.
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 🌟 Key Features
|
|
30
|
+
|
|
31
|
+
### 🔌 Universal ADB Connection Manager
|
|
32
|
+
- Auto-detects connected USB devices, unauthorized states, and Wi-Fi ADB devices.
|
|
33
|
+
- Connects to Wi-Fi ADB (`cya connect <host> [port]`).
|
|
34
|
+
- Supports **Android 11+ Wireless Debugging Pairing Codes** (`cya pair <host> <port> <code>`).
|
|
35
|
+
- Injection-safe execution using typed array arguments with `child_process.spawn`.
|
|
36
|
+
- Auto-detects local Android SDK platform-tools on Windows, macOS, and Linux without requiring manual PATH exports.
|
|
37
|
+
|
|
38
|
+
### 🛡️ Evidence-Based Debloater Engine
|
|
39
|
+
- Curated bloatware profiles for **Samsung**, **Xiaomi / Redmi / POCO**, **OnePlus**, **Realme**, **Motorola**, **Google Pixel**, and **Nothing**.
|
|
40
|
+
- Safe non-root user-space isolation (`pm uninstall -k --user 0`).
|
|
41
|
+
- **Universal Safety Guard**: Hardcoded bootloop-protection locks critical Android core components (`SystemUI`, `Settings`, `Telephony`, `PackageInstaller`, `Play Services`).
|
|
42
|
+
- Dry-run simulation mode (`--dry-run`).
|
|
43
|
+
- Instant user-space reinstallation mechanism (`cmd package install-existing <package>`).
|
|
44
|
+
|
|
45
|
+
### 🪶 Lightweight & Fluid Animations Engine
|
|
46
|
+
- Instant speed presets to eliminate perceived touch latency on 60Hz, 90Hz, and 120Hz displays:
|
|
47
|
+
- **`0.35x` Featherweight Fluid (Best Balance)**: Retains high-refresh-rate motion physics with near-zero latency.
|
|
48
|
+
- **`0.25x` Lightning Snappy**: Ultra-fast UI for older and budget devices.
|
|
49
|
+
- **`0.50x` Nothing OS Crisp**: Snappy, modern dot-matrix pacing.
|
|
50
|
+
- **`1.00x` Stock Android Default**: Standard manufacturer animation duration curves.
|
|
51
|
+
- Custom precision decimal scale slider.
|
|
52
|
+
|
|
53
|
+
### 📲 OS Modernizer & Android Upgrade Hub
|
|
54
|
+
- Hardware capability diagnostics for **Project Treble**, **VNDK version**, and **A/B Partition Schemes**.
|
|
55
|
+
- **Generic System Image (GSI) target identification** (e.g. `arm64_bvN` for modern Android 15/16).
|
|
56
|
+
- Step-by-step guides for **Dynamic System Updates (DSU)**, bootloader unlocking, and official LineageOS custom ROMs.
|
|
57
|
+
|
|
58
|
+
### 🖥️ Desktop Studio Dashboard
|
|
59
|
+
- Modern web dashboard built with **React 19**, **Vite**, and **Tailwind CSS**.
|
|
60
|
+
- **📸 Live Screen Mirroring & Capture**: Take instant high-res screenshots over ADB and inspect the phone's live display.
|
|
61
|
+
- **⚡ One-Click App Cache Trimmer**: Free up storage and RAM by clearing inactive app caches via ADB `trim-caches`.
|
|
62
|
+
- **📊 Real-Time Storage & RAM Diagnostics**: Inspect internal storage usage and active physical memory in real time.
|
|
63
|
+
- **⚡ Running Processes Inspector**: Monitor live system tasks, PID, user, `%CPU`, and `%MEM`.
|
|
64
|
+
- **🚀 Deep Settings Intent Launchers**: Remotely trigger Developer Options, Battery Saver, and Display settings directly on your phone screen.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 🚀 Quick Start Guide
|
|
69
|
+
|
|
70
|
+
### 1. Run Directly with NPX (No Installation Needed)
|
|
71
|
+
```bash
|
|
72
|
+
npx cleanyourandroid
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### 2. Global Installation
|
|
76
|
+
```bash
|
|
77
|
+
# Using npm
|
|
78
|
+
npm install -g cleanyourandroid
|
|
79
|
+
|
|
80
|
+
# Using pnpm
|
|
81
|
+
pnpm add -g cleanyourandroid
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 📱 Connecting Your Phone
|
|
87
|
+
|
|
88
|
+
### Method A: USB Cable (Easiest)
|
|
89
|
+
1. On your phone, go to **Settings** > **About Phone**.
|
|
90
|
+
2. Tap **Build Number** 7 times to unlock **Developer Options**.
|
|
91
|
+
3. Go to **Settings** > **Developer Options** > Turn on **USB Debugging**.
|
|
92
|
+
4. Connect your phone with a USB cable.
|
|
93
|
+
5. Tap **"Always allow from this computer"** on your phone screen.
|
|
94
|
+
|
|
95
|
+
### Method B: Wireless Debugging (No Cable, Android 11+)
|
|
96
|
+
1. Ensure your PC and phone are on the same Wi-Fi network.
|
|
97
|
+
2. In **Developer Options**, tap **Wireless Debugging** > **"Pair device with pairing code"**.
|
|
98
|
+
3. Run the pairing command:
|
|
99
|
+
```bash
|
|
100
|
+
cya pair <IP> <PAIRING_PORT> <6-DIGIT_CODE>
|
|
101
|
+
```
|
|
102
|
+
4. Connect using the main connection port displayed on your phone:
|
|
103
|
+
```bash
|
|
104
|
+
cya connect <IP> <CONNECTION_PORT>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## 💻 CLI Commands Reference
|
|
110
|
+
|
|
111
|
+
| Command | Description |
|
|
112
|
+
| :--- | :--- |
|
|
113
|
+
| `cya` | Launch the interactive terminal UI |
|
|
114
|
+
| `cya doctor` | Diagnose ADB binary, drivers, and device permissions |
|
|
115
|
+
| `cya devices` | List connected USB and Wi-Fi Android devices |
|
|
116
|
+
| `cya connect <host> [port]` | Connect to a device via IP and port |
|
|
117
|
+
| `cya pair <host> <port> <code>`| Pair through Android 11+ Wireless Debugging |
|
|
118
|
+
| `cya info` | Display hardware, software, display DPI, and battery sensors |
|
|
119
|
+
| `cya apps [--filter <type>]` | List installed applications (`all`, `system`, `3rd-party`, `disabled`) |
|
|
120
|
+
| `cya debloat [--dry-run]` | Inspect and safely remove OEM bloatware |
|
|
121
|
+
| `cya themes [--apply <id>]` | Apply curated aesthetic theme presets |
|
|
122
|
+
| `cya customize` | Tune animation scales, DPI overrides, and system dark mode |
|
|
123
|
+
| `cya backup [-o <dir>]` | Create a snapshot manifest of packages and settings |
|
|
124
|
+
| `cya restore <file>` | Restore packages and appearance settings from manifest |
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 🎨 Theme Presets
|
|
129
|
+
|
|
130
|
+
- **Nothing OS Vibe (`nothing-os`)**: Minimalist glyph dot-matrix aesthetic, 0.5x snappy animations, AMOLED dark background, Nothing red accent.
|
|
131
|
+
- **Pixel Material You (`pixel-material-you`)**: Fluid 1.0x expressive physics, rounded shapes, pastel accents.
|
|
132
|
+
- **Samsung One UI (`samsung-oneui`)**: Ergonomic thumb-reach spacing, dense widgets, 0.75x responsive curves.
|
|
133
|
+
- **Pure Monochrome (`minimal-monochrome`)**: Zen distraction-free greyscale focus, 0.25x instant response.
|
|
134
|
+
- **Deep AMOLED Midnight (`amoled-dark`)**: Pitch-black `#000000` background to minimize power draw on OLED screens.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 🖥️ Running the Desktop Studio Locally
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# Clone the repository
|
|
142
|
+
git clone https://github.com/cleanyourandroid/cleanyourandroid.git
|
|
143
|
+
cd cleanyourandroid
|
|
144
|
+
|
|
145
|
+
# Install dependencies
|
|
146
|
+
pnpm install
|
|
147
|
+
|
|
148
|
+
# Build all packages
|
|
149
|
+
pnpm run build
|
|
150
|
+
|
|
151
|
+
# Start the desktop studio
|
|
152
|
+
pnpm --filter @cleanyourandroid/desktop run dev
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Open your browser at **`http://localhost:5173/`**.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## 🧪 Automated Testing
|
|
160
|
+
|
|
161
|
+
The project includes unit and integration tests with a custom `MockAdbClient` that requires no physical phone connected:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
pnpm test
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## 📄 License
|
|
170
|
+
|
|
171
|
+
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.
|
|
3
|
+
"version": "1.0.1",
|
|
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
|
-
|