Skip to content

fix: preserve file operations on older Android - #1102

Merged
KazuCocoa merged 1 commit into
masterfrom
fix/container-fs-checks
Sep 26, 2026
Merged

KazuCocoa merged 1 commit into
masterfrom
fix/container-fs-checks

Conversation

@KazuCocoa

Copy link
Copy Markdown
Member

Fix two file-operation issues reproduced with published appium-adb 16.0.8 and appium-android-driver 14.2.1 on Windows/Android emulators:

  • Container existence/type checks invoke run-as <pkg> [ ... ]. On the tested API 26, 27, 28, and 30 images, [ is available as a shell builtin but cannot be executed directly by run-as. Existing files are incorrectly reported absent, so deletion returns false. Run the quoted check through sh -c under the app UID.
  • On API 28 and below, the media-scan broadcast URI is unquoted. File names containing spaces, quotes, or newlines produce a malformed/missing URI even when the file push succeeds. Quote the complete file URI.

Validation: TypeScript build, lint, formatting, 248 Windows unit tests, and 10 file-action tests with the POSIX cases enabled through Git sh. Native tests on APIs 26/27/28 record the broadcast in a receiver: 8 of 9 inputs fail before the URI fix and all 9 pass afterward in PowerShell 7, Windows PowerShell 5.1, and cmd. Container push/pull/delete tests use the current #1101 changes as well; 22 special-character file-name round trips plus the capability check pass on API 30 with this fix.

This is independent of #1101's staging/newline fix. The shared apostrophe-plus-exclamation issue is addressed separately in appium/appium#22816.

@KazuCocoa
KazuCocoa merged commit 43c8bb2 into master Sep 26, 2026
8 checks passed
@KazuCocoa
KazuCocoa deleted the fix/container-fs-checks branch September 26, 2026 17:30
github-actions Bot pushed a commit that referenced this pull request Sep 26, 2026
## [14.2.2](v14.2.1...v14.2.2) (2026-09-26)

### Bug Fixes

* preserve container file transfers and newline paths ([#1101](#1101)) ([3685fe6](3685fe6))
* preserve file operations on older Android ([#1102](#1102)) ([43c8bb2](43c8bb2))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 14.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants