AndroidN-ify icon indicating copy to clipboard operation
AndroidN-ify copied to clipboard

MediaTek data indicator System UI crash

Open Freenore opened this issue 9 years ago • 47 comments

E/TelephonyManager( 3986): Error calling ITelephony#getDataEnabled
E/TelephonyManager( 3986): java.lang.NullPointerException: Attempt to invoke interface method 'boolean com.android.internal.telephony.ITelephony.getDataEnabled()' on a null object reference
E/TelephonyManager( 3986):  at android.telephony.TelephonyManager.getDataEnabled(TelephonyManager.java:3595)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.policy.MobileDataController.isMobileDataEnabled(MobileDataController.java:205)
E/TelephonyManager( 3986):  at java.lang.reflect.Method.invoke(Native Method)
E/TelephonyManager( 3986):  at java.lang.reflect.Method.invoke(Method.java:372)
E/TelephonyManager( 3986):  at de.robv.android.xposed.XposedHelpers.callMethod(XposedHelpers.java:1213)
E/TelephonyManager( 3986):  at tk.wasdennnoch.androidn_ify.systemui.statusbar.StatusBarHooks$2.afterHookedMethod(StatusBarHooks.java:104)
E/TelephonyManager( 3986):  at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:348)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.policy.MobileDataController.<init>(<Xposed>)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.policy.NetworkControllerImpl.<init>(NetworkControllerImpl.java:374)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:858)
E/TelephonyManager( 3986):  at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/TelephonyManager( 3986):  at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(<Xposed>)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3139)
E/TelephonyManager( 3986):  at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/TelephonyManager( 3986):  at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(<Xposed>)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3135)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:516)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:611)
E/TelephonyManager( 3986):  at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/TelephonyManager( 3986):  at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.phone.PhoneStatusBar.start(<Xposed>)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:228)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java:49)
E/TelephonyManager( 3986):  at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)
E/TelephonyManager( 3986):  at android.os.Handler.dispatchMessage(Handler.java:106)
E/TelephonyManager( 3986):  at android.os.Looper.loop(Looper.java:189)
E/TelephonyManager( 3986):  at android.app.ActivityThread.main(ActivityThread.java:5529)
E/TelephonyManager( 3986):  at java.lang.reflect.Method.invoke(Native Method)
E/TelephonyManager( 3986):  at java.lang.reflect.Method.invoke(Method.java:372)
E/TelephonyManager( 3986):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
E/TelephonyManager( 3986):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
E/TelephonyManager( 3986):  at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
E/AndroidRuntime( 3986): FATAL EXCEPTION: main
E/AndroidRuntime( 3986): Process: com.android.systemui, PID: 3986
E/AndroidRuntime( 3986): java.lang.IllegalArgumentException: method com.android.systemui.statusbar.SignalClusterView.setMobileDataIndicators [XposedOriginal] argument 3 has type com.mediatek.systemui.ext.IconIdWrapper[], got java.lang.Integer
E/AndroidRuntime( 3986):    at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 3986):    at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.SignalClusterView.setMobileDataIndicators(<Xposed>)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.policy.NetworkControllerImpl.refreshSignalCluster(NetworkControllerImpl.java:565)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.policy.NetworkControllerImpl.addSignalCluster(NetworkControllerImpl.java:451)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:902)
E/AndroidRuntime( 3986):    at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 3986):    at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(<Xposed>)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3139)
E/AndroidRuntime( 3986):    at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 3986):    at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(<Xposed>)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3135)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:516)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:611)
E/AndroidRuntime( 3986):    at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 3986):    at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.phone.PhoneStatusBar.start(<Xposed>)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:228)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java:49)
E/AndroidRuntime( 3986):    at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)
E/AndroidRuntime( 3986):    at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime( 3986):    at android.os.Looper.loop(Looper.java:189)
E/AndroidRuntime( 3986):    at android.app.ActivityThread.main(ActivityThread.java:5529)
E/AndroidRuntime( 3986):    at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 3986):    at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 3986):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
E/AndroidRuntime( 3986):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
E/AndroidRuntime( 3986):    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)

Freenore avatar Oct 16 '16 04:10 Freenore

Please don't open an issue for every build. I see you already reported that in #1019 and #1036. Just wait for the fix.

Maxr1998 avatar Oct 22 '16 11:10 Maxr1998

Do you have a deodexed SystemUI at hand?

wasdennnoch avatar Oct 23 '16 14:10 wasdennnoch

Yeah my phone is deodexed.

Freenore avatar Oct 23 '16 14:10 Freenore

Then upload that please :P Although I may have already fixed that in my own sources.

Maxr1998 avatar Oct 23 '16 14:10 Maxr1998

@Maxr1998 I sent it lol

Freenore avatar Oct 23 '16 14:10 Freenore

Could you download the above file and sent me your Xposed (not logcat) logs afterwards?

Maxr1998 avatar Oct 23 '16 19:10 Maxr1998

Report:

The Nify_Mediatek_fix apk attached here still gave me systemui crash. Do i have to open another issue?

Takumi87 avatar Oct 24 '16 01:10 Takumi87

@Takumi87 the Nify-MT-log.apk.zip doesn't fix the issue yet, it should only provide me some logging. I need Xposed logs or available or the normal device logs, which contain Xposed logs.

Maxr1998 avatar Oct 24 '16 05:10 Maxr1998

Here's the logs. I captured from both xposed logs and catlog and i just uploaded it on drive since my internet is shit.

[logs with same error as above]

Takumi87 avatar Oct 24 '16 07:10 Takumi87

Nify_MT_test.apk.zip

Ok guys, had a little error in the previous one. Try this and send me your Xposed logs and/or logcat (from catlog app or adb).

Maxr1998 avatar Oct 24 '16 11:10 Maxr1998

Here are the logs bro. As usual i captured from both xposed logs and catlog. I read the catlog to make sure there's a tk.wassdennoch lines there.😁😂😀 i have difficulty uploading files directly to github so. https://drive.google.com/file/d/0B6reUIyJc-MRS25Yek5HY2dLVGM/view?usp=drivesdk

Takumi87 avatar Oct 24 '16 13:10 Takumi87

I think I finally found the error. Try that, and logs as above.

Nify_fix.apk.zip

Maxr1998 avatar Oct 24 '16 14:10 Maxr1998

Wow man that was fast. Cheers! Thanks. 😁😂😀 will try it tomorrow. Time to get some sleep. :)

Takumi87 avatar Oct 24 '16 15:10 Takumi87

Tested the build. Still got the systemui crash. 😭

Takumi87 avatar Oct 24 '16 17:10 Takumi87

Wtf... I accidently closed... sorry

Freenore avatar Oct 24 '16 17:10 Freenore

lol

wasdennnoch avatar Oct 24 '16 17:10 wasdennnoch

Btw, the N-ify fix apk didn't worked for me and Xposed not showing any logs. alogcat.2016-10-24-23-07-34+0530.txt

Freenore avatar Oct 24 '16 17:10 Freenore

Buuuut, it seems the error is a different one!! ^_^

E/Xposed  ( 8758): java.lang.NoSuchMethodError: com.android.systemui.statusbar.phone.NotificationPanelView#setVerticalPanelTranslation(float)#exact
E/Xposed  ( 8758):  at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:337)
E/Xposed  ( 8758):  at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:178)
E/Xposed  ( 8758):  at tk.wasdennnoch.androidn_ify.systemui.notifications.NotificationPanelHooks.hook(NotificationPanelHooks.java:163)
E/Xposed  ( 8758):  at tk.wasdennnoch.androidn_ify.XposedHook.handleLoadPackage(XposedHook.java:130)
E/Xposed  ( 8758):  at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:34)
E/Xposed  ( 8758):  at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:61)
E/Xposed  ( 8758):  at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:106)
E/Xposed  ( 8758):  at de.robv.android.xposed.XposedInit$1.beforeHookedMethod(XposedInit.java:93)
E/Xposed  ( 8758):  at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:314)
E/Xposed  ( 8758):  at android.app.ActivityThread.handleBindApplication(<Xposed>)
E/Xposed  ( 8758):  at android.app.ActivityThread.access$1500(ActivityThread.java:162)
E/Xposed  ( 8758):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
E/Xposed  ( 8758):  at android.os.Handler.dispatchMessage(Handler.java:106)
E/Xposed  ( 8758):  at android.os.Looper.loop(Looper.java:189)
E/Xposed  ( 8758):  at android.app.ActivityThread.main(ActivityThread.java:5529)
E/Xposed  ( 8758):  at java.lang.reflect.Method.invoke(Native Method)
E/Xposed  ( 8758):  at java.lang.reflect.Method.invoke(Method.java:372)
E/Xposed  ( 8758):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
E/Xposed  ( 8758):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
E/Xposed  ( 8758):  at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)

Closely monitoring this from now on.

Maxr1998 avatar Oct 24 '16 18:10 Maxr1998

That crash above should already be fixed if you are running on LP.

wasdennnoch avatar Oct 24 '16 18:10 wasdennnoch

@wasdennnoch Nope, I just pushed another fix commit :P a0a6d951280c74469f7deefa9fea55d58215b508

Maxr1998 avatar Oct 24 '16 18:10 Maxr1998

Do i need to capture another set of logs? Or it's done by someone with identical issue? :) and is this an mtk problem or issue with devices running LP? Nah, just curious. :D

Takumi87 avatar Oct 24 '16 23:10 Takumi87

No, but I'd really appreicate if you could upload your deodexed SystemUI apk. @Vality9, where did you upload it?

Maxr1998 avatar Oct 25 '16 04:10 Maxr1998

Ok. Will get on it. Will have to research how to do it tho and how to find out if mine is odexed or deodexed. I will just probably upload the apk to my drive as usual as i am not yet so familiar with dropbox.

Takumi87 avatar Oct 25 '16 05:10 Takumi87

Here bro. I am not sure if it's odexed or deodexed tho.

https://drive.google.com/file/d/0B6reUIyJc-MRYlNRS0F4VVEtaVU/view?usp=drivesdk

Takumi87 avatar Oct 25 '16 06:10 Takumi87

@Maxr1998 I uploaded it on Github? If you can't see or get any error then:

https://drive.google.com/file/d/0B_CaJq66_92SSEplcG9JMm11MjQ/view?usp=drivesdk

Freenore avatar Oct 25 '16 11:10 Freenore

@Vality9 Is that your systemui?

Takumi87 avatar Oct 25 '16 11:10 Takumi87

Oh my bad. It's logcat. Lol

Takumi87 avatar Oct 25 '16 11:10 Takumi87

How can I send my System UI? lol?

Freenore avatar Oct 25 '16 12:10 Freenore

@Vality9 Use root explorer or any favorite file manager of yours that has root access. Go to /system and look for the SystemUI.apk and just copy it to another location and zip it and upload. Either to cloud and paste the link or directly here. I just uploaded mine to Drive since i am on mobile. Mobile version of github sucks. Lol

Takumi87 avatar Oct 25 '16 12:10 Takumi87

@Takumi87 There you go. https://drive.google.com/file/d/0B_CaJq66_92SYVc0RGNiVmxDZEk/view?usp=drivesdk

Freenore avatar Oct 25 '16 12:10 Freenore

No. You should mention @Maxr1998 I'm no dev. I'm also just a tester like you. 😁😂😀

Takumi87 avatar Oct 25 '16 14:10 Takumi87

What is the password to the file??? 😕

On Mon, Oct 24, 2016, 12:48 PM Max Rumpf [email protected] wrote:

Nify_MT_test.apk.zip https://github.com/wasdennnoch/AndroidN-ify/files/547614/Nify_MT_test.apk.zip

