Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,17 @@ jobs:
distribution: temurin
java-version: '17'
- uses: gradle/actions/setup-gradle@v6
- name: Test bridge
run: python3 -m unittest discover -s tests -v
- name: Test bridge & F-Droid compliance
run: |
python3 -m unittest discover -s tests -v
python3 scripts/check_fdroid.py
- name: Test, lint and assemble Release (validation only)
run: ./gradlew --no-daemon testReleaseUnitTest lintRelease assembleRelease
- name: Verify Release APK F-Droid reproducibility compliance
run: |
APK="$(ls app/build/outputs/apk/release/app-release*.apk | head -n 1)"
test -s "$APK"
python3 scripts/check_fdroid.py --apk "$APK"

release-build:
name: Build and publish signed Android Release APK
Expand Down Expand Up @@ -71,8 +78,10 @@ jobs:
echo "TFM_RELEASE_KEYSTORE_PATH=$KEYSTORE_PATH" >> "$GITHUB_ENV"
echo 'Permanent release signing identity verified.'

- name: Test Termux file protocol
run: python3 -m unittest discover -s tests -v
- name: Test Termux file protocol & F-Droid compliance
run: |
python3 -m unittest discover -s tests -v
python3 scripts/check_fdroid.py

- name: Test, lint and build Release
env:
Expand All @@ -88,12 +97,13 @@ jobs:
name: validation-reports
path: app/build/reports/

- name: Verify signed APK
- name: Verify signed APK & F-Droid blocks
shell: bash
run: |
set -euo pipefail
APK=app/build/outputs/apk/release/app-release.apk
test -s "$APK"
python3 scripts/check_fdroid.py --apk "$APK"
APKSIGNER="$(find "$ANDROID_HOME/build-tools" -maxdepth 2 -type f -name apksigner | sort -V | tail -n 1)"
test -n "$APKSIGNER"
"$APKSIGNER" verify --verbose --print-certs "$APK"
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 1.0.0

- **Complete Design System Overhaul**: Rebuilt theming with 5 curated developer themes (`System`, `Midnight Emerald`, `Obsidian AMOLED`, `Nordic Slate`, `Paper Daylight`), Android 12+ Material You dynamic color toggle, semantic color tokens, adaptive themed monochrome app icon, skeleton shimmer loading, ModalBottomSheets, and live status badges in navigation.
- **Next-Gen File Manager**: Added multi-tab folder browsing, full-text content search (`grep`) with regex & jump-to-line, file category filters, extension sorting, live Git branch badge, interactive storage meter & directory disk-usage analyzer, persistent Copy/Cut/Paste clipboard bar, built-in pinch-to-zoom image viewer, archive inspector/creator/extractor (ZIP & TAR.GZ with Zip-Slip protection), MD5/SHA-1/SHA-256 checksums, duplicate & symlink actions, starter file templates, and visual rwx permission matrix.
- **Developer Code Editor**: Rebuilt with zero-dependency syntax highlighting (Kotlin, Java, Python, JS/TS, JSON, XML/HTML, Bash, C/C++/Rust/Go, YAML/TOML, CSS, SQL, Markdown), smart debounced undo/redo (150 steps), find & replace (regex + case sensitive), coding symbol accessory bar, auto-indent, go-to-line, live Markdown preview, JSON formatter, unsaved changes diff preview, force-overwrite conflict resolution, and read-only paginated large-file viewer (> 256 KiB).
- **Enhanced Terminal & Tools Hub**: Added ANSI color rendering, customizable command snippets, searchable command history, one-tap "Ask AI" command debugging, session log export & clear, interactive Termux shell launcher, plus Git Toolkit, Network & Local Server tools, SHA-256 verified HTTPS downloads, and live enable/disable toggles on every assistant tool.
- **Upgraded AI Assistant & Local LLMs**: Added full pure-Compose Markdown rendering (tables, lists, task checklists, blockquotes, links, syntax-highlighted code blocks), 3 new assistant tools (`grep_files`, surgical `edit_file` with live diff previews, `git_log` — 16 tools total), slash-skill autocomplete, smart prompt starters, conversation Markdown export & clear, **Ollama / Local loopback API** provider for offline Termux LLMs, and foreground background-work progress & approval notifications.
- **Security & F-Droid Patch Compliance**: Encrypted OpenCode service passwords via Android Keystore AES-GCM (eliminating plaintext storage and purging password command rows), added explicit command review before OpenCode third-party apt repo setup, added collapsible return/control pill on fullscreen OpenCode tab, disabled AGP `DependencyInfoBlock` and `vcsInfo` for reproducible builds, updated `fastlane/` metadata (`en-US` and `ar` changelogs 6–9), added `fdroid/dev.itszain.termuxfilemanager.yml` & `docs/FDROID_RFP.md`, and wired automated `scripts/check_fdroid.py` verification into GitHub Actions CI.
- Incremented app version to `1.0.0` / `versionCode 9`.

