Bug 494741 - Error/Failed receiving file since targeting API 34
Summary: Error/Failed receiving file since targeting API 34
Status: RESOLVED DUPLICATE of bug 494336
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (other bugs)
Version First Reported In: unspecified
Platform: Android Android 14.x
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-14 13:40 UTC by Yogas Kung
Modified: 2024-10-14 13:49 UTC (History)
1 user (show)

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


Attachments
Android notification of Failed receiving file from ... (27.79 KB, image/png)
2024-10-14 13:40 UTC, Yogas Kung
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yogas Kung 2024-10-14 13:40:16 UTC
Created attachment 174807 [details]
Android notification of Failed receiving file from ...

SUMMARY

The notification shows false information about receiving status, which is always failed even the file is 100% received successfully.

STEPS TO REPRODUCE
1. Upgrade to 1.32.5 from F-Droid
2. Receive any file from computer
3. See notification

OBSERVED RESULT
The file is delivered ok, but the notification, see 1.png as attached.

EXPECTED RESULT
Show as successful.

SOFTWARE/OS VERSIONS
Windows: 
macOS: Somoma 14.6.1
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Logs, TBA
Comment 1 Yogas Kung 2024-10-14 13:44:36 UTC
I can't edit the main post it seems...

Here are the logs:

```
Shareplugin org.kde.kdeconnect_tp E  Error receiving file

java.lang.IllegalArgumentException: org.kde.kdeconnect_tp: Targeting U+ (version 34 and above) disallows creating or retrieving a PendingIntent with FLAG_MUTABLE, an implicit Intent within and without FLAG_NO_CREATE and FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT for security reasons. To retrieve an already existing PendingIntent, use FLAG_NO_CREATE, however, to create a new PendingIntent with an implicit Intent use FLAG_IMMUTABLE.
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3187)
	at android.os.Parcel.createException(Parcel.java:3167)
	at android.os.Parcel.readException(Parcel.java:3150)
	at android.os.Parcel.readException(Parcel.java:3092)
	at android.app.IActivityManager$Stub$Proxy.getIntentSenderWithFeature(IActivityManager.java:6767)
	at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:582)
	at android.app.PendingIntent.getActivity(PendingIntent.java:563)
	at android.app.PendingIntent.getActivity(PendingIntent.java:527)
	at org.kde.kdeconnect.Plugins.SharePlugin.ReceiveNotification.setURI(ReceiveNotification.java:159)
	at org.kde.kdeconnect.Plugins.SharePlugin.CompositeReceiveFileJob.run(CompositeReceiveFileJob.java:224)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)
Caused by: android.os.RemoteException: Remote stack trace:
	at com.android.server.am.ActivityManagerService.getIntentSenderWithFeatureAsApp(ActivityManagerService.java:5479)
	at com.android.server.am.ActivityManagerService.getIntentSenderWithFeature(ActivityManagerService.java:5422)
	at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3349)
	at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2822)
	at android.os.Binder.execTransactInternal(Binder.java:1505)

```

I think the bug appeared since https://invent.kde.org/network/kdeconnect-android/-/commit/283956c10767b9313919af29e3029691c572a616.
Comment 2 Yogas Kung 2024-10-14 13:47:24 UTC
I did not notice it at the first version since the target API upgrade because there are several versions skipped from F-Droid.
Comment 3 Yogas Kung 2024-10-14 13:49:31 UTC

*** This bug has been marked as a duplicate of bug 494336 ***