Ok guys, had a little error in the previous one. Try this and send me your Xposed logs and/or logcat (from catlog app or adb).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wasdennnoch/AndroidN-ify/issues/1063#issuecomment-255718779, or mute the thread https://github.com/notifications/unsubscribe-auth/AVy9MORzeLFFzMXWrSY2AeujHDMsLxClks5q3JsLgaJpZM4KX4sH .

Mikeyangeleo avatar Oct 25 '16 18:10 Mikeyangeleo

Thanks for it but it doesn't work. Nevermind, I would delete Xposed(or N-ify, still not sure what causes the problem but I have Xposed just for Android N-ify) at some point because it drains my battery so fast and I can't even use the latest build to get latest features.

On Sat, Oct 22, 2016 at 6:44 PM, Max Rumpf [email protected] wrote:

@Vality9 https://github.com/Vality9 Could you try this one and report back? You need to unpack the apk from the zip first. Nify_MediaTek_fix.apk.zip https://github.com/wasdennnoch/AndroidN-ify/files/545793/Nify_MediaTek_fix.apk.zip

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wasdennnoch/AndroidN-ify/issues/1063#issuecomment-255527707, or mute the thread https://github.com/notifications/unsubscribe-auth/AVI7mJeek8XZ0xvM2EVYvKneQEoABPzFks5q2gwqgaJpZM4KX4sH .

Freenore avatar Oct 25 '16 18:10 Freenore

@Mikeyangeleo What file? My copy of my systemui isnt password protected.

Takumi87 avatar Oct 27 '16 01:10 Takumi87

What? I don't understand the question or perhaps the way you wrote it

On Thu, Oct 27, 2016, 2:08 AM Takumi87 [email protected] wrote:

@Mikeyangeleo https://github.com/Mikeyangeleo What file? My copy of my systemui isnt password protected.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/wasdennnoch/AndroidN-ify/issues/1063#issuecomment-256520142, or mute the thread https://github.com/notifications/unsubscribe-auth/AVy9MM3oM2ukDjpusKaCdc5Oh49ZhtFkks5q3_mMgaJpZM4KX4sH .

Mikeyangeleo avatar Oct 27 '16 15:10 Mikeyangeleo

You were asking what is the password to the file and i was wondering what you mean?

Takumi87 avatar Oct 28 '16 00:10 Takumi87

Soo....no fix?

Freenore avatar Oct 30 '16 05:10 Freenore

No, more like "No time" :( I'll get back to it soon enough.

Maxr1998 avatar Oct 30 '16 16:10 Maxr1998

Should I use the Android Nify version which was working for me?

Freenore avatar Nov 05 '16 07:11 Freenore

@Vality9 What version works for you? Funny, with mine only the stable build works. All the snapshots doesnt. :(

Takumi87 avatar Nov 05 '16 08:11 Takumi87

The 618 is the most latest one that works for me.

Freenore avatar Nov 05 '16 08:11 Freenore

screenshot_2016-11-10-09-39-17 Lol. I tried 618 and i didn't get fc but glitches here and there. 😁😂😂

Takumi87 avatar Nov 10 '16 08:11 Takumi87

And

screenshot_2016-11-10-09-39-17

Takumi87 avatar Nov 10 '16 08:11 Takumi87

Yeah it's a bit buggy. Sometimes I feel I should install Nougat based CyanogenMod but Im not sure if I can just flash any ROM on internet or I need one specificly made for this device.

Freenore avatar Nov 10 '16 08:11 Freenore

Roms are device specific as each device uses different socs and gpu. So you'd end up in trouble. My mtk6752m is stuck on kitkat officially but we have L roms up to 5.1.1. No taste of M or even N. 😭

Takumi87 avatar Nov 10 '16 08:11 Takumi87

Ohh, I found Unfofical CyanogenMod based on 5.1.1 so no taste of even Marshmallow lol

Freenore avatar Nov 10 '16 08:11 Freenore

Digging this up again. Hehe. 😁😂😂

Takumi87 avatar Mar 07 '17 05:03 Takumi87