Closed MilkFlavor closed 2 years ago
Full code: https://pastebin.com/R0xjsv7V
If it helps I ran the command regularly and it worked:
PS C:\Users\shiba\Documents\Mirror> C:\Users\shiba\AppData\Local\Programs\Python\Python310\lib\site-packages\adbutils\binaries\adb.exe -s N9XDU17207002827 push c:\Users\shiba\Documents\Mirror\src\scrcpy\scrcpy-server-v1.24.jar /data/local/tmp/
c:\Users\shiba\Documents\Mirror\src\scrcpy\sc..., 0 skipped. 0.7 MB/s (41159 bytes in 0.056s)
I did a bit more testing and it's probably a windows issue.
the adbutils.push is not very smart, you should use fullpath instead of direction for the second argument.
Usage example:
device.push("scrcpy.jar", "/data/local/tmp/scrcpy.jar")
Thanks that worked!
@MilkFlavor I checked your code, https://pastebin.com/R0xjsv7V Use pyav to parse scrcpy h264 stream something got wrong. Maybe scrcpy is not the standard h264 stream
So I was using Adbutils. However, I face an error while pushing a file onto an android:
I first thought the files were just not there, but I'm fairly confident that the file exists. Here is the code I'm running: