java.lang.SecurityException: Binder invocation to an incorrect interface in our app which only happens on 6.0 and 6.0.1 OS. The stack trace is pulled from a crash reporting service and could not be replicated locally on any of the Android 6 devices. The app uses a 'Service' which calls 'startForeground' and the stack trace seems to point to that method call. java.lang.SecurityException: Binder invocation to an incorrect interface

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

,
Expert tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

Solutions on the web

via Stack Overflow by Ziad Halabi
, 1 year ago
Binder invocation to an incorrect interface in our app which only happens on 6.0 and 6.0.1 OS. The stack trace is pulled from a crash reporting service and could not be replicated locally on any of the Android 6 devices. The app uses a 'Service
via Stack Overflow by intel
, 1 year ago
Unable to find app for caller android.app.ApplicationThreadProxy@424afbd0 (pid=1044) when starting service Intent { cmp=ProcessingService }
via Stack Overflow by Goran Horia Mihail
, 1 year ago
Unable to find app for caller android.app.ApplicationThreadProxy@43d42298 (pid=819) when starting service Intent { act=com.google.android.gms.analytics.ANALYTICS_DISPATCH cmp=com.nobelglobe.nobelapp/com.google.android.gms.analytics.AnalyticsService }
via Stack Overflow by Ove Stoerholt
, 1 year ago
uid 10107 cannot explicitly add accounts of type: com.example
via Stack Overflow by user39996
, 2 years ago
Permission Denial: not allowed to send broadcast android.location.GPS_ENABLED_CHANGE from pid=7773, uid=10160
via GitHub by kordianbruck
, 1 year ago
Permission Denial: opening provider com.android.providers.calendar.CalendarProvider2 from ProcessRecord{712a0d6 25897:de.tum.in.tumcampus/u0a216} (pid=25897, uid=10216) requires android.permission.READ_CALENDAR or android.permission.WRITE_CALENDAR
java.lang.SecurityException: Binder invocation to an incorrect interface in our app which only happens on 6.0 and 6.0.1 OS. The stack trace is pulled from a crash reporting service and could not be replicated locally on any of the Android 6 devices. The app uses a 'Service' which calls 'startForeground' and the stack trace seems to point to that method call. java.lang.SecurityException: Binder invocation to an incorrect interface
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at android.app.ActivityManagerProxy.setServiceForeground(ActivityManagerNative.java:4487)
at com.anghami.audio.MusicService.J(MusicService.java:3517)
at com.anghami.audio.MusicService.b(MusicService.java:2676)
at com.anghami.audio.MusicService.F(MusicService.java:2647)
at com.anghami.audio.MusicService.a(MusicService.java:2421)
at com.anghami.audio.MusicService_.a(MusicService_.java:21)
at com.anghami.audio.MusicService_$4.a(MusicService_.java:214)
at org.androidannotations.api.a$a.run(BackgroundExecutor.java:401)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

Once, 1 day ago
Samebug visitor profile picture
Unknown user
Once, 1 day ago
Samebug visitor profile picture
Unknown user
Once, 2 days ago
Samebug visitor profile picture
Unknown user
Once, 2 days ago
Once, 2 days ago
249 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.