Bug 391624 - Add support for screen sharing
Summary: Add support for screen sharing
Status: CONFIRMED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 345483 413774 425913 474247 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-03-09 16:27 UTC by Côme Chilliet
Modified: 2024-10-13 15:39 UTC (History)
18 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-20881-0.html (2.50 KB, text/html)
2023-01-15 17:18 UTC, Matthew Pocock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Côme Chilliet 2018-03-09 16:27:13 UTC
I just tested scrcpy which works really well for seeing and controlling an android device from my computer.

It would be awesome if KDE connect could reuse the code/ideas to have the same feature but without the need to activate adb and to plug in USB.

I also opened a ticket on their side: https://github.com/Genymobile/scrcpy/issues/13
Comment 1 Nicolas Fella 2020-08-29 10:05:07 UTC
*** Bug 413774 has been marked as a duplicate of this bug. ***
Comment 2 Nicolas Fella 2020-08-29 10:05:53 UTC
*** Bug 425913 has been marked as a duplicate of this bug. ***
Comment 3 Nicolas Fella 2020-08-29 10:09:39 UTC
If there was an easy way to achieve scrcpy's functionality without requiring adb I'm sure its developers would have found it, so I don't see us implementing that.

Another possible option could be MiraCast, but as far as I know there are no good Linux implementations and I'm definitly not going to do that myself
Comment 4 Nicolas Fella 2020-08-29 10:11:32 UTC

*** This bug has been marked as a duplicate of bug 345483 ***
Comment 5 Nicolas Fella 2020-08-29 10:12:17 UTC
*** Bug 345483 has been marked as a duplicate of this bug. ***
Comment 6 Côme Chilliet 2020-08-31 09:14:04 UTC
I may be mistaking but from what I understood scrcpy is using adb to push an application on the phone, which serves as a screensharing server. I thought it was possible to use KDE connect as the screensharing server instead and use its communication canal instead of the usb.

But I may have misunderstood how scrcpy uses adb.
Comment 7 Peter Oliver 2020-08-31 13:16:02 UTC
(In reply to Côme Chilliet from comment #6)
> I may be mistaking but from what I understood scrcpy is using adb to push an
> application on the phone, which serves as a screensharing server.

It says in https://github.com/Genymobile/scrcpy/issues/13:

> adb is required to call adb shell to have shell permissions granted (to capture the screen).
> 
> (instead, it could be an app using MediaProjection requesting the permission to the user, but then, this would be a different app).

So it seems that `adb` has a second use, here.
Comment 8 Prajna Sariputra 2022-03-30 13:15:36 UTC
Should sharing the screen of the PC side to the phone side be here too, or should it be a different bug/feature request? Seems like it'd be a natural extension to the existing remote input feature, although I guess that would kind of overlap with VNC and Krfb.
Comment 9 michel Ekimia 2023-01-09 13:22:38 UTC
Would like to add my stone here :-=)

Enabling adb is acceptable for our target user I think
When wireless adb is enabled on the phone  , Kdeconnect could srccpy directly to the phone IP which is already known
So this feature is really low on code impact , even maybe easier enough I could give a try :-)
Comment 10 Matthew Pocock 2023-01-15 17:18:54 UTC
Created attachment 155320 [details]
attachment-20881-0.html

Relying upon adb is fine for some (power) users, but isn't really
acceptable for random consumer users. Better than nothing, but imho not
really a consumer grade product solution.

M

On Mon, 9 Jan 2023 at 13:22, michel Ekimia <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=391624
>
> michel Ekimia <mm@ekimia.fr> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|REPORTED                    |CONFIRMED
>      Ever confirmed|0                           |1
>                  CC|                            |mm@ekimia.fr
>
> --- Comment #9 from michel Ekimia <mm@ekimia.fr> ---
> Would like to add my stone here :-=)
>
> Enabling adb is acceptable for our target user I think
> When wireless adb is enabled on the phone  , Kdeconnect could srccpy
> directly
> to the phone IP which is already known
> So this feature is really low on code impact , even maybe easier enough I
> could
> give a try :-)
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 11 Pedro V 2023-08-13 20:49:35 UTC
This should be at wishlist importance.

As mentioned by the scrcpy author, the MediaProjection API is what would be more applicable here:
https://developer.android.com/reference/android/media/projection/MediaProjection

Do note though that the usability would be limited, it wouldn't be anything like desktop remote control as phone OSes in general including Android are a minefield of user limitations, even scrcpy couldn't overcome restrictions controlling what's allowed to be recorded:
https://github.com/Genymobile/scrcpy/issues/36
Comment 12 2wxsy58236r3 2023-09-13 01:47:15 UTC
*** Bug 474247 has been marked as a duplicate of this bug. ***
Comment 13 Nikhil Singh 2024-01-26 17:13:53 UTC
kde connect can have only screen mirroring via media projection and if a user want to have controls also they can enable it via developer option.

adding sharing potions first should be a nice start