2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 01:51:47 +00:00

2923 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
Bacteria Dev
118d8784fa Hide 'Send Clipboard' from DeviceFragment when READ_LOGS permission is granted
On Android 10 and above, Clipboard needs to be manually sent. Recently the app was shipped with the patches so that users can use adb to grant the required permissions for automatic clipboard propagation.

In case the permissions were granted for automatic clipboard propagation, 'Send Clipboard' option was hidden from persistent notification but was not removed from the DeviceFragment. This MR addresses this.
2023-03-04 12:34:59 +00:00
l10n daemon script
938985beff GIT_SILENT made messages (after extraction) 2023-03-02 00:54:29 +00:00
l10n daemon script
cf0e4d4100 GIT_SILENT Sync po/docbooks with svn 2023-02-28 02:30:01 +00:00
Matthew Mirvish
80d780ed85 Use colon instead of hyphen when building command control ids
Certain implementations of the protocol (namely GSConnect) use UUIDS
for the device IDS/command keys, which contain hyphens in them. The
current implementation of RunCommandControlsProviderService (used for
the android 11 power menu command control things) gives the controls
unique IDS with "{deviceid}-{commandkey}" and then tries to split on the
hyphen, which obviously breaks if the device id or command key contain
hyphens. This patch changes it to uses colons to separate them instead.

Note that I've only tested this with GSconnect, but I see no reason why
it wouldn't work with the normal KDE connect implementation too, unless
it uses colons in IDs.
2023-02-27 22:17:07 +00:00
l10n daemon script
cb5939f1df GIT_SILENT Sync po/docbooks with svn 2023-02-27 02:35:20 +00:00
l10n daemon script
e2041305fb GIT_SILENT made messages (after extraction) 2023-02-27 01:00:22 +00:00
l10n daemon script
f71256f8f6 GIT_SILENT Sync po/docbooks with svn 2023-02-26 02:22:04 +00:00
Albert Vaca Cintora
f6c61f4e4b Specify the foreground service type in Android 29+ 2023-02-25 11:31:18 +01:00
l10n daemon script
1011cdcb33 GIT_SILENT Sync po/docbooks with svn 2023-02-25 03:01:22 +00:00
l10n daemon script
1c650bea83 GIT_SILENT made messages (after extraction) 2023-02-25 01:00:02 +00:00
l10n daemon script
7d3f76cb87 GIT_SILENT made messages (after extraction) 2023-02-18 00:58:09 +00:00
l10n daemon script
08b26264b3 GIT_SILENT Sync po/docbooks with svn 2023-02-17 02:15:20 +00:00
l10n daemon script
8c1e8a8d35 GIT_SILENT Sync po/docbooks with svn 2023-02-16 03:04:18 +00:00
l10n daemon script
953785f5ad GIT_SILENT Sync po/docbooks with svn 2023-02-09 02:28:57 +00:00
l10n daemon script
fd16407a53 GIT_SILENT Sync po/docbooks with svn 2023-02-08 03:02:12 +00:00
l10n daemon script
4b5e632f5b GIT_SILENT made messages (after extraction) 2023-02-08 00:58:34 +00:00
l10n daemon script
7a1aadeeec GIT_SILENT made messages (after extraction) 2023-02-05 00:57:27 +00:00
l10n daemon script
bbe90633fd GIT_SILENT Sync po/docbooks with svn 2023-02-02 02:21:08 +00:00
l10n daemon script
d38bbd4476 GIT_SILENT made messages (after extraction) 2023-02-02 00:57:30 +00:00
Albert Vaca Cintora
c36cb98d50 Release 1.22.2 v1.22.2 2023-02-01 17:41:03 +01:00
l10n daemon script
0e14382541 GIT_SILENT made messages (after extraction) 2023-02-01 00:56:44 +00:00
l10n daemon script
42d8e6b2e2 GIT_SILENT Sync po/docbooks with svn 2023-01-31 02:15:51 +00:00
Simon Redman
26ceeceb45 Switch to jitpack build for smsmms library
Is the third time the charm?

f-droid does not allow libraries pulled from non-listed maven repositories, thus the build fails in f-droid:
https://gitlab.com/fdroid/fdroiddata/-/jobs/3654530159#L236
> Found unknown maven repo 'https://invent.kde.org/api/v4/projects/72/packages/maven' at settings.gradle

This MR changes to use [jitpack](https://jitpack.io/#org.kde.invent.sredman/android-smsmms/kdeconnect-1-21-0), which is an allowed repository.
2023-01-30 23:07:27 +00:00
l10n daemon script
ba77fa786f GIT_SILENT made messages (after extraction) 2023-01-30 00:57:09 +00:00
l10n daemon script
aca039433c GIT_SILENT made messages (after extraction) 2023-01-29 00:57:31 +00:00
Albert Vaca Cintora
bbbc315cf7 Release 1.22.1 v1.22.1 2023-01-27 18:25:54 +01:00
Albert Vaca Cintora
d74ad30740 Disable jetifier
Android Studio suggested it since we are not using it
2023-01-27 18:24:02 +01:00
Albert Vaca Cintora
b5d9293103 Remove REQUEST_INSTALL_PACKAGES permission
Google keeps being annoying and now they got really strict with which apps
can be published to the Play Store using this permission
2023-01-27 18:23:16 +01:00
Albert Vaca Cintora
9eb047e7a1 Actually, release 1.22 v1.22 2023-01-23 23:34:24 +01:00
Albert Vaca Cintora
82415b3fa7 Release 1.21.2 2023-01-23 23:26:07 +01:00
Albert Vaca Cintora
15fec5e515 Bump deps 2023-01-23 23:24:27 +01:00
Simon Redman
bcf080f6eb [SMS Plugin] Change android-smsmms to in-house build until upstream supports SDK31
## Summary

Android apps which target SDK 31+ require specifying the mutability of any PENDING_INTENT. This is not supported in the upstream android-smsmms library: https://github.com/klinker41/android-smsmms/pull/193

Until the above PR is merged, we need a solution. I have pulled the code into https://invent.kde.org/sredman/android-smsmms and published the package in the Maven repository in gitlab.

BUG: 464392

## Test Plan

### Before:
Attempting to send an SMS or MMS message using kdeconnect-sms results in no message being sent, and an error being logged:

> V/Sending message: Sending new SMS
> E/Sending message: Exception
>     java.lang.IllegalArgumentException: org.kde.kdeconnect_tp: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
>     Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
>         at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
>         at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:673)
>         at android.app.PendingIntent.getBroadcast(PendingIntent.java:660)
>         at com.klinker.android.send_message.Transaction.sendSmsMessage(Transaction.java:267)
>         at com.klinker.android.send_message.Transaction.sendNewMessage(Transaction.java:158)
>         at com.klinker.android.send_message.Transaction.sendNewMessage(Transaction.java:172)
>         at org.kde.kdeconnect.Plugins.SMSPlugin.SmsMmsUtils.sendMessage(SmsMmsUtils.java:188)
>         at org.kde.kdeconnect.Plugins.SMSPlugin.SMSPlugin.onPacketReceived(SMSPlugin.java:414)
>         at org.kde.kdeconnect.Device.onPacketReceived(Device.java:570)
>         <snipped for brevity>

### After:
SMS and MMS sends normally.
2023-01-23 22:02:01 +00:00
Simon Redman
9db4c885a5 [SMS Plugin] Fix handling for addresses list of multi-target group messages
## Summary

Fix a logic error in the SMS plugin which caused it to skip the addresses of other targets when reporting group messages.

Notionally, this bug originated with the logic change in !197, where everything switched to using the android-smsmms library.

BUG: 464555

## Test Plan

### Before:
Group messages would be returned as single-target messages between you and the sender, meaning the desktop app would have a bad time showing them.

### After:
Group messages are returned with the appropriate list of addresses, the desktop app groups them appropriately.
2023-01-22 20:16:06 +00:00
l10n daemon script
67dc1f1fae GIT_SILENT made messages (after extraction) 2023-01-22 00:56:52 +00:00
Simon Redman
e76da90fa9 Correct logic error when determining which "new" messages to return
With the old logic, the mostRecentTimestamp would effectively only be updated once, the first time the app noticed an SMS/MMS. This means that, until the app was next closed, it would return every message sent or received after that timestamp. Since the app doesn't crash as often as it used to, this can grow to a quite significant number of messages.
2023-01-20 21:21:30 -05:00
l10n daemon script
f74336da30 GIT_SILENT made messages (after extraction) 2023-01-21 00:57:51 +00:00
l10n daemon script
154ce67a7c GIT_SILENT made messages (after extraction) 2023-01-16 00:56:06 +00:00
l10n daemon script
207d7b7eb0 GIT_SILENT made messages (after extraction) 2023-01-15 00:55:51 +00:00
l10n daemon script
9870150155 GIT_SILENT Sync po/docbooks with svn 2023-01-14 02:14:51 +00:00
l10n daemon script
141f711b8d GIT_SILENT Sync po/docbooks with svn 2023-01-13 02:51:57 +00:00
l10n daemon script
02ee982991 GIT_SILENT made messages (after extraction) 2023-01-13 00:55:52 +00:00
l10n daemon script
b5b2ebde9d GIT_SILENT Sync po/docbooks with svn 2023-01-12 02:15:28 +00:00
l10n daemon script
cd2dde90cd GIT_SILENT Sync po/docbooks with svn 2023-01-11 02:16:02 +00:00
l10n daemon script
725c302caa GIT_SILENT made messages (after extraction) 2023-01-11 00:56:46 +00:00
l10n daemon script
2680859acc GIT_SILENT made messages (after extraction) 2023-01-10 00:55:40 +00:00
l10n daemon script
7148038ea9 GIT_SILENT made messages (after extraction) 2023-01-09 00:55:14 +00:00
Albert Vaca Cintora
889e0d5c52 Release 1.21.1 v1.21.1 2023-01-08 13:30:42 +01:00
l10n daemon script
c075cc0b63 GIT_SILENT made messages (after extraction) 2023-01-08 00:58:22 +00:00
l10n daemon script
91c0097158 GIT_SILENT made messages (after extraction) 2023-01-07 00:48:52 +00:00