Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@SortOfTested those might be worth a shot, or hell even the mingw bash that is installed with Git on windows.
-
Conrad7374y@SortOfTested
Don't have cygwin, I have a linux VM (not wsl because wsl broke, I set up the VM and now that wsl2 is out I'm too lazy to migrate back) but USB debugging requires adb to run on the host so... (If only Hyper-V had USB passthrough like VirtualBox)
Tried git bash, no luck there, and I'm pretty sure the fault lies within adb itself anyways. I tried
ssh me@windows "adb shell screencap -p" > screenshot.png
from linux and the png still comes out invalid.
Maybe debugging over the network and running adb in linux could work? No Idea how to set that up tho -
Conrad7374yUpdate: Network debugging is as easy as pie. I can now wirelessly remote control my unrooted phone with github.com/oberien/adb-remote-control from linux (Nevermind the 1fps and no downsampling). And adb screencap -p | display png:- works too!
Related Rants
So I was looking for a way to easily take android screenshots in a lossless image format, since my OEM only does jpeg.
Didn't want to install another adware and wound up with the adb shell screencap command since I need the pictures on my PC anyways.
But instead of a nice one-liner like
adb shell screencap -p > screenshot.png
I need 3 lines in a bash script.
Can we please just end the line ending wars?
rant
line endings
android
windows
0a != 0d0a