Skip to content

Conversation

@mahibi
Copy link
Collaborator

@mahibi mahibi commented Jan 22, 2026

πŸ–ΌοΈ Screenshots

🏚️ Before 🏑 After
B A

🚧 TODO

  • ...

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • πŸ”– Capability is checked or not needed
  • πŸ”™ Backport requests are created or not needed: /backport to stable-xx.x
  • πŸ“… Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@mahibi mahibi added this to the 23.0.0 milestone Jan 22, 2026
@mahibi mahibi self-assigned this Jan 22, 2026
@mahibi mahibi added the 3. to review Waiting for reviews label Jan 22, 2026
@mahibi mahibi force-pushed the bugfix/noid/fixSecurityExceptionStartForeground branch from de21708 to b065494 Compare January 22, 2026 12:12
Exception java.lang.RuntimeException:
  at android.app.ActivityThread.handleServiceArgs (ActivityThread.java:5299)
  at android.app.ActivityThread.-$$Nest$mhandleServiceArgs (Unknown Source)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2584)
  at android.os.Handler.dispatchMessage (Handler.java:112)
  at android.os.Looper.loopOnce (Looper.java:268)
  at android.os.Looper.loop (Looper.java:384)
  at android.app.ActivityThread.main (ActivityThread.java:8936)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:580)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:907)
Caused by java.lang.SecurityException:
  at android.os.Parcel.createExceptionOrNull (Parcel.java:3241)
  at android.os.Parcel.createException (Parcel.java:3225)
  at android.os.Parcel.readException (Parcel.java:3208)
  at android.os.Parcel.readException (Parcel.java:3150)
  at android.app.IActivityManager$Stub$Proxy.setServiceForeground (IActivityManager.java:7326)
  at android.app.Service.startForeground (Service.java:863)
  at com.nextcloud.talk.services.CallForegroundService.onStartCommand (CallForegroundService.kt:40)
  at android.app.ActivityThread.handleServiceArgs (ActivityThread.java:5281)
Caused by android.os.RemoteException: Remote stack trace:
  at com.android.server.am.ActiveServices.validateForegroundServiceType (ActiveServices.java:2921)
  at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked (ActiveServices.java:2605)
  at com.android.server.am.ActiveServices.setServiceForegroundLocked (ActiveServices.java:1859)
  at com.android.server.am.ActivityManagerService.setServiceForeground (ActivityManagerService.java:14540)
  at android.app.IActivityManager$Stub.onTransact$setServiceForeground$ (IActivityManager.java:12183)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi mahibi force-pushed the bugfix/noid/fixSecurityExceptionStartForeground branch from b065494 to 450c86d Compare January 22, 2026 12:43
@github-actions
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/5742.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions
Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings9999
Errors02

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1010
Dodgy code5454
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total8181

Lint increased!

@mahibi mahibi merged commit 221d5bd into master Jan 23, 2026
15 of 17 checks passed
@mahibi mahibi deleted the bugfix/noid/fixSecurityExceptionStartForeground branch January 23, 2026 08:07
@mahibi
Copy link
Collaborator Author

mahibi commented Jan 23, 2026

/backport to stable-23.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants