Live data from Hacker News

Scrcpy: Display and control your Android devices connected over USB or TCP/IP

github.com

121–130 of 148 posts

Re: Scrcpy: Display and control your Android devices connected over USB or TCP/IP

#121
post #114

You can also use this tool to take a screenshot of an app that normally does not allow you to. Useful if the app has QR Codes that you want to have on hand even if there is no internet connection (like Tesco Clubcard)

Lots of apps will still show a black screen via scrcpy:

* The lock screen of the device

* AndOTP

* Bromite Incognito mode.

I think its called a "security screen" which prevents this, or something like that.

Re: Scrcpy: Display and control your Android devices connected over USB or TCP/IP

#122

If anyone's looking for an android project, please make one that forwards all hotspot traffic over whatever VPN is enabled. I guess the phone will need rooting.

For what it's worth: LineageOS (and probably other ROMs too) has a setting ("Allow clients to use VPNs") for this in the tethering settings screen. With root and four or five lines of bash script you can replicate this behaviour according to various StackExchange answers.

I'm not sure if this is a setting that comes from LineageOS or from upstream AOSP, but at least the feature is there as a starting point.

Edit: looks like it's a LineageOS feature: https://review.lineageos.org/c/LineageOS/android_frameworks_...

Re: Scrcpy: Display and control your Android devices connected over USB or TCP/IP

#123

Are there any tools along this line, but act more like an external monitor does when plugged into your laptop (in external-monitor-only mode)? I.e. can run at a different resolution/size, rather than just mirroring the phone screen? Something like what Android Auto does when you plug into a head unit, but for 'normal' android.

I do that with two tablets and a laptop. On the notebook I run some vnc server with an X built-in, then some x or vnc tool that links the different X instances running as if they are other monitors, so you only have to move your mouse to some lateral to get focus on the other X. Then on the tablets just use some generic VNC client. There are multiple options for ever one of the three programs os this setup, but it ta…

[dead]

Re: Scrcpy: Display and control your Android devices connected over USB or TCP/IP

#124

Earlier quoted context omitted.

> Install apks .. on things like chromecasts Once an apk is on a Chromecast, how does one launch it? I've loaded APKs onto a Fire Stick, but that OS actually has a launcher. For a Chromecast, would I be limited to launching via adb and apps that launch themselves by being cast to? That would still be useful, like for example SmartTubeNext is one of the apps I put on my Fire Stick (highly recommended) and in addition…

I think we are talking strictly the Chromecast with Google TV here, which is a full Android TV stick.

That makes way more sense than the simple Chromecast I thought we were talking about. Thanks!

Re: Scrcpy: Display and control your Android devices connected over USB or TCP/IP

#125
post #114

You can also use this tool to take a screenshot of an app that normally does not allow you to. Useful if the app has QR Codes that you want to have on hand even if there is no internet connection (like Tesco Clubcard)

Lots of apps will still show a black screen via scrcpy: * The lock screen of the device * AndOTP * Bromite Incognito mode. I think its called a "security screen" which prevents this, or something like that.

Which you can remove by modifying APK file. I did it for RSA token and MS Authenticator and use them via scrcpy.

Re: Scrcpy: Display and control your Android devices connected over USB or TCP/IP

#126
post #100

As a Genymobile employee, I'm happy to see this on HN! We use scrcpy internally also, it's really handy sometimes when we need to debug display issues with our Android emulator (Genymotion). Romain is truly a talented developer, and deserves the success of scrcpy. If I remember correctly, scrcpy was also bundled with Genydeploy (an Android device provisioning solution) at the time. Kudos Romain for your work!

Thank you for your kind words Guillaume :)

Re: Scrcpy: Display and control your Android devices connected over USB or TCP/IP

#127

I've used this to play mobile games more comfortably at a computer. Combining this with a pen-tablet is a great experience for games that don't need multi-touxh, and you can sit up straight rather than hunched over a phone. There were some minor compression artifacts at times but the quality was quite good and the latency was great.

To minimize artifacts, you can increase the bitrate (`scrcpy -b12M`) or use h265 (`scrcpy --video-codec=h265 -b12M`). Depending on your device, the latency with h265 may be higher though (but it might also be lower).

Re: Scrcpy: Display and control your Android devices connected over USB or TCP/IP

#129

If anyone's looking for an android project, please make one that forwards all hotspot traffic over whatever VPN is enabled. I guess the phone will need rooting.

For what it's worth: LineageOS (and probably other ROMs too) has a setting ("Allow clients to use VPNs") for this in the tethering settings screen. With root and four or five lines of bash script you can replicate this behaviour according to various StackExchange answers. I'm not sure if this is a setting that comes from LineageOS or from upstream AOSP, but at least the feature is there as a starting point. Edit: loo…

Thanks for these comments re LineageOS (& @ttarr). I dug out an old device I'd already installed it on and sure enough it works. Thanks so much :)

Re: Scrcpy: Display and control your Android devices connected over USB or TCP/IP

#130

This tool is a godsend. I use it as a way to control my phone when I'm at my desk on my mac - with wireless adb, without even looking at the phone screen at all. Allows me to continue using my phone as I use my mac with a kb and mouse.

So scrcpy over wifi??
Post reply on HN