2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00
Commit Graph

178 Commits

Author SHA1 Message Date
Albert Vaca Cintora
3986883bc7 Use NEARBY_WIFI_DEVICES instead of ACCESS_FINE_LOCATION
In Android 13+, this permission is enough

EDIT: DO NOT MERGE, the new permission doesn't allow wifiInfo.getSSID()
2023-03-04 15:39:37 +01:00
Albert Vaca Cintora
58fabe06bf Revert "Separate persistent notification channel based on whether devices are connected"
This reverts commit 9f9b565ce6.

Explained here: https://invent.kde.org/network/kdeconnect-android/-/merge_requests/299#note_590553

# Conflicts:
#	src/org/kde/kdeconnect/BackgroundService.java
2023-01-04 15:14:02 +01:00
Albert Vaca Cintora
1241a560f2 Change the explanation of the permission location
The app is being rejected from the Play Store because we are not explicit
about why whe require the location when the app is in the background.
2023-01-03 18:33:14 +01:00
Albert Vaca Cintora
4be79b52ae Show a toast if keyboard input is not supported 2022-12-31 00:03:41 +01:00
Yannik Sembritzki
9f9b565ce6 Separate persistent notification channel based on whether devices are connected
This allows users to selectively disable the persistent notification when no devices are connected.

BUG: 460927
2022-10-31 21:03:27 +00:00
Forrest Hilton
64ad798d70 Added a screen to allow users to compose the key strokes to send.
Added a screen to allow users to compose the key strokes to send. This is necessary because the keyboard that appears on the mouse pad screen does not have the voice to text microphone button on my phone. Even if it could be made to appear as it does on my tablet, some kind of text buffering is necessary because the voice text will change its mind.
2022-01-15 20:35:45 +00:00
Maxim Leshchenko
7286b8a24a Add ability to run commands from Android 11 power menu 2022-01-15 20:30:19 +00:00
Piyush Aggarwal
29ca097054 mousepadplugin: allow selecting which click to send for left click 2022-01-10 19:46:18 +00:00
Piyush Aggarwal
9b4c4ff9cb add option for Left click to be triggered when pressing two or three fingers 2022-01-10 19:46:18 +00:00
Maxim Leshchenko
492555ab9b Add more ways to send clipboard
Add the ability to send the clipboard to the device via the quick settings tile and via the menu on the device page

BUG: 439951
2022-01-10 19:25:07 +00:00
Sourav Das
8c226cb4c2 Added option to show notification only if the screen is off 2021-12-03 11:11:12 +06:00
Éric Gillet
61699108bc Specific android:label for ShareActiviy 2021-11-19 22:14:03 +00:00
Albert Vaca Cintora
f8e0d8ee71 Fix warning
Fixes "Multiple substitutions specified in non-positional format"
2021-10-05 00:02:53 +02:00
Philip Cohn-Cort
5940e957a8 Display battery status at the bottom of each device on its DeviceFragment
kdeconnect-android!105
2021-09-13 00:09:43 +00:00
Maxim Leshchenko
049cb6d6a6 Add a desktop-like about app page
Show version, authors and useful links
2021-08-21 13:11:55 +00:00
Łukasz Patron
d87a65d8b7 Add LoopStatus and Shuffle control to mpris plugin 2021-06-21 17:36:44 +00:00
Andy Holmes
abae0a45e0 strings.xml: fix fingerprint label
Both remote and local certificates are SHA256, fix the local string to
reflect that.
2021-04-08 22:48:55 -07:00
Sohny Bohny
28efb48257 Implement basic mouse receiver
## Summary

A basic mouse receiver implementation. You can now control your Android Device remotely which might be useful when it's connected to a bigger screen (via HDMI).

Unfortunately Android does not provide moving mouse by software (other than adb and without root). Therefore this implementation uses Android [AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService) to create an ImageView Overlay as mouse pointer and simulate touch gestures.
This is quite hacky but I think the best way to do so.

## Demo
Here is a small demo

![Screen_Capture_select-area_20200803155517](/uploads/635de03b6c7cc6765c4535cb8d80e77e/Screen_Capture_select-area_20200803155517.gif)
2021-04-04 06:34:52 +00:00
Lorem Ipsum
b9a6681a4f Set navigation bar color according to theme on API 27+ 2021-03-16 19:59:33 +00:00
David Shlemayev
32785cb510 Add ConnectivityReport Plugin
This plugin lets you monitor the signal strength of the mobile connection of the phone,
so you may know if opening a hotspot is viable, or figuring out why a connection dropped while hotspot-ing.
2021-03-13 00:35:47 +00:00
Daniel Weigl
801b6451ed Accept data via Intent and pass them on to the host as keystrokes
Adds new functionality to the MousepadPlugin to accept data via Intent and pass them on to the host as keystrokes via the existing MousePadPlugin.PACKET_TYPE_MOUSEPAD_REQUEST PackageType

 eg. to easily send OTP codes from the phone to the Desktop
2021-03-09 16:47:15 +00:00
Maxim Leshchenko
8ddb28c001 Small redesign
Changes:
1. In the menu, the design of the selected item was changed, the icon of the current device was added and the image was removed
2. Changed the accent color to orange
3. Separators have been removed from almost all lists
4. The design of the selected item was changed in the menu, the icon of the current device was added and the image was removed
4. Changed the color of the toolbar to white or black (depending on the theme)
2021-03-07 10:55:47 +00:00
Art Pinch
a4b3da7a14 Added switching between audio outputs and split player and devices into two pages 2021-02-19 19:00:29 +00:00
Daniel Tang
04a8bebe3a Add links and comply with GPL 2021-01-12 04:04:28 +00:00
Albert Vaca Cintora
d09ad45e11 Add a verification key that's displayed when pairing
The key is a sha256 of both devices' certificates. Both should generate the
same key, so hey user can check they are pairing against the right device.

Thanks Matthias Gerstner <mgerstner@suse.de> for reporting this.
2020-11-26 11:30:53 +01:00
Yuri Chornoivan
f7007fd557 Fix minor typo 2020-10-11 08:41:48 +03:00
Albert Vaca Cintora
5b34bcf3da More explicit explanation 2020-10-10 15:14:37 +02:00
Aniket Kumar
0528de7fde Implemented notification support to notify the user about the newly received SMS/MMS when KDE Connect will be set as the default SMS app. 2020-08-05 15:22:31 +05:30
Aniket Kumar
2758fba3d0 Removed APN settings from user preferences completely and replaced Klinker's get APN settings method with TelephonyHelper's getPreferredApn method. 2020-08-05 15:14:30 +05:30
Anjani Kumar
2b136fac4f Remove string.xml's version(v28) qualifier 2020-07-12 00:57:45 +05:30
Aniket Kumar
b119de8e76 Added MMS support to the SMSPlugin using Klinker library. 2020-07-05 13:32:44 +05:30
Aditya Mehra
ee5c75e10a Add support for Bigscreen STT using android's inbuilt speech engine 2020-06-06 21:39:41 +00:00
Philip Cohn-Cort
615f2c1d20 Fix crash on Plugin Settings screen 2020-06-04 07:56:22 +00:00
Anjani Kumar
c318d60916 New way to support dark theme to improve integration with system 2020-05-11 23:07:25 +00:00
Anjani Kumar
34c80314ed This reverts commit 0fc5d09078. 2020-04-21 15:15:49 +05:30
Vincent Blücher
0728f2d8d2 Android 10: Make SharePlugin usable again
- Due to Android 10 restrictions, background tasks can no longer launch activities
 - Post a notification instead when a URL is received and KDE Connect is not in foreground
2020-04-19 13:26:04 +00:00
Albert Vaca Cintora
0fc5d09078 Revert send clipboard on Android X
This reverts 3 commits:

"Clipboard Plugin: Added support to send clipboard to multiple devices on Android 10 and later."
b92271105a

"Excluded ClipboardFloatingActivity from App recents Screen"
ee1562050c

