1
Solved

Assistance Request android.os.BadParcelableException

Tasker Version: 6.0.10
App Check Method: Accessibility

OS: LineageOS 20 (Android 13)
OS Code: 33
OS Target: 30

When using the Assistance Request event profile, it will consistently fail/crash with android.os.BadParcelableException in certain areas of apps. It seems to happen most often while I'm viewing an area of the app that is used for chatting.

Note 1: I can disable all event profiles that utilize assistance request, and the crash will still occur. Therefore it would seem it has nothing to do with the profiles I've created.

Note 2: I used the same event profiles in LineageOS 19 (Android 12L)  and they were not a problem,  so it's probably an issue specific to Android 13

Reproduce by:
1. Configure Tasker to handle Assistance Request under "Default apps" and "Digital Assistant App"
2. Open Instagram (com.instagram.android)
  a. Browse to your direct messages (DM)
  b. Open any DM
  c. Perform an Assistance Request

Tasker will fail with the following error for Instagram:
net.dinglisch.android.taskerm version 6.0.10; flavor: market; Source "com.android.vending"; BuildTime 2022-07-12 06:56

android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.instagram.direct.capabilities.Capabilities
at android.os.Parcel.readParcelableCreatorInternal(Parcel.java:4950)
at android.os.Parcel.readParcelableInternal(Parcel.java:4807)
at android.os.Parcel.readValue(Parcel.java:4567)
at android.os.Parcel.readValue(Parcel.java:4347)
at android.os.Parcel.-$$Nest$mreadValue(Unknown Source:0)
at android.os.Parcel$LazyValue.apply(Parcel.java:4445)
at android.os.Parcel$LazyValue.apply(Parcel.java:4404)
at android.os.BaseBundle.getValueAt(BaseBundle.java:394)
at android.os.BaseBundle.getValue(BaseBundle.java:374)
at android.os.BaseBundle.getValue(BaseBundle.java:357)
at android.os.BaseBundle.getValue(BaseBundle.java:350)
at android.os.BaseBundle.get(BaseBundle.java:674)
at com.joaomgcd.taskerm.util.q1.f0(SourceFile:34)
at com.joaomgcd.taskerm.util.q1.f0(SourceFile:44)
at com.joaomgcd.taskerm.util.q1.Z(Unknown Source:8)
at com.joaomgcd.taskerm.assistant.ServiceVoiceInteractionTasker$d.a(SourceFile:14)
at com.joaomgcd.taskerm.assistant.ServiceVoiceInteractionTasker$d.d(SourceFile:43)
at h9.c.d(SourceFile:2)
at h9.c.c(SourceFile:86)
at h9.c.onHandleAssist(SourceFile:8)
at android.service.voice.VoiceInteractionSession.doOnHandleAssist(VoiceInteractionSession.java:1761)
at android.service.voice.VoiceInteractionSession$MyCallbacks.executeMessage(VoiceInteractionSession.java:921)
at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.ClassNotFoundException: com.instagram.direct.capabilities.Capabilities
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:454)
at android.os.Parcel.readParcelableCreatorInternal(Parcel.java:4916)
... 29 more
Caused by: java.lang.ClassNotFoundException: com.instagram.direct.capabilities.Capabilities
... 32 more


14.24
ClassNotFoundException when unmarshalling: com.instagram.direct.capabilities.Capabilities
android.os.Parcel.readParcelableCreatorInternal(Parcel.java:4950)
android.os.Parcel.readParcelableInternal(Parcel.java:4807)
android.os.Parcel.readValue(Parcel.java:4567)
android.os.Parcel.readValue(Parcel.java:4347)
android.os.Parcel.-$$Nest$mreadValue(Unknown Source:0)
android.os.Parcel$LazyValue.apply(Parcel.java:4445)
Caused by:
java.lang.Class.classForName(Native Method)
java.lang.Class.forName(Class.java:454)
android.os.Parcel.readParcelableCreatorInternal(Parcel.java:4916)
android.os.Parcel.readParcelableInternal(Parcel.java:4807)
android.os.Parcel.readValue(Parcel.java:4567)
android.os.Parcel.readValue(Parcel.java:4347)
Caused by:
java.lang.Class.classForName(Native Method)
java.lang.Class.forName(Class.java:454)
android.os.Parcel.readParcelableCreatorInternal(Parcel.java:4916)
android.os.Parcel.readParcelableInternal(Parcel.java:4807)
android.os.Parcel.readValue(Parcel.java:4567)
android.os.Parcel.readValue(Parcel.java:4347)
Caused by:
java.lang.Class.classForName(Native Method)
java.lang.Class.forName(Class.java:454)
android.os.Parcel.readParcelableCreatorInternal(Parcel.java:4916)
android.os.Parcel.readParcelableInternal(Parcel.java:4807)
android.os.Parcel.readValue(Parcel.java:4567)
android.os.Parcel.readValue(Parcel.java:4347)
Caused by:
java.lang.Class.classForName(Native Method)
java.lang.Class.forName(Class.java:454)
android.os.Parcel.readParcelableCreatorInternal(Parcel.java:4916)
android.os.Parcel.readParcelableInternal(Parcel.java:4807)
android.os.Parcel.readValue(Parcel.java:4567)
android.os.Parcel.readValue(Parcel.java:4347)

