GrapheneOS / os-issue-tracker

Issue tracker for GrapheneOS Android Open Source Project hardening work. Standalone projects like Auditor, AttestationServer and hardened_malloc have their own dedicated trackers.
https://grapheneos.org/
358 stars 21 forks source link

Screencast #2616

Open unknowwn-glitch opened 1 year ago

unknowwn-glitch commented 1 year ago

When I press screen cast button it shows looking for devices and no devices show. Can it be so that it is enabled when google play services is running or optionally install the cast like you can install google play services in sandbox.

thestinger commented 1 year ago

Can you give more details on what you think is wrong? The issue is unclear.

unknowwn-glitch commented 1 year ago

At the top tile bar (dropdown menu) one of the options is "screen cast" it doesn't work when you press it and it cant find any device. Is that because it is some google library or something? The device works because I can cast from a non GOS phone.

flexagoon commented 11 months ago

Do you have sandboxed Play Services installed?

unknowwn-glitch commented 11 months ago

Yes

dk0r commented 11 months ago

For clarity, the OP is referring to the "Screen Cast" tile found within android's quick settings tile pull down shade.

I'm also incurring the same issue as OP on a pixel fold running graphene-os@UP1A.231105.003.2023110700 with sandboxed google-play-services@23.42.12

I'm not confident this is permissions related as the issue persists when temporarily allowing all permissions for both Google play services & store.

Only work around I identified was to install the Google Home app which allows me to cast to devices via: Google Home app > Devices > Local Devices > Select a device > Cast

uizore commented 11 months ago

I am also interested in "Screen Cast" but it is not working for me either. I have installed the sandboxed google-play-services and tested it with an older Samsung TV and a new LG WebOS TV, but neither of the devices show up when clicking on the Screen Cast tile. (Both of them work on an Oneplus Nord and an Xiamoi Phone with LineageOS)

How exactly is this implemented, as miracast or google cast? https://android.stackexchange.com/questions/252131/cast-on-lineageos-20 It looks like miracast is no longer supported from google?

@dk0r which devices where you able to cast to with the google home app? For me it did not work with any of the TVs...

muhomorr commented 11 months ago

Screen casting via Play services requires use of the "Google Home" app: https://support.google.com/chromecast/answer/6059461?hl=en

Screen casting via Play services can't be used via the "Screen Cast" tile, that requires privileged integration of Play services into OS.

unknowwn-glitch commented 11 months ago

Add feature so google play services can do that but in a sandbox so only when you allow

intruder16 commented 11 months ago

I have noticed the "Enable Wireless Display" option is missing under Cast settings for GrapheneOS (Pixel 7). Is it also related to play services? On my older phone, OnePlus 5, I can see the setting.

thestinger commented 11 months ago

Wireless display is a separate thing and not supported by most Android devices anymore. Pixel 8 and Pixel 8 Pro added DisplayPort alternate mode similar to the support for HDMI output on Nexus phones. It was missing for a long time.

dk0r commented 11 months ago

@dk0r which devices where you able to cast to with the google home app? For me it did not work with any of the TVs...

@uizore Chromecast with Google TV 4k (GA01919) & Nvidia Shield TV Pro (P2897)

uizore commented 11 months ago

@dk0r which devices where you able to cast to with the google home app? For me it did not work with any of the TVs...

@uizore Chromecast with Google TV 4k (GA01919) & Nvidia Shield TV Pro (P2897)

Wireless display is a separate thing and not supported by most Android devices anymore. Pixel 8 and Pixel 8 Pro added DisplayPort alternate mode similar to the support for HDMI output on Nexus phones. It was missing for a long time.

To sumarize this,

thestinger commented 11 months ago

and Display Mirroring via cable (USB-C Adapter) which is technically possible for pixel 8/8pro but not officially supported from google or implemented in graphene OS at the moment?

GrapheneOS enables DisplayPort alternate mode.

ASerbinski commented 11 months ago

Google cast isn't a completely unknown protocol. The casting protocol has been implemented in VLC and is open source. It would be extremely useful to either incorporate their code into an OS level package, or somehow hook into VLC's ability to cast, which would probably require changes to be made to VLC itself. Some kind of collaboration between GOS and VLC would probably be ideal, in order to be able to install VLC for the purpose of implementing screen cast.

unknowwn-glitch commented 11 months ago

Yeah guys we need this feature 🔥🔥🔥

tx71 commented 10 months ago

I'm running into the same issue, screen cast with the quick tile does not find any devices to cast to. Would be great if feature could be implemented!

thestinger commented 5 months ago

8th gen Pixels have DisplayPort alternate mode. Sandboxed Google Play provides Chromecast support. Some apps like VLC also have their own Chromecast support while others use the Google Play services Chromecast.

We don't currently plan to do anything else.

stevenagev commented 4 months ago

For me, (Pixel 6a) Screen Cast works directly from f-droid apps like Cloudstream and M3U, and also on Stremio, where these apps find Chromecast without any issue. However, when I try to use GOS Screen Cast button (in the quick settings tile pull-down tile block) no devices can be found.

thestinger commented 4 months ago

There's no included screencast for the quick tile.