"Make Clipboard plugin work in Android X"
b81d3a82e5
2020-04-16 23:55:22 +02:00
Sylvia van Os
e3ca5aca57 Initial Bigscreen remote support 2020-03-27 20:33:10 +00:00
Albert Vaca Cintora
f75ad76e78 Pause origin when continuing on phone
And simplify error cases
2020-03-21 01:30:20 +01:00
Albert Vaca Cintora
5a299376e3 Move "open URL" button to overflow menu 2020-03-21 01:25:19 +01:00
Albert Vaca Cintora
6bdd815c17 Merge branch 'strace/kdeconnect-android-seamless_playback' 2020-03-21 00:50:25 +01:00
Md Shavez
a3b768fdf8 Added colors: secondary and onSecondary according to guidelines of material design 2020-03-17 12:30:25 +05:30
Anjani Kumar
b81d3a82e5 Make Clipboard plugin work in Android X
## Summary

Fixes #5

BUG: 417419](https://bugs.kde.org/show_bug.cgi?id=417419)

This patch introduces a workaround to access the restricted clipboard in Android X.
Clipboard synchronisation in KDE Connect was one of the killer features before Android X. An action button is added in the persistent foreground notification **Send Clipboard** which adds the ability to send the clipboard using a small workaround. Clipboard Synchronisation works as usual in lower Android Versions.

This is a very convenient workaround for sending clipboard quickly as it does not requires to open the app. Floating Activity is quite handy for quick actions.

## Details of the workaround

### ClipboardFloatingActivity

* This activity is only executed in Android X.
* This is transparent, accesses the clipboard when in focus.
* Sends a `NetworkPacket` containing *text* and *timestamp*.
* When the packet has been sent, it pops up a toast with a success message.
* Automatically closes after the showing the Toast.

### Reverted changes for Android X.

* Changes done in commits 54be4a1a99 and 9f3b75b748 have been reverted.
* These changes are not required anymore as the workaround for clipboard sync works.

The action button in the notification for **Send Clipboard** is not added in the lower versions of Android. **It is only added in Android X**.

**Two way sync is working in Android X with this patch. Sync works normally in lower Android versions.**

## Test Plan

### Before:

Clipboard from PC to Phones were synchronised but Clipboard of phones didn't get synchronised with the PC.

### After:

The action button is up in Android X while using other apps.

![Screenshot_20200227-150435_Chrome](/uploads/201960e1577321c8a77c9945bd2b5e76/Screenshot_20200227-150435_Chrome.png)

After clicking the button, a cute Toast appears with the message *Clipboard sent*

![Screenshot_20200228-233701_Chrome](/uploads/8da58b1006b95ce82c7cec2c91f32878/Screenshot_20200228-233701_Chrome.png)

I think this is one of the best workarounds available to make this awesome plugin work.
2020-03-12 03:56:37 +00:00
Anjani Kumar
d7f3931eeb Removed extra string resource 2020-02-25 02:46:32 +05:30
Anjani Kumar
e5e0b6dad6 Added two new string resources in strings.xml for two action buttons 2020-02-24 22:39:58 +05:30
Soul Trace
b99082ef00 Let user open in the PC browser media URL to Android device [1/2]
Seek position is preserved for following domains:
youtube.com
youtu.be
pornhub.com
vimeo.com
dailymotion.com
twitch.tv

ic_arrow_black.xml was converted from Kubuntu 19.10 AMD64
breeze-icon-theme package:
/usr/share/icons/breeze-dark/actions/32/arrow.svg
2020-01-18 17:27:49 +00:00
Albert Vaca Cintora
9f3b75b748 Notify Android 10 users that clipboard won't work 2020-01-14 23:02:38 +01:00
Albert Vaca Cintora
b3d91e083a Merge branch 'albertvaka/trusted-networks'
# Conflicts:
#	AndroidManifest.xml
2020-01-05 22:39:05 +01:00
Erik Duisters
ad801f1db8 Make FindMyPhone plugin work on Android 10 2020-01-05 17:40:54 +00:00
Albert Vaca Cintora
1448814ed7 Ask for permission, add to settings and notify in main activity 2019-10-27 23:37:40 +01:00