-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Add option to always copy connection data right after wireless ADB is enabled #15
Comments
Hello. Since you are using Shizuku mode, commands from WADBS are ran with ADB-level privileges. In Shizuku mode, enabling the wireless debugging is done through reflection, therefore is possible. However, to run KDE Connect clipboard sync, WADBS needs to dispatch an intent to a non-exported activity. Which is not allowed with ADB shell privileges. You can check validity of my words by examining the logs of WADBS. Recently I thougth that maybe it would be nice to maintain a small fork of KDE Connect with this needed activity marked as exported. I will not ask for this to be in upstream KDE Connect, because exporting this activity somewhat creates a security risk. |
How about just write into the clipboard? |
And I am doing this. Then I send an intent to KDE Connect so it syncs it. See this function. |
I mean just copy the text when the root privilege is NOT granted. So I can use KDE Connect's send clipboard button to sync clipboard. By now, I'm just unable to get connection data copied. |
And I saw some OneUI only features in README, but I just cannot find them. Is something wrong with me or just need someone tell me where them are😂. |
Sure, this is valid suggestion to have the data automatically put in your clipboard. Right now you can copy the connection data by tapping on an informative widget on your home screen or by tapping a button inside of QS Tile's Extended menu (One UI only). |
The only One UI integration is the Extended view of the QS tile. This was tested on Android 11 based One UI, One UI 2.x, I believe. You can access this view by tapping the text label under the QS tile (same as if you tap "Wi-Fi" label under the Wi-Fi QS Tile and it opens an extended menu with some quick options and a list of networks). |
I'm in OneUI 6.0, it seems that I cannot use the QS tile feature. Only the WLAN and Bluetooth tile can be extended. (Maybe I need open a new issue) Screen_Recording_20240226_144547_WADBS.mp4 |
This integration was implemented through a reverse-engineered API documented by OneUI Project. Looks like Samsung decided to change this in recent versions of OneUI. Does any of the system apps have a tile with an extended view? For example, the Flashlight tile had it for me. It displayed a brightness slider there. |
Yes it has. And some other system app have extended view too. And it's triggered by holding. Screen_Recording_20240226_150729_Amaze.mp4 |
Alright. Then they have probably changed the API. Maybe I will spend some time reverse engineering core OneUI apps to see how it works (or ask OneUI Project maintainers to do this 😅). Please, create a new issue for this and include your videos as well as some description. Thanks for reporting in such an informative manner! |
…ze it with KDE Connect (requested in #15) fix(KDE Connect): State on the settings screen that KDE Connect integration requires root.
System information
Problem description
I have installed KDE Connect, and the KDE Connect integration switch in app is enabled. But when I turn on Wireless Debug using the widget or button in quick setting panel, I don't receive any clipborad sync on my PC and the script don't work too. KDE Connect's clipboard sync function is normal.
The text was updated successfully, but these errors were encountered: