Skip to content

Dev - #335

Merged
Hakanbaban53 merged 7 commits into
masterfrom
DEV
Oct 29, 2026
Merged

Dev#335
Hakanbaban53 merged 7 commits into
masterfrom
DEV

Conversation

@Hakanbaban53

Copy link
Copy Markdown
Collaborator

This pull request introduces several improvements and bug fixes to the Android file manager and Storage Access Framework (SAF) VFS integration, as well as updates to the changelog and dependency versions. The most significant changes focus on improving file overwrite behavior, reducing unnecessary background polling, and simplifying handle management for better reliability and performance.

Android SAF VFS and File Manager Improvements:

  • Overwriting a file with shorter content now correctly truncates the file, preventing old trailing bytes from remaining. This is achieved by mapping the Storage Access Framework open mode to include truncation when needed (vfsOpenFlags function). [1] [2]
  • The VFS no longer polls remotes for changes in the background while a mount is active, reducing unnecessary network activity. Instead, directories are marked stale only when browsed, and PollInterval is set to 0. [1] [2] [3] [4]
  • Idle handle cleanup logic and tracking of last access time for handles have been removed, as Android guarantees handle closure when the client's file descriptor is closed. This prevents premature closure that could interrupt paused media or upload incomplete files. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • The custom Android trust store initialization has been removed from the VFS patch, simplifying certificate handling. [1] [2]

Changelog and Dependency Updates:

  • The changelog (CHANGELOG.md) has been updated for version 0.3.5, highlighting new features such as auto-start delay, faster startup, improved workflow engine structure, and multiple Android reliability fixes.
  • The rcman dependency version in backend/Cargo.toml is now set to a compatible 0.2.x series, allowing for patch updates.

Testing Adjustments:

  • The idle handle cleanup test has been removed, and the test now focuses on mount and unmount behavior, reflecting the new handle management approach.

Summary of Key Changes:

Android SAF VFS and File Manager:

  • Correct truncation when overwriting files to prevent leftover content (vfsOpenFlags and related logic). [1] [2]
  • Elimination of background polling for directory changes; directories are marked stale only when browsed (markDirStale, PollInterval = 0). [1] [2] [3] [4]
  • Removal of idle handle cleanup and last access tracking, relying on Android's lifecycle guarantees. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • Removal of custom Android trust store logic from the VFS patch. [1] [2]

Changelog and Dependency:

  • Updated changelog for 0.3.5 with new features and fixes.
  • Loosened rcman dependency version to allow patch updates.

Testing:

  • Updated VFS mount/unmount test to reflect new handle management, removing idle cleanup checks.

Hakanbaban53 and others added 7 commits October 29, 2026 11:41
- Updated French, Japanese, Portuguese, Russian, Turkish, Ukrainian, Simplified Chinese, and Traditional Chinese translations to include new prompts for battery optimization and storage access.
- Implemented AndroidStorageAccessService to manage storage access requests and prompts.
- Enhanced AndroidKeepAliveService to handle battery optimization prompts and requests.
- Introduced UI banners in BannerComponent for battery and storage access prompts with corresponding actions.
- Added tests for new services and UI components to ensure functionality and prompt behavior.
…r messages

fix: update BackendService to handle empty passwords correctly and improve connection testing

test: enhance automation service tests for overlapping refresh requests

feat: add auto-start delay feature to operation configuration with UI updates

refactor: remove unused backend constants and clean up related code

style: improve styling for alert banners and adjust theme variables
@Hakanbaban53
Hakanbaban53 merged commit a410047 into master Oct 29, 2026
6 checks passed
@Hakanbaban53
Hakanbaban53 deleted the DEV branch October 29, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant