2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00
Commit Graph

2891 Commits

Author SHA1 Message Date
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
l10n daemon script
a25e88238d GIT_SILENT made messages (after extraction) 2023-01-06 00:47:14 +00:00
l10n daemon script
4336ea4761 GIT_SILENT made messages (after extraction) 2023-01-05 00:47:29 +00: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
l10n daemon script
7d7162bb5b GIT_SILENT Sync po/docbooks with svn 2023-01-04 02:43:22 +00:00
l10n daemon script
b0655fc9d0 GIT_SILENT made messages (after extraction) 2023-01-04 00:48:28 +00: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
l10n daemon script
f7b55e4416 GIT_SILENT Sync po/docbooks with svn 2023-01-03 02:57:06 +00:00
l10n daemon script
ff78fdfd59 GIT_SILENT made messages (after extraction) 2023-01-03 00:46:55 +00:00
Albert Vaca Cintora
8b01db3c34 Release 1.21.0 v1.21.0 2023-01-02 22:29:09 +01:00
Albert Vaca Cintora
25728eae18 If you use FINE_LOCATION you also should declare COARSE_LOCATION 2023-01-02 22:28:48 +01:00
Albert Vaca Cintora
dc7fc46e62 Revert "Comment out MouseReceiverPlugin"
This reverts commit a663f4d106.
2023-01-02 22:08:09 +01:00
Albert Vaca Cintora
2b1e4dcb23 Bump deps 2023-01-02 22:00:32 +01:00
Albert Vaca Cintora
97b7eb71cf Delete tests broken since 2019
I spent a few hours and couldn't fix them
2023-01-02 21:54:21 +01:00
Harry Cheng
bb0ab51d3b Do not send cancel packet from disabled apps 2023-01-02 16:08:04 +08:00
l10n daemon script
f503b18993 GIT_SILENT made messages (after extraction) 2023-01-02 01:00:29 +00:00
l10n daemon script
58e9a5d2b6 GIT_SILENT made messages (after extraction) 2023-01-01 00:56:32 +00:00
Albert Vaca Cintora
fd34e56675 Use registerNetworkCallback to listen to network changes
ConnectivityManager.CONNECTIVITY_ACTION was deprecated in Android 9
2022-12-31 00:35:08 +01:00
Albert Vaca Cintora
4be79b52ae Show a toast if keyboard input is not supported 2022-12-31 00:03:41 +01:00
Albert Vaca Cintora
028a2992c9 Bump deps 2022-12-30 23:58:13 +01:00
Albert Vaca Cintora
bdfc21cf64 Hopefully fix NPE 2022-12-29 18:51:12 +01:00
Albert Vaca Cintora
5225d0b200 Release 1.20.2 v1.20.2 2022-12-28 19:29:55 +01:00
Albert Vaca Cintora
54e5224f20 Fix minifier deleting "unused" xml that were actually used 2022-12-28 19:29:23 +01:00
Albert Vaca Cintora
6ab846cbbd Fix NPE 2022-12-28 17:31:52 +01:00
Albert Vaca Cintora
ea66605ef0 Fix crash on Android 7 2022-12-28 17:31:42 +01:00
Albert Vaca Cintora
c903c5d3fd Release 1.20.1
Untagged because it's for the play store only.
2022-12-28 00:26:58 +01:00
Albert Vaca Cintora
a663f4d106 Comment out MouseReceiverPlugin
The Play Store asks us a video showing why we need the accessibility
service, and I can't make it work so I can't record the video.
Removing this plugin removes the need for any accessibility permissions.
v1.20.1
2022-12-28 00:14:49 +01:00
Albert Vaca Cintora
1a79c3e77a Release 1.20 v1.20 2022-12-27 23:53:45 +01:00
Albert Vaca Cintora
6fbd923c60 Bump dependencies and targetSdkVersion
Motivation: We can't publish to the Play Store with a targetSdkVersion < 31

The new targetSdk required two changes:

* Specifying when activities, services and receivers should be exported or
  not to other apps. For the ones I wasn't sure of what we want, I made
  them exported to not break something.
* Specifying when a PendingIntent should be mutable or immutable. I made
  them all mutable for now.
2022-12-27 23:53:13 +01:00
l10n daemon script
f7b25bfaf7 GIT_SILENT Sync po/docbooks with svn 2022-12-26 02:16:12 +00:00
l10n daemon script
e61af6fa37 GIT_SILENT Sync po/docbooks with svn 2022-12-25 02:42:13 +00:00
Felix Fischer
9df91577d3 Add monochrome drawable (i.e. Android 13 themed icon)
## Summary

Since a lot of devices now have Android 13, some users might want support for the new themed app icons.
This adds support for these, by adding a monochrome drawable (just the default icon with only the phone border and K) in `res/drawable-v24/ic_launcher_monochrome.xml` and then referencing this in `res/minimap-anydpi-v26/ic_laucher(_round).xml`.

## Test Plan

This can be tested by simply compiling and installing the app as usual on any device running Android 13.
After installing the app, the option for an adaptive colour theme will need to be enabled:
- OneUI5: Long-press home screen > Wallpaper and Style > Colour palette > enable colour palette and check "Apply palette to app icons"
- Pixel: Long-press home screen > Wallpaper & style > check "Themed icons"

The app icon should now follow the system theme (on some devices only on home screen, on others both home screen and app drawer).

![Screenshot_20221204_231210](/uploads/75ec96d9a3b17486622e32148cfd775c/Screenshot_20221204_231210.png)
2022-12-19 22:12:03 +00:00
l10n daemon script
39ff1da82d GIT_SILENT Sync po/docbooks with svn 2022-12-15 02:14:58 +00:00