wasdennnoch / AndroidN-ify

[Discontinued] An Xposed module to use features introduced in Android N on your LP+ Device
265 stars 93 forks source link

MediaTek data indicator System UI crash #1063

Open Freenore opened 7 years ago

Freenore commented 7 years ago
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)
Maxr1998 commented 7 years ago

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

wasdennnoch commented 7 years ago

Do you have a deodexed SystemUI at hand?

Freenore commented 7 years ago

Yeah my phone is deodexed.

Maxr1998 commented 7 years ago

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

Freenore commented 7 years ago

@Maxr1998 I sent it lol

Maxr1998 commented 7 years ago

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

Takumi87 commented 7 years ago

Report:

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

Maxr1998 commented 7 years ago

@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.

Takumi87 commented 7 years ago

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]

Maxr1998 commented 7 years ago

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).

Takumi87 commented 7 years ago

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

Maxr1998 commented 7 years ago

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

Nify_fix.apk.zip

Takumi87 commented 7 years ago

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

Takumi87 commented 7 years ago

Tested the build. Still got the systemui crash. 😭

Freenore commented 7 years ago

Wtf... I accidently closed... sorry

wasdennnoch commented 7 years ago

lol

Freenore commented 7 years ago

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

Maxr1998 commented 7 years ago

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.

wasdennnoch commented 7 years ago

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

Maxr1998 commented 7 years ago

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

Takumi87 commented 7 years ago

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

Maxr1998 commented 7 years ago

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

Takumi87 commented 7 years ago

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 commented 7 years ago

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

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

Freenore commented 7 years ago

@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

Takumi87 commented 7 years ago

@Vality9 Is that your systemui?

Takumi87 commented 7 years ago

Oh my bad. It's logcat. Lol

Freenore commented 7 years ago

How can I send my System UI? lol?

Takumi87 commented 7 years ago

@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

Freenore commented 7 years ago

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

Takumi87 commented 7 years ago

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

Mikeyangeleo commented 7 years ago

What is the password to the file??? 😕

On Mon, Oct 24, 2016, 12:48 PM Max Rumpf notifications@github.com 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 .

Freenore commented 7 years ago

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 notifications@github.com 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 .

Takumi87 commented 7 years ago

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

Mikeyangeleo commented 7 years ago

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

On Thu, Oct 27, 2016, 2:08 AM Takumi87 notifications@github.com 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 .

Takumi87 commented 7 years ago

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

Freenore commented 7 years ago

Soo....no fix?

Maxr1998 commented 7 years ago

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

Freenore commented 7 years ago

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

Takumi87 commented 7 years ago

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

Freenore commented 7 years ago

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

Takumi87 commented 7 years ago

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

Takumi87 commented 7 years ago

And

screenshot_2016-11-10-09-39-17

Freenore commented 7 years ago

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.

Takumi87 commented 7 years ago

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. 😭

Freenore commented 7 years ago

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

Takumi87 commented 7 years ago

Digging this up again. Hehe. 😁😂😂