pixel-volte-patch icon indicating copy to clipboard operation
pixel-volte-patch copied to clipboard

Sony Xperia ZR2 Compact - Pixel IMS stops

Open i998 opened this issue 11 months ago • 8 comments

Disclaimer Sorry to taking your attention to non-pixel phone. However there are a number of threads on XDA that illustrates that your beatiful Pixel IMS works on other handsets too - Sonyy Readme etc. Hence I am asking for a help. Would be possible for you to help with troubleshooting why the Pixel IMS suddenly stops?

Describe the bug Sony Xperia ZR2 Compact - Pixel IMS stops.

To Reproduce Steps to reproduce the behavior:

  1. Follow the instruction step by step up as published at https://github.com/kyujin-cho/pixel-volte-patch/blob/main/README.en.md up to "Tap "Allow all the time" when seeing prompt asking for Shizuku permission." I.e. get shizuku running, Pixel IMS installed, all good, no issues.
  2. Tap "Allow all the time"
  3. See error: the phone have a pop-up saying: Pixel IMS keeps stopping - app info - close app

Any further attempt to restart the application ends up with the same error message as above.

Expected behavior Pixel IMS continue to work or provides a description/log what went wrong and why it stops

Screenshots N/A

Desktop (please complete the following information):

  • OS: Win 7 SP1
  • ADB platform-tools_r34.0.4-windows (latest for Win 7)

Smartphone (please complete the following information):

  • Device: Sony Xperia XZ2 Compact , H8324
  • OS: Android 10
  • Firmware: H8324_Customized AU_52.1.A.3.49-R4C

Additional context Mobile Network : Internode APN Vodafone live! live.vodafone.com Phone / SIM are not locked

i998 avatar Feb 28 '24 11:02 i998

grab adb logcat and dump it here

fillwithjoy1 avatar Feb 28 '24 16:02 fillwithjoy1

Thank you , I did 2 tests:

  1. couple attempts to run Pixel IMS - see logfiles logcat1.txt and logcat2.txt
  2. uninstall Pixel IMS and install and run again - see logcat3.txt Here is the extract from the last file where I think the error is recorded :
02-29 19:29:08.384 12362 12362 D HomeActivity:Home: Shizuku granted
02-29 19:29:08.384 12362 12362 D AndroidRuntime: Shutting down VM
02-29 19:29:08.384 11083 11170 D OpenGLRenderer: endAllActiveAnimators on 0x7a89576d00 (RippleDrawable) with handle 0x7ae283eea0
02-29 19:29:08.384 12362 12362 E AndroidRuntime: FATAL EXCEPTION: main
02-29 19:29:08.384 12362 12362 E AndroidRuntime: Process: dev.bluehouse.enablevolte, PID: 12362
02-29 19:29:08.384 12362 12362 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/telephony/TelephonyFrameworkInitializer;
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at dev.bluehouse.enablevolte.Moder.getSub(Moder.kt:72)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at dev.bluehouse.enablevolte.CarrierModer.getSubscriptions(Moder.kt:87)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at dev.bluehouse.enablevolte.HomeActivityKt.PixelIMSApp$loadApplication$lambda$8(HomeActivity.kt:140)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at dev.bluehouse.enablevolte.HomeActivityKt.$r8$lambda$PSSqzEs_Z2UKt3jY9hNxlBuZUxA(Unknown Source:0)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at dev.bluehouse.enablevolte.HomeActivityKt$$ExternalSyntheticLambda0.onRequestPermissionResult(Unknown Source:12)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at rikka.shizuku.Shizuku.lambda$scheduleRequestPermissionResultListener$5(Shizuku.java:402)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at rikka.shizuku.Shizuku$$ExternalSyntheticLambda4.run(Unknown Source:6)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:883)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:100)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:359)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7418)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
02-29 19:29:08.384 12362 12362 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: android.telephony.TelephonyFrameworkInitializer

logcat1.txt logcat2.txt logcat3.txt

Hope that helps. Please let me know if I can provide any more data - appreciate your help.

i998 avatar Feb 29 '24 09:02 i998

P.S. Please also see results from
adb logcat -b radio

logcatRadio.txt

i998 avatar Feb 29 '24 09:02 i998

Seems like a bug with Android 10 devices. I have a secondary phone running Android 10 too and faced this issue

IntelCorei5-8350u avatar Mar 10 '24 03:03 IntelCorei5-8350u

Is any chance to fix this bug please? Unfortunately Sony does not have any further update with a higher Androind version or a patch....

i998 avatar Mar 10 '24 05:03 i998

