Live data from Hacker News

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

github.com

111–120 of 148 posts

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

#111

Earlier quoted context omitted.

It's worth learning how to use TalkBack anyway because of the insight it gives you into how accessibility tooling works, and also it's perfect for this use-case.

Can I turn the talk back on blindly? This phone is a pixel 2. Again, this does sound like a very good advice which I can try on emulator first. Thanks.

I'm not sure, but I feel like if a feature for blind people couldn't be turned on blindly, that would be problematic.

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

#112
post #78

This is incredible software with a small caveat: some apps can't be mirrored -- the ones which show blank on the task switcher view. This is more of an OS limitation than scrcpy's fault.

This is most likely just because the app has the secure display flag set, not any OS limitation. It's a feature of android

I know almost nothing about Android app development and especially disassembly (if that's even the correct term): Is it possible to modify an apk to eliminate this flag anywhere it's set?

I assume in the case of apps trying to protect copyrighted content, the answer is likely "yes but the app might check its own signature and exit if it's not valid, which it won't be at that point, so you'd also need to rip that out, which makes the job way harder."

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

#113
post #13

Very cool, is there something like this for Apple iOS phones?

Yes, it is built into iOS - swipe down from the top right corner and chose mirror screen, this will mirror your screen on a compatible device (I only tested with a MacBook).

As other comment mentions below, this does not allow controlling the device.

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

#115
post #3

Other notable features: * Works in tandem with upstream android adb, so after usb(or wireless) debugging is enabled on the target device, there are no apps daemons or hacks needed and it just works. * Install apks that are "unavailable for your device" in the official google play store (on things like chromecasts) * Full Screen or screen section + audio recording * Stream device screen when it's physically off on tar…

How do you exclude (split tunneling config) the wireless part required for scrcpy, when using a VPN app? The IP of my wireless debugging option shows as the one handed out via the tunnel interface, not the one from my wifi network, and I can't find a way to make this an exclusion, as I make other apps, in the split tunneling option of the VPN app.

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

#117
post #3

Other notable features: * Works in tandem with upstream android adb, so after usb(or wireless) debugging is enabled on the target device, there are no apps daemons or hacks needed and it just works. * Install apks that are "unavailable for your device" in the official google play store (on things like chromecasts) * Full Screen or screen section + audio recording * Stream device screen when it's physically off on tar…

> 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.

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

#118
post #5

I'm sure there are many more practical uses, but it's great for automating mobile games.

How does that work - what do you do in the games from your computer for example? Just curious.

I started using Autopy [0] for writing scripts to automate games on Windows, and then discovered that scrcpy lets me do the same for Android. I've used it for solving picross puzzles and right now I'm working on a solver for the Zachtronics solitaire games.

[0] https://pypi.org/project/autopy/

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

#119

Earlier quoted context omitted.

This is most likely just because the app has the secure display flag set, not any OS limitation. It's a feature of android

I know almost nothing about Android app development and especially disassembly (if that's even the correct term): Is it possible to modify an apk to eliminate this flag anywhere it's set? I assume in the case of apps trying to protect copyrighted content, the answer is likely "yes but the app might check its own signature and exit if it's not valid, which it won't be at that point, so you'd also need to rip that out,…

there is am Xposed module that does just this: https://github.com/VarunS2002/Xposed-Disable-FLAG_SECURE

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

#120
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.

Post reply on HN