Skip to content

Commit

Permalink
ImsService: WfcHandler: Fix fatal crash
Browse files Browse the repository at this point in the history
* 02-02 19:18:48.766  2373  2413 E AndroidRuntime: FATAL EXCEPTION: MwiServiceHandlerThread
02-02 19:18:48.766  2373  2413 E AndroidRuntime: Process: com.mediatek.ims, PID: 2373
02-02 19:18:48.766  2373  2413 E AndroidRuntime: java.lang.ClassCastException: com.android.ims.ImsManager cannot be cast to com.mediatek.ims.internal.MtkImsManager
02-02 19:18:48.766  2373  2413 E AndroidRuntime:   at com.mediatek.wfo.impl.WfcHandler.onWfcPdnError(WfcHandler.java:576)
02-02 19:18:48.766  2373  2413 E AndroidRuntime:   at com.mediatek.wfo.impl.WfcHandler.handleMessage(WfcHandler.java:231)
02-02 19:18:48.766  2373  2413 E AndroidRuntime:   at android.os.Handler.dispatchMessage(Handler.java:106)
02-02 19:18:48.766  2373  2413 E AndroidRuntime:   at android.os.Looper.loopOnce(Looper.java:201)
02-02 19:18:48.766  2373  2413 E AndroidRuntime:   at android.os.Looper.loop(Looper.java:288)

Signed-off-by: Sushrut1101 <[email protected]>
  • Loading branch information
MrErenK authored and Sushrut1101 committed Jul 4, 2023
1 parent 7d1e394 commit f6e6ddc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions smali/com/mediatek/wfo/impl/WfcHandler.smali
Original file line number Diff line number Diff line change
Expand Up @@ -2232,14 +2232,6 @@

move-result-object v11

.line 576
.local v11, "mgr":Lcom/android/ims/ImsManager;
move-object v12, v11

check-cast v12, Lcom/mediatek/ims/internal/MtkImsManager;

invoke-virtual {v12, v7}, Lcom/mediatek/ims/internal/MtkImsManager;->setWfcRegErrorCode(I)V

.line 579
new-instance v12, Landroid/content/Intent;

Expand Down

0 comments on commit f6e6ddc

Please sign in to comment.