In different app,  I've also seen ClassNotFoundException. Error stack below:

net.dinglisch.android.taskerm version 6.0.10; flavor: market; Source "com.android.vending"; BuildTime 2022-07-12 06:56

android.os.BadParcelableException: Parcelable encountered ClassNotFoundException reading a Serializable object (name = com.coffeemeetsbagel.models.Bagel)
at android.os.Parcel.readSerializableInternal(Parcel.java:5115)
at android.os.Parcel.readValue(Parcel.java:4639)
at android.os.Parcel.readValue(Parcel.java:4347)
at android.os.Parcel.-$$Nest$mreadValue(Unknown Source:0)
at android.os.Parcel$LazyValue.apply(Parcel.java:4445)
at android.os.Parcel$LazyValue.apply(Parcel.java:4404)
at android.os.BaseBundle.getValueAt(BaseBundle.java:394)
at android.os.BaseBundle.getValue(BaseBundle.java:374)
at android.os.BaseBundle.getValue(BaseBundle.java:357)
at android.os.BaseBundle.getValue(BaseBundle.java:350)
at android.os.BaseBundle.get(BaseBundle.java:674)
at com.joaomgcd.taskerm.util.q1.f0(SourceFile:34)
at com.joaomgcd.taskerm.util.q1.Z(Unknown Source:8)
at com.joaomgcd.taskerm.assistant.ServiceVoiceInteractionTasker$d.a(SourceFile:14)
at com.joaomgcd.taskerm.assistant.ServiceVoiceInteractionTasker$d.d(SourceFile:43)
at h9.c.d(SourceFile:2)
at h9.c.c(SourceFile:86)
at h9.c.onHandleAssist(SourceFile:8)
at android.service.voice.VoiceInteractionSession.doOnHandleAssist(VoiceInteractionSession.java:1761)
at android.service.voice.VoiceInteractionSession$MyCallbacks.executeMessage(VoiceInteractionSession.java:921)
at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.ClassNotFoundException: com.coffeemeetsbagel.models.Bagel
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:454)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:683)
at android.os.Parcel$2.resolveClass(Parcel.java:5095)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1731)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1622)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1900)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1440)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
at android.os.Parcel.readSerializableInternal(Parcel.java:5098)
... 27 more
Caused by: java.lang.ClassNotFoundException: com.coffeemeetsbagel.models.Bagel
... 37 more


14.00
Parcelable encountered ClassNotFoundException reading a Serializable object (name = com.coffeemeetsbagel.models.Bagel)
android.os.Parcel.readSerializableInternal(Parcel.java:5115)
android.os.Parcel.readValue(Parcel.java:4639)
android.os.Parcel.readValue(Parcel.java:4347)
android.os.Parcel.-$$Nest$mreadValue(Unknown Source:0)
android.os.Parcel$LazyValue.apply(Parcel.java:4445)
android.os.Parcel$LazyValue.apply(Parcel.java:4404)
Caused by:
java.lang.Class.classForName(Native Method)
java.lang.Class.forName(Class.java:454)
java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:683)
android.os.Parcel$2.resolveClass(Parcel.java:5095)
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1731)
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1622)
Caused by:
java.lang.Class.classForName(Native Method)
java.lang.Class.forName(Class.java:454)
java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:683)
android.os.Parcel$2.resolveClass(Parcel.java:5095)
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1731)
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1622)
Caused by:
java.lang.Class.classForName(Native Method)
java.lang.Class.forName(Class.java:454)
java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:683)
android.os.Parcel$2.resolveClass(Parcel.java:5095)
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1731)
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1622)
Caused by:
java.lang.Class.classForName(Native Method)
java.lang.Class.forName(Class.java:454)
java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:683)
android.os.Parcel$2.resolveClass(Parcel.java:5095)
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1731)
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1622)

1 reply

Hi there, thanks for the report! Can you please try this version? https://drive.google.com/file/d/1morX64lZg8qjAb0NLw5OH5lwo86rcRuK/view

If you want you can also check any previous releases here: https://drive.google.com/drive/folders/1GW55YKFiuOZhJVswnt_BQUCJoGm36ugF?usp=sharing

Topic is closed for comments