Here it's mine with exactly the same error:

Device: Huawei P30 Pro OS: Android 10

The logcat says:

03-12 00:50:13.060  5086  5086 E AndroidRuntime: FATAL EXCEPTION: main
03-12 00:50:13.060  5086  5086 E AndroidRuntime: Process: dev.bluehouse.enablevolte, PID: 5086
03-12 00:50:13.060  5086  5086 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/telephony/TelephonyFrameworkInitializer;
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.Moder.getSub(Moder.kt:72)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.CarrierModer.getSubscriptions(Moder.kt:87)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.HomeActivityKt.PixelIMSApp$loadApplication(HomeActivity.kt:133)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.HomeActivityKt.access$PixelIMSApp$loadApplication(HomeActivity.kt:1)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.HomeActivityKt$PixelIMSApp$1.invoke(HomeActivity.kt:156)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.HomeActivityKt$PixelIMSApp$1.invoke(HomeActivity.kt:154)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.ComponentsKt$OnLifecycleEvent$1$1$observer$1.onStateChanged(Components.kt:69)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.kt:314)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.lifecycle.LifecycleRegistry.forwardPass(LifecycleRegistry.kt:251)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.kt:287)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.kt:199)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:138)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:131)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(AndroidComposeView.android.kt:1147)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.View.dispatchAttachedToWindow(View.java:20107)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3619)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3626)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3626)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3626)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3626)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2549)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2166)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8887)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1280)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.Choreographer.doCallbacks(Choreographer.java:1019)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.Choreographer.doFrame(Choreographer.java:911)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1248)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:900)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:103)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:219)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:8668)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
03-12 00:50:13.060  5086  5086 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: android.telephony.TelephonyFrameworkInitializer
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        ... 34 more

The problem seems related to the library used in Moder.kt: import android.telephony.TelephonyFrameworkInitializer maybe as @bolabola6789 mentioned, it's not compatible with Android 10 (but the minimum SDK in Google play is 29 which is just for Android 10) I'm not familiar with programming at this level, just starting in this world, but who knows, this comment might help to another in something.

torbol avatar Mar 12 '24 02:03 torbol

Here it's mine with exactly the same error:

Device: Huawei P30 Pro OS: Android 10

The logcat says:

03-12 00:50:13.060  5086  5086 E AndroidRuntime: FATAL EXCEPTION: main
03-12 00:50:13.060  5086  5086 E AndroidRuntime: Process: dev.bluehouse.enablevolte, PID: 5086
03-12 00:50:13.060  5086  5086 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/telephony/TelephonyFrameworkInitializer;
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.Moder.getSub(Moder.kt:72)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.CarrierModer.getSubscriptions(Moder.kt:87)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.HomeActivityKt.PixelIMSApp$loadApplication(HomeActivity.kt:133)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.HomeActivityKt.access$PixelIMSApp$loadApplication(HomeActivity.kt:1)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.HomeActivityKt$PixelIMSApp$1.invoke(HomeActivity.kt:156)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.HomeActivityKt$PixelIMSApp$1.invoke(HomeActivity.kt:154)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at dev.bluehouse.enablevolte.ComponentsKt$OnLifecycleEvent$1$1$observer$1.onStateChanged(Components.kt:69)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.kt:314)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.lifecycle.LifecycleRegistry.forwardPass(LifecycleRegistry.kt:251)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.kt:287)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.kt:199)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:138)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:131)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(AndroidComposeView.android.kt:1147)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.View.dispatchAttachedToWindow(View.java:20107)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3619)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3626)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3626)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3626)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3626)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2549)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2166)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8887)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1280)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.Choreographer.doCallbacks(Choreographer.java:1019)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.Choreographer.doFrame(Choreographer.java:911)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1248)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:900)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:103)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:219)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:8668)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
03-12 00:50:13.060  5086  5086 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: android.telephony.TelephonyFrameworkInitializer
03-12 00:50:13.060  5086  5086 E AndroidRuntime:        ... 34 more

The problem seems related to the library used in Moder.kt: import android.telephony.TelephonyFrameworkInitializer maybe as @bolabola6789 mentioned, it's not compatible with Android 10 (but the minimum SDK in Google play is 29 which is just for Android 10) I'm not familiar with programming at this level, just starting in this world, but who knows, this comment might help to another in something.

You might be onto something

fillwithjoy1 avatar Mar 13 '24 22:03 fillwithjoy1

Same issue on a OnePlus 5T using Android 10.

raphinesse avatar May 16 '24 19:05 raphinesse