## 0.6.1

- Fixed the OpenCode tab showing "Install OpenCode" again after every app restart; the verified install state (version, compatibility) is now persisted and restored instantly, and transient Termux slow-downs or errors no longer wipe a known-good install status.
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

</div>

> **Termux File Manager (TFM)** is a native, open-source Android file manager built for people who work in Termux. Browse and edit files, run shell commands, manage programming tools and collaborate with an AI coding assistant, all from one app. No root required. **Version 0.6.0** adds a local **OpenCode** integration — the OpenCode agent as an AI provider and the official OpenCode web UI in a dedicated tab. Version 0.5.0 introduced native ChatGPT tool calling and a searchable tools hub.
> **Termux File Manager (TFM)** is a native, open-source Android file manager and developer workspace built for Termux. Browse files across tabs, edit syntax-highlighted code, run ANSI-colored shell commands, inspect archives, manage developer tools, and collaborate with local or cloud AI coding assistants — all without root. **Version 1.0.0** delivers a complete UI and feature overhaul: multi-tab browsing, full-text `grep` content search, image viewer, archive inspector/creator/extractor (Zip-Slip protected), checksums, disk usage analyzer, visual `chmod` matrix, syntax-highlighted code editor with find & replace + symbol bar + Markdown preview + large-file viewer, ANSI terminal with snippets & history, local **Ollama / llama.cpp** support, encrypted OpenCode integration, and F-Droid reproducible build compliance.

---

Expand All @@ -46,36 +46,36 @@
<td width="50%" valign="top">
<img src="docs/assets/icon-folder.svg" alt="Files" width="30" />
<h3>Files and folders</h3>
Browse in list or grid view, follow breadcrumbs, search recursively, show hidden files, sort, pin favorites and revisit recent folders. Perform multi-select copy, move and delete operations with conflict handling and persistent history.
Multi-tab list or grid browsing, breadcrumbs, Git branch detection, live storage meter, filename search and full-text content search (<code>grep</code>) with regex and jump-to-line. Includes category filters, extension sorting, persistent copy/cut/paste clipboard, image viewer, archive inspector/creator/extractor, MD5/SHA-1/SHA-256 checksums, disk-usage analyzer, symlinks and visual <code>rwx</code> permission matrix.
</td>
<td width="50%" valign="top">
<img src="docs/assets/icon-code.svg" alt="Editor" width="30" />
<h3>Code editor</h3>
Edit UTF-8 text files up to 256 KiB with line numbers, search, undo/redo and saved drafts. Atomic writes preserve line endings and permissions; an external modification check prevents accidental overwrites.
Syntax-highlighted UTF-8 editor for Kotlin, Java, Python, JS/TS, JSON, XML/HTML, Bash, C/C++/Rust/Go, YAML, CSS, SQL and Markdown. Features smart undo/redo, find &amp; replace, coding symbol accessory bar, auto-indent, go-to-line, JSON formatter, live Markdown preview, diff viewer, atomic fingerprint-guarded saves and paginated read-only viewing for large files.
</td>
</tr>
<tr>
<td valign="top">
<img src="docs/assets/icon-terminal.svg" alt="Terminal" width="30" />
<h3>Termux terminal integration</h3>
Choose working directories and named sessions, review commands before running, and inspect stdout, stderr and exit codes. Interactive terminal applications open in Termux instead of a simulated in-app PTY.
Named sessions, ANSI color rendering, customizable command snippets, searchable command history, review-before-run safety, interactive Termux shell launch, session log export and one-tap "Ask AI" debugging for failing commands.
</td>
<td valign="top">
<img src="docs/assets/icon-spark.svg" alt="AI agent" width="30" />
<h3>AI coding agent</h3>
Multi-conversation assistant with streamed responses, attached images, project context, web research, skill files and reviewed tool calls. Connect ChatGPT or your configured API provider; write operations require approval by default.
<h3>AI coding agent &amp; local LLMs</h3>
Multi-conversation assistant with full Markdown rendering (tables, lists, syntax-highlighted code), 16 guarded tools (including <code>grep_files</code>, surgical <code>edit_file</code> diffs and <code>git_log</code>), slash-skill autocomplete, foreground approval notifications, local loopback <strong>Ollama / llama.cpp</strong> support, ChatGPT OAuth and configurable HTTPS providers.
</td>
</tr>
<tr>
<td valign="top">
<img src="docs/assets/icon-tools.svg" alt="Developer tools" width="30" />
<h3>Developer tools hub</h3>
Search tools and manage Termux packages, Python/pip, npm, Cargo, Go, RubyGems, Composer and LuaRocks workflows. Run diagnostics, download files over HTTPS and work with archives.
Searchable toolkit for Termux packages, Git workflows, Python/pip, npm, Cargo, Go, RubyGems, Composer, LuaRocks, local HTTP preview server, network diagnostics, SHA-256 verified HTTPS downloads, archives and live per-tool assistant toggles.
</td>
<td valign="top">
<img src="docs/assets/icon-globe.svg" alt="Localization" width="30" />
<h3>Designed for Android</h3>
Kotlin, Jetpack Compose and Material 3 with responsive phone/tablet navigation, English/Arabic UI and light, dark and AMOLED themes. RTL layout preserves readable left-to-right paths and code.
<h3>Designed for Android &amp; F-Droid</h3>
Kotlin, Jetpack Compose and Material 3 with responsive phone/tablet layouts, English/Arabic RTL, 5 curated themes plus Android 12+ Material You dynamic colors, adaptive monochrome icon, zero trackers and F-Droid reproducible builds (<code>DependencyInfoBlock</code> &amp; <code>vcsInfo</code> disabled).
</td>
</tr>
<tr>
Expand Down
21 changes: 18 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ android {
applicationId 'dev.itszain.termuxfilemanager'
minSdk 23
targetSdk 32
versionCode 8
versionName '0.6.1'
versionCode 9
versionName '1.0.0'
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}

// F-Droid compliance & reproducible builds: strip Google's encrypted DependencyInfoBlock.
dependenciesInfo {
includeInApk = false
includeInBundle = false
}

if (tfmReleaseSigningEnabled) {
signingConfigs {
release {
Expand All @@ -37,6 +43,10 @@ android {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
// Omit local Git commit metadata so F-Droid and independent builders produce identical APKs.
vcsInfo {
include = false
}
if (tfmReleaseSigningEnabled) {
signingConfig signingConfigs.release
}
Expand All @@ -55,7 +65,12 @@ android {
kotlinOptions { jvmTarget = '17' }
buildFeatures { compose true; buildConfig true }
testOptions { unitTests.includeAndroidResources = true }
packaging { resources.excludes += ['/META-INF/{AL2.0,LGPL2.1}'] }
packaging {
resources.excludes += [
'/META-INF/{AL2.0,LGPL2.1}',
'/META-INF/version-control-info.textproto'
]
}
}

ksp { arg('room.schemaLocation', "$projectDir/schemas") }
Expand Down
18 changes: 15 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.termux.permission.RUN_COMMAND" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

Expand All @@ -27,19 +28,30 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ScreenCaptureActivity" android:exported="false" android:label="TFM Screen Capture" />
<activity
android:name=".ScreenCaptureActivity"
android:exported="false"
android:label="@string/screen_capture_label" />
<activity
android:name=".ProcessTextActivity"
android:exported="true"
android:excludeFromRecents="true"
android:label="RUN CODE ON TERMUX">
android:label="@string/run_code_on_termux">
<intent-filter>
<action android:name="android.intent.action.PROCESS_TEXT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
<service android:name=".CommandResultService" android:exported="false" />
<service android:name=".ScreenCaptureService" android:exported="false" android:foregroundServiceType="mediaProjection" />
<service
android:name=".BackgroundWorkService"
android:exported="false"
android:foregroundServiceType="dataSync" />
<service
android:name=".ScreenCaptureService"
android:exported="false"
android:foregroundServiceType="mediaProjection" />
<receiver android:name=".NotificationActionReceiver" android:exported="false" />
</application>
</manifest>
Loading
Loading