Genymobile / Genymobile/scrcpy

There is a bug in pushing files to the device

Open
#4,876 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
150k
Forks
13.7k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

- [x] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
- [x] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).

**Environment**
- OS: [e.g. Debian, Windows, macOS...] Windows 11 x64 23H2 22631.2506
- scrcpy version: [e.g. 1.12.1] scrcpy 2.4
- installation method: [e.g. manual build, apt, snap, brew, Windows release...] Windows release
- device model: Xiaomi
- Android version: [e.g. 10] 13 ; 5.10.149

**Describe the bug**
Drag & drop non-APK file;Push file to device
There is a bug in pushing files to the device
1. Unable to push compressed files such as *. zip, prompt:"adb: error: failed to copy 'D:\Documents\Downloads\ABC.zip' to '/storage/emulated/0/Download/.': remote couldn't create file: Is a directory"
2. After pushing a file with a long file name, the file name will be truncated, such as ABCDEFGHIJKLMNOPQ12345678.xlsx, which will be changed to ABCDEFGHIJKLMNO on the device

On errors, please provide the output of the console (and `adb logcat` if relevant).

```
Please paste terminal output in a code block.
```

Please do not post screenshots of your terminal, just post the content as text instead.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the drag-and-drop push on Windows 11 with a .zip file and a long filename, recording the exact device-side results. Start by tracing the file-push path used for non-APK files; no source file or test is named in the report. Done means both files are pushed successfully with their intended names, and regression coverage verifies these cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.