@mmmbuto/gemini-cli-termux 0.22.6-termux → 0.24.0-termux
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/README.md +24 -21
- package/bundle/README.md +239 -0
- package/bundle/docs/TERMUX.md +97 -0
- package/bundle/docs/architecture.md +80 -0
- package/bundle/docs/assets/connected_devtools.png +0 -0
- package/bundle/docs/assets/gemini-screenshot.png +0 -0
- package/bundle/docs/assets/release_patch.png +0 -0
- package/bundle/docs/assets/theme-ansi-light.png +0 -0
- package/bundle/docs/assets/theme-ansi.png +0 -0
- package/bundle/docs/assets/theme-atom-one.png +0 -0
- package/bundle/docs/assets/theme-ayu-light.png +0 -0
- package/bundle/docs/assets/theme-ayu.png +0 -0
- package/bundle/docs/assets/theme-custom.png +0 -0
- package/bundle/docs/assets/theme-default-light.png +0 -0
- package/bundle/docs/assets/theme-default.png +0 -0
- package/bundle/docs/assets/theme-dracula.png +0 -0
- package/bundle/docs/assets/theme-github-light.png +0 -0
- package/bundle/docs/assets/theme-github.png +0 -0
- package/bundle/docs/assets/theme-google-light.png +0 -0
- package/bundle/docs/assets/theme-xcode-light.png +0 -0
- package/bundle/docs/changelogs/index.md +592 -0
- package/bundle/docs/changelogs/latest.md +225 -0
- package/bundle/docs/changelogs/preview.md +129 -0
- package/bundle/docs/changelogs/releases.md +896 -0
- package/bundle/docs/cli/authentication.md +3 -0
- package/bundle/docs/cli/checkpointing.md +94 -0
- package/bundle/docs/cli/commands.md +354 -0
- package/bundle/docs/cli/configuration.md +792 -0
- package/bundle/docs/cli/context-memory.md +69 -0
- package/bundle/docs/cli/custom-commands.md +315 -0
- package/bundle/docs/cli/enterprise.md +565 -0
- package/bundle/docs/cli/gemini-ignore.md +71 -0
- package/bundle/docs/cli/gemini-md.md +108 -0
- package/bundle/docs/cli/generation-settings.md +210 -0
- package/bundle/docs/cli/headless.md +388 -0
- package/bundle/docs/cli/index.md +63 -0
- package/bundle/docs/cli/keyboard-shortcuts.md +143 -0
- package/bundle/docs/cli/model-routing.md +37 -0
- package/bundle/docs/cli/model.md +62 -0
- package/bundle/docs/cli/sandbox.md +171 -0
- package/bundle/docs/cli/session-management.md +158 -0
- package/bundle/docs/cli/settings.md +114 -0
- package/bundle/docs/cli/system-prompt.md +93 -0
- package/bundle/docs/cli/telemetry.md +791 -0
- package/bundle/docs/cli/themes.md +237 -0
- package/bundle/docs/cli/token-caching.md +20 -0
- package/bundle/docs/cli/trusted-folders.md +95 -0
- package/bundle/docs/cli/tutorials.md +83 -0
- package/bundle/docs/cli/uninstall.md +47 -0
- package/bundle/docs/core/index.md +101 -0
- package/bundle/docs/core/memport.md +244 -0
- package/bundle/docs/core/policy-engine.md +267 -0
- package/bundle/docs/core/tools-api.md +131 -0
- package/bundle/docs/examples/proxy-script.md +83 -0
- package/bundle/docs/extensions/extension-releasing.md +183 -0
- package/bundle/docs/extensions/getting-started-extensions.md +245 -0
- package/bundle/docs/extensions/index.md +293 -0
- package/bundle/docs/faq.md +154 -0
- package/bundle/docs/get-started/authentication.md +321 -0
- package/bundle/docs/get-started/configuration-v1.md +888 -0
- package/bundle/docs/get-started/configuration.md +1511 -0
- package/bundle/docs/get-started/deployment.md +143 -0
- package/bundle/docs/get-started/examples.md +219 -0
- package/bundle/docs/get-started/gemini-3.md +116 -0
- package/bundle/docs/get-started/index.md +71 -0
- package/bundle/docs/get-started/installation.md +141 -0
- package/bundle/docs/hooks/best-practices.md +806 -0
- package/bundle/docs/hooks/index.md +665 -0
- package/bundle/docs/hooks/reference.md +168 -0
- package/bundle/docs/hooks/writing-hooks.md +1026 -0
- package/bundle/docs/ide-integration/ide-companion-spec.md +267 -0
- package/bundle/docs/ide-integration/index.md +202 -0
- package/bundle/docs/index.md +147 -0
- package/bundle/docs/integration-tests.md +211 -0
- package/bundle/docs/issue-and-pr-automation.md +134 -0
- package/bundle/docs/local-development.md +128 -0
- package/bundle/docs/mermaid/context.mmd +103 -0
- package/bundle/docs/mermaid/render-path.mmd +64 -0
- package/bundle/docs/npm.md +62 -0
- package/bundle/docs/patches/CONTEXT_MEMORY_COMPARISON.md +306 -0
- package/bundle/docs/patches/MERGE_TO_0.24_ANALYSIS.md +321 -0
- package/bundle/docs/patches/README.md +62 -0
- package/bundle/docs/quota-and-pricing.md +158 -0
- package/bundle/docs/release-confidence.md +164 -0
- package/bundle/docs/releases.md +540 -0
- package/bundle/docs/sidebar.json +297 -0
- package/bundle/docs/termux-api/COMMANDS.md +592 -0
- package/bundle/docs/termux-api/DISCOVERY_SETUP.md +670 -0
- package/bundle/docs/termux-api/EXECUTION_PLAN.md +532 -0
- package/bundle/docs/termux-api/MERGE_STRATEGY.md +325 -0
- package/bundle/docs/termux-api/PATCHES.md +483 -0
- package/bundle/docs/termux-api/README.md +416 -0
- package/bundle/docs/tools/file-system.md +217 -0
- package/bundle/docs/tools/index.md +95 -0
- package/bundle/docs/tools/mcp-server.md +1044 -0
- package/bundle/docs/tools/memory.md +54 -0
- package/bundle/docs/tools/shell.md +260 -0
- package/bundle/docs/tools/todos.md +57 -0
- package/bundle/docs/tools/web-fetch.md +59 -0
- package/bundle/docs/tools/web-search.md +42 -0
- package/bundle/docs/tos-privacy.md +96 -0
- package/bundle/docs/troubleshooting.md +158 -0
- package/bundle/gemini.js +35198 -32245
- package/package.json +10 -8
|
@@ -0,0 +1,592 @@
|
|
|
1
|
+
# Termux-API Commands Reference
|
|
2
|
+
|
|
3
|
+
**Completeness**: 100% of Termux-API commands documented **Date**: 2025-12-17
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
This guide documents all available Termux-API commands, with parameters,
|
|
10
|
+
expected output, and integration priority.
|
|
11
|
+
|
|
12
|
+
**Prerequisite**: `pkg install termux-api` + Termux:API App installed from
|
|
13
|
+
F-Droid
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Commands by Category
|
|
18
|
+
|
|
19
|
+
### 1. System Information
|
|
20
|
+
|
|
21
|
+
#### termux-battery-status
|
|
22
|
+
|
|
23
|
+
**Description**: Device battery status **Parameters**: None **Output**: JSON
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"health": "GOOD",
|
|
28
|
+
"percentage": 85,
|
|
29
|
+
"plugged": "UNPLUGGED",
|
|
30
|
+
"status": "DISCHARGING",
|
|
31
|
+
"temperature": 28.5,
|
|
32
|
+
"current": -450000
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Priority**: HIGH **Notes**: Useful for battery-based automation
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
#### termux-audio-info
|
|
41
|
+
|
|
42
|
+
**Description**: Audio device information **Parameters**: None **Output**: JSON
|
|
43
|
+
with speaker/bluetooth/headset status **Priority**: MEDIUM
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
#### termux-wifi-connectioninfo
|
|
48
|
+
|
|
49
|
+
**Description**: Current WiFi connection info **Parameters**: None **Output**:
|
|
50
|
+
JSON with SSID, BSSID, IP, link_speed, rssi **Priority**: HIGH
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
#### termux-wifi-scaninfo
|
|
55
|
+
|
|
56
|
+
**Description**: Scan available WiFi networks **Parameters**: None **Output**:
|
|
57
|
+
JSON array of networks **Priority**: LOW
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
#### termux-telephony-deviceinfo
|
|
62
|
+
|
|
63
|
+
**Description**: Telephony device info **Parameters**: None **Output**: JSON
|
|
64
|
+
with IMEI, network_operator, sim_state, etc. **Priority**: MEDIUM **Privacy**:
|
|
65
|
+
Contains sensitive data
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
#### termux-telephony-cellinfo
|
|
70
|
+
|
|
71
|
+
**Description**: Cellular cell info **Parameters**: None **Output**: JSON with
|
|
72
|
+
cell tower info **Priority**: LOW
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
#### termux-info
|
|
77
|
+
|
|
78
|
+
**Description**: Termux system info **Parameters**: None **Output**: Text with
|
|
79
|
+
versions and paths **Priority**: HIGH (debug)
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
### 2. Notifications
|
|
84
|
+
|
|
85
|
+
#### termux-toast
|
|
86
|
+
|
|
87
|
+
**Description**: Show toast message **Parameters**:
|
|
88
|
+
|
|
89
|
+
- `-s` short duration
|
|
90
|
+
- `-g gravity` (top, middle, bottom)
|
|
91
|
+
- `-c color` background
|
|
92
|
+
- `-C color` text color **Input**: Text from stdin or argument **Output**: None
|
|
93
|
+
**Priority**: HIGH **Example**: `echo "Hello" | termux-toast -g top`
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
#### termux-notification
|
|
98
|
+
|
|
99
|
+
**Description**: Create persistent notification **Parameters**:
|
|
100
|
+
|
|
101
|
+
- `-t title`
|
|
102
|
+
- `-c content`
|
|
103
|
+
- `--icon icon_name`
|
|
104
|
+
- `--id notification_id`
|
|
105
|
+
- `--priority high|low|default`
|
|
106
|
+
- `--action action_name`
|
|
107
|
+
- `--on-delete command`
|
|
108
|
+
- `--button1 label:command`
|
|
109
|
+
- `--button2 label:command`
|
|
110
|
+
- `--button3 label:command`
|
|
111
|
+
- `--led-color RRGGBB`
|
|
112
|
+
- `--led-on ms`
|
|
113
|
+
- `--led-off ms`
|
|
114
|
+
- `--sound`
|
|
115
|
+
- `--vibrate pattern`
|
|
116
|
+
- `--type default|media`
|
|
117
|
+
- `--group group_name`
|
|
118
|
+
- `--alert-once`
|
|
119
|
+
- `--ongoing`
|
|
120
|
+
- `--image-path path` **Output**: None **Priority**: HIGH **Example**:
|
|
121
|
+
`termux-notification -t "Title" -c "Content" --id mynotif`
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
#### termux-notification-remove
|
|
126
|
+
|
|
127
|
+
**Description**: Remove notification **Parameters**: `--id notification_id`
|
|
128
|
+
**Priority**: MEDIUM
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
#### termux-notification-list
|
|
133
|
+
|
|
134
|
+
**Description**: List active notifications **Output**: JSON array **Priority**:
|
|
135
|
+
LOW
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
### 3. Clipboard
|
|
140
|
+
|
|
141
|
+
#### termux-clipboard-get
|
|
142
|
+
|
|
143
|
+
**Description**: Read clipboard **Parameters**: None **Output**: Clipboard
|
|
144
|
+
content to stdout **Priority**: HIGH
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
#### termux-clipboard-set
|
|
149
|
+
|
|
150
|
+
**Description**: Write to clipboard **Input**: Text from stdin **Output**: None
|
|
151
|
+
**Priority**: HIGH **Example**: `echo "text" | termux-clipboard-set`
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
### 4. Media
|
|
156
|
+
|
|
157
|
+
#### termux-camera-info
|
|
158
|
+
|
|
159
|
+
**Description**: Available cameras info **Output**: JSON with id, facing,
|
|
160
|
+
resolutions **Priority**: MEDIUM
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
#### termux-camera-photo
|
|
165
|
+
|
|
166
|
+
**Description**: Take photo **Parameters**:
|
|
167
|
+
|
|
168
|
+
- `-c camera_id` (0=back, 1=front)
|
|
169
|
+
- `output_file` **Output**: JPEG File **Priority**: MEDIUM **Example**:
|
|
170
|
+
`termux-camera-photo -c 0 photo.jpg`
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
#### termux-microphone-record
|
|
175
|
+
|
|
176
|
+
**Description**: Record audio **Parameters**:
|
|
177
|
+
|
|
178
|
+
- `-f output_file`
|
|
179
|
+
- `-l limit_seconds`
|
|
180
|
+
- `-e encoder` (aac, amr_nb, amr_wb)
|
|
181
|
+
- `-b bitrate`
|
|
182
|
+
- `-r sample_rate`
|
|
183
|
+
- `-c channels` (1, 2)
|
|
184
|
+
- `-d` (stop recording)
|
|
185
|
+
- `-i` (info current recording) **Priority**: MEDIUM
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
#### termux-media-player
|
|
190
|
+
|
|
191
|
+
**Description**: Control media player **Parameters**:
|
|
192
|
+
|
|
193
|
+
- `play file`
|
|
194
|
+
- `pause`
|
|
195
|
+
- `stop`
|
|
196
|
+
- `info` **Priority**: LOW
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
#### termux-media-scan
|
|
201
|
+
|
|
202
|
+
**Description**: Scan media files **Parameters**: `-r` recursive, file/directory
|
|
203
|
+
path **Priority**: LOW
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
#### termux-tts-speak
|
|
208
|
+
|
|
209
|
+
**Description**: Text-to-Speech **Parameters**:
|
|
210
|
+
|
|
211
|
+
- `-e engine`
|
|
212
|
+
- `-l language`
|
|
213
|
+
- `-n region`
|
|
214
|
+
- `-v variant`
|
|
215
|
+
- `-p pitch` (default 1.0)
|
|
216
|
+
- `-r rate` (default 1.0)
|
|
217
|
+
- `-s stream` (NOTIFICATION, MUSIC, etc.) **Input**: Text from stdin
|
|
218
|
+
**Priority**: HIGH **Example**: `echo "Hello" | termux-tts-speak -l en`
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
#### termux-tts-engines
|
|
223
|
+
|
|
224
|
+
**Description**: List available TTS engines **Output**: JSON array **Priority**:
|
|
225
|
+
LOW
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
#### termux-speech-to-text
|
|
230
|
+
|
|
231
|
+
**Description**: Speech recognition **Parameters**: None (starts listening)
|
|
232
|
+
**Output**: Recognized text **Priority**: MEDIUM
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
### 5. Location
|
|
237
|
+
|
|
238
|
+
#### termux-location
|
|
239
|
+
|
|
240
|
+
**Description**: Get GPS location **Parameters**:
|
|
241
|
+
|
|
242
|
+
- `-p provider` (gps, network, passive)
|
|
243
|
+
- `-r request` (once, last, updates) **Output**: JSON with latitude, longitude,
|
|
244
|
+
altitude, accuracy, etc. **Priority**: HIGH **Example**:
|
|
245
|
+
`termux-location -p gps -r once`
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
### 6. Sensors & Hardware
|
|
250
|
+
|
|
251
|
+
#### termux-sensor
|
|
252
|
+
|
|
253
|
+
**Description**: Read sensors **Parameters**:
|
|
254
|
+
|
|
255
|
+
- `-l` list sensors
|
|
256
|
+
- `-s sensor_name`
|
|
257
|
+
- `-d delay_ms`
|
|
258
|
+
- `-n count`
|
|
259
|
+
- `-c` cleanup **Output**: JSON with sensor values **Priority**: MEDIUM
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
#### termux-torch
|
|
264
|
+
|
|
265
|
+
**Description**: Control flashlight **Parameters**: `on` | `off` **Priority**:
|
|
266
|
+
MEDIUM
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
#### termux-vibrate
|
|
271
|
+
|
|
272
|
+
**Description**: Vibrate **Parameters**:
|
|
273
|
+
|
|
274
|
+
- `-d duration_ms`
|
|
275
|
+
- `-f` force (even in silent mode) **Priority**: MEDIUM **Example**:
|
|
276
|
+
`termux-vibrate -d 500`
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
#### termux-brightness
|
|
281
|
+
|
|
282
|
+
**Description**: Set brightness **Parameters**: `0-255` or `auto` **Priority**:
|
|
283
|
+
LOW
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
#### termux-infrared-frequencies
|
|
288
|
+
|
|
289
|
+
**Description**: Supported IR frequencies **Output**: JSON array of frequency
|
|
290
|
+
ranges **Priority**: LOW
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
#### termux-infrared-transmit
|
|
295
|
+
|
|
296
|
+
**Description**: Transmit IR **Parameters**: `-f frequency` pattern
|
|
297
|
+
**Priority**: LOW
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
#### termux-fingerprint
|
|
302
|
+
|
|
303
|
+
**Description**: Fingerprint authentication **Output**: JSON with auth_result
|
|
304
|
+
**Priority**: HIGH (security) **Notes**: Requires biometric hardware
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
### 7. Communication
|
|
309
|
+
|
|
310
|
+
#### termux-sms-send
|
|
311
|
+
|
|
312
|
+
**Description**: Send SMS **Parameters**:
|
|
313
|
+
|
|
314
|
+
- `-n number` (recipient)
|
|
315
|
+
- `-s slot` (SIM slot) **Input**: Message from stdin **Priority**: HIGH (with
|
|
316
|
+
caution) **Privacy**: CRITICAL
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
#### termux-sms-inbox
|
|
321
|
+
|
|
322
|
+
**Description**: Read SMS inbox (deprecated) **Use**: termux-sms-list
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
#### termux-sms-list
|
|
327
|
+
|
|
328
|
+
**Description**: List SMS **Parameters**:
|
|
329
|
+
|
|
330
|
+
- `-l limit`
|
|
331
|
+
- `-o offset`
|
|
332
|
+
- `-t type` (inbox, sent, draft, all)
|
|
333
|
+
- `-n` (show phone numbers)
|
|
334
|
+
- `-d` (show dates) **Output**: JSON array **Privacy**: CRITICAL
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
#### termux-telephony-call
|
|
339
|
+
|
|
340
|
+
**Description**: Make call **Parameters**: `phone_number` **Privacy**: CRITICAL
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
#### termux-call-log
|
|
345
|
+
|
|
346
|
+
**Description**: Call log **Parameters**:
|
|
347
|
+
|
|
348
|
+
- `-l limit`
|
|
349
|
+
- `-o offset` **Output**: JSON array **Privacy**: CRITICAL
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
#### termux-contact-list
|
|
354
|
+
|
|
355
|
+
**Description**: Contact list **Output**: JSON array with name, number
|
|
356
|
+
**Privacy**: CRITICAL
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
### 8. Storage & Files
|
|
361
|
+
|
|
362
|
+
#### termux-download
|
|
363
|
+
|
|
364
|
+
**Description**: Download file using system downloader **Parameters**:
|
|
365
|
+
|
|
366
|
+
- `-d description`
|
|
367
|
+
- `-t title`
|
|
368
|
+
- `url` **Priority**: MEDIUM
|
|
369
|
+
|
|
370
|
+
---
|
|
371
|
+
|
|
372
|
+
#### termux-share
|
|
373
|
+
|
|
374
|
+
**Description**: Share file/text **Parameters**:
|
|
375
|
+
|
|
376
|
+
- `-a action` (edit, send, view)
|
|
377
|
+
- `-c content-type`
|
|
378
|
+
- `-d` (default activity)
|
|
379
|
+
- `-t title` **Input**: File or stdin **Priority**: MEDIUM
|
|
380
|
+
|
|
381
|
+
---
|
|
382
|
+
|
|
383
|
+
#### termux-open
|
|
384
|
+
|
|
385
|
+
**Description**: Open file with associated app **Parameters**:
|
|
386
|
+
|
|
387
|
+
- `--send` (send action)
|
|
388
|
+
- `--view` (view action)
|
|
389
|
+
- `--chooser` (show chooser)
|
|
390
|
+
- `--content-type type`
|
|
391
|
+
- `file_path` **Priority**: MEDIUM
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
#### termux-open-url
|
|
396
|
+
|
|
397
|
+
**Description**: Open URL in browser **Parameters**: `url` **Priority**: MEDIUM
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
#### termux-storage-get
|
|
402
|
+
|
|
403
|
+
**Description**: Request file from Android storage **Parameters**: `output_file`
|
|
404
|
+
**Priority**: LOW
|
|
405
|
+
|
|
406
|
+
---
|
|
407
|
+
|
|
408
|
+
#### termux-saf-\* (Storage Access Framework)
|
|
409
|
+
|
|
410
|
+
**Commands**:
|
|
411
|
+
|
|
412
|
+
- `termux-saf-create` - Create file
|
|
413
|
+
- `termux-saf-dirs` - List SAF directories
|
|
414
|
+
- `termux-saf-ls` - List content
|
|
415
|
+
- `termux-saf-managedir` - Manage dir access
|
|
416
|
+
- `termux-saf-mkdir` - Create directory
|
|
417
|
+
- `termux-saf-read` - Read file
|
|
418
|
+
- `termux-saf-rm` - Remove file
|
|
419
|
+
- `termux-saf-stat` - File info
|
|
420
|
+
- `termux-saf-write` - Write file **Priority**: LOW **Notes**: For external
|
|
421
|
+
storage access on Android 11+
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
425
|
+
### 9. System Control
|
|
426
|
+
|
|
427
|
+
#### termux-volume
|
|
428
|
+
|
|
429
|
+
**Description**: Control volume **Parameters**:
|
|
430
|
+
|
|
431
|
+
- Without parameters: show volumes
|
|
432
|
+
- `stream volume` (set volume) **Streams**: alarm, music, notification, ring,
|
|
433
|
+
system, call **Priority**: MEDIUM
|
|
434
|
+
|
|
435
|
+
---
|
|
436
|
+
|
|
437
|
+
#### termux-wake-lock
|
|
438
|
+
|
|
439
|
+
**Description**: Acquire wake lock (prevent sleep) **Priority**: MEDIUM
|
|
440
|
+
|
|
441
|
+
---
|
|
442
|
+
|
|
443
|
+
#### termux-wake-unlock
|
|
444
|
+
|
|
445
|
+
**Description**: Release wake lock **Priority**: MEDIUM
|
|
446
|
+
|
|
447
|
+
---
|
|
448
|
+
|
|
449
|
+
#### termux-wallpaper
|
|
450
|
+
|
|
451
|
+
**Description**: Set wallpaper **Parameters**:
|
|
452
|
+
|
|
453
|
+
- `-f file`
|
|
454
|
+
- `-u url`
|
|
455
|
+
- `-l` (lockscreen) **Priority**: LOW
|
|
456
|
+
|
|
457
|
+
---
|
|
458
|
+
|
|
459
|
+
#### termux-wifi-enable
|
|
460
|
+
|
|
461
|
+
**Description**: Enable/disable WiFi **Parameters**: `true` | `false`
|
|
462
|
+
**Priority**: LOW **Notes**: May require special permissions
|
|
463
|
+
|
|
464
|
+
---
|
|
465
|
+
|
|
466
|
+
### 10. Dialogs
|
|
467
|
+
|
|
468
|
+
#### termux-dialog
|
|
469
|
+
|
|
470
|
+
**Description**: Show interactive dialog **Parameters**:
|
|
471
|
+
|
|
472
|
+
- `-t title`
|
|
473
|
+
- `-l` list widget
|
|
474
|
+
- `-i` text input
|
|
475
|
+
- `-m` multi-select
|
|
476
|
+
- `-p` password input
|
|
477
|
+
- `-r` radio buttons
|
|
478
|
+
- `-s` spinner
|
|
479
|
+
- `-d` date picker
|
|
480
|
+
- `-T` time picker
|
|
481
|
+
- `-c` confirm dialog
|
|
482
|
+
- `-C` counter
|
|
483
|
+
- `--values v1,v2,v3`
|
|
484
|
+
- `--range min,max` **Output**: JSON with result **Priority**: MEDIUM
|
|
485
|
+
|
|
486
|
+
---
|
|
487
|
+
|
|
488
|
+
### 11. Other
|
|
489
|
+
|
|
490
|
+
#### termux-nfc
|
|
491
|
+
|
|
492
|
+
**Description**: NFC operations **Parameters**: Various for reading/writing tags
|
|
493
|
+
**Priority**: LOW
|
|
494
|
+
|
|
495
|
+
---
|
|
496
|
+
|
|
497
|
+
#### termux-usb
|
|
498
|
+
|
|
499
|
+
**Description**: USB device info **Parameters**:
|
|
500
|
+
|
|
501
|
+
- `-l` list devices
|
|
502
|
+
- `-r` request permissions
|
|
503
|
+
- `-e command` execute with USB permissions **Priority**: LOW
|
|
504
|
+
|
|
505
|
+
---
|
|
506
|
+
|
|
507
|
+
#### termux-job-scheduler
|
|
508
|
+
|
|
509
|
+
**Description**: Schedule periodic jobs **Parameters**:
|
|
510
|
+
|
|
511
|
+
- `--pending` list jobs
|
|
512
|
+
- `--cancel-all` cancel all
|
|
513
|
+
- `--cancel id` cancel specific
|
|
514
|
+
- `--job-id id`
|
|
515
|
+
- `--script path`
|
|
516
|
+
- `--period-ms ms`
|
|
517
|
+
- `--network type`
|
|
518
|
+
- `--battery-not-low`
|
|
519
|
+
- `--storage-not-low`
|
|
520
|
+
- `--charging`
|
|
521
|
+
- `--idle`
|
|
522
|
+
- `--persisted` **Priority**: MEDIUM
|
|
523
|
+
|
|
524
|
+
---
|
|
525
|
+
|
|
526
|
+
#### termux-keystore
|
|
527
|
+
|
|
528
|
+
**Description**: Cryptographic key management **Parameters**:
|
|
529
|
+
|
|
530
|
+
- `list` list keys
|
|
531
|
+
- `delete alias` delete key
|
|
532
|
+
- `generate alias [-a algorithm] [-s size]` generate key
|
|
533
|
+
- `sign alias` sign data
|
|
534
|
+
- `verify alias` verify signature **Priority**: LOW (advanced)
|
|
535
|
+
|
|
536
|
+
---
|
|
537
|
+
|
|
538
|
+
## Integration Priority
|
|
539
|
+
|
|
540
|
+
### Phase 1 - Core (HIGH)
|
|
541
|
+
|
|
542
|
+
1. termux-battery-status
|
|
543
|
+
2. termux-clipboard-get
|
|
544
|
+
3. termux-clipboard-set
|
|
545
|
+
4. termux-toast
|
|
546
|
+
5. termux-notification
|
|
547
|
+
6. termux-tts-speak
|
|
548
|
+
7. termux-wifi-connectioninfo
|
|
549
|
+
8. termux-info
|
|
550
|
+
|
|
551
|
+
### Phase 2 - Extended (MEDIUM)
|
|
552
|
+
|
|
553
|
+
1. termux-location
|
|
554
|
+
2. termux-camera-photo
|
|
555
|
+
3. termux-vibrate
|
|
556
|
+
4. termux-torch
|
|
557
|
+
5. termux-dialog
|
|
558
|
+
6. termux-volume
|
|
559
|
+
7. termux-audio-info
|
|
560
|
+
8. termux-sensor
|
|
561
|
+
|
|
562
|
+
### Phase 3 - Advanced (LOW)
|
|
563
|
+
|
|
564
|
+
1. termux-sms-send (with caution)
|
|
565
|
+
2. termux-microphone-record
|
|
566
|
+
3. termux-speech-to-text
|
|
567
|
+
4. termux-job-scheduler
|
|
568
|
+
5. termux-saf-\*
|
|
569
|
+
6. Others
|
|
570
|
+
|
|
571
|
+
---
|
|
572
|
+
|
|
573
|
+
## Security Considerations
|
|
574
|
+
|
|
575
|
+
### Commands with Privacy Implications
|
|
576
|
+
|
|
577
|
+
- `termux-sms-*` - SMS Access
|
|
578
|
+
- `termux-call-log` - Call Logs
|
|
579
|
+
- `termux-contact-list` - Contacts
|
|
580
|
+
- `termux-telephony-deviceinfo` - IMEI
|
|
581
|
+
- `termux-location` - Location
|
|
582
|
+
|
|
583
|
+
### Recommendations
|
|
584
|
+
|
|
585
|
+
1. **Mandatory user confirmation** for privacy-sensitive commands
|
|
586
|
+
2. **Do not include** sensitive output in LLM context unless necessary
|
|
587
|
+
3. **Audit log** for critical commands
|
|
588
|
+
4. **Rate limiting** to prevent abuse
|
|
589
|
+
|
|
590
|
+
---
|
|
591
|
+
|
|
592
|
+
_Author: DioNanos_
|