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/
336 stars 18 forks source link

Screencast #2616

Open unknowwn-glitch opened 8 months ago

unknowwn-glitch commented 8 months 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 8 months ago

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

unknowwn-glitch commented 8 months 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 7 months ago

Do you have sandboxed Play Services installed?

unknowwn-glitch commented 7 months ago

Yes

dk0r commented 7 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 7 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 7 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 7 months ago

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

intruder16 commented 7 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 7 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 7 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 7 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 7 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 7 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 7 months ago

Yeah guys we need this feature 🔥🔥🔥

tx71 commented 6 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!

JapanYoshi commented 1 month ago

Trying to mirror the screen to Fire TV (Miracast standard). Is that in the books?

thestinger commented 1 month 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 2 days 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 1 day ago

There's no included screencast for the quick tile.