Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[问题与 BUG 反馈] Android 11 版本的 ColorOS 适配 #15

Closed
luckyzyx opened this issue Apr 4, 2022 · 12 comments
Closed

[问题与 BUG 反馈] Android 11 版本的 ColorOS 适配 #15

luckyzyx opened this issue Apr 4, 2022 · 12 comments
Assignees
Labels
bug Something isn't working fixed The bug was fixed

Comments

@luckyzyx
Copy link

luckyzyx commented Apr 4, 2022

系统版本(必填)

Oneplus 9rt A12

系统类型(请保留一个)

  • ColorOS12

Android 版本(必填)

Android 11
模块版本(必填)

1.52

使用的 Xposed 框架名称与框架版本(必填)

Lsp 1.8.0 6482 zygisk

问题的具体描述

前两天系统更新了,现在才发现lsp log,系统界面com.oplusos.systemui.statusbar.phone.OplusNotificationIconAreaController应该换成了com.android.systemui.statusbar.phone.NotificationIconAreaController,我找到了updateIconsForLayout方法

提供模块问题 Log 或必要 Log

展开查看

java.lang.IllegalStateException: VariousClass match failed of those ["com.oplusos.systemui.statusbar.phone.OplusNotificationIconAreaController","com.coloros.systemui.statusbar.phone.ColorosNotificationIconAreaController"]
at a3.b.a(P:7)
at i3.b.k(P:1)
at i3.b.m(P:1)
at p1.d.r(P:8)
at f3.a.q(P:2)
at i3.b.p(P:1)
at i3.b.o(P:1)
at o1.a$a.c(P:11)
at o1.a$a.b(P:1)
at z2.a.g(P:11)
at p3.a.b(P:1)
at com.fankes.coloros.notify.hook.HookEntry_YukiHookXposedInit.handleLoadPackage(P:24)
at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(Unknown Source:2)
at de.robv.android.xposed.callbacks.XC_LoadPackage.call(Unknown Source:6)
at de.robv.android.xposed.callbacks.XCallback.callAll(Unknown Source:26)
at H.afterHookedMethod(Unknown Source:104)
at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:132)
at LSPHooker_.getClassLoader(Unknown Source:8)
at android.app.LoadedApk.getResources(LoadedApk.java:1262)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2776)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2768)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7128)
at java.lang.reflect.Method.invoke(Native Method)
at org.lsposed.lspd.nativebridge.HookBridge.invokeOriginalMethod(Native Method)
at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:103)
at LSPHooker_.handleBindApplication(Unknown Source:11)
at android.app.ActivityThread.access$1600(ActivityThread.java:314)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2176)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:269)
at android.app.ActivityThread.main(ActivityThread.java:8301)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:992)

@luckyzyx luckyzyx added the bug Something isn't working label Apr 4, 2022
@luckyzyx luckyzyx changed the title [问题与 BUG 反馈] *简要描述问题原因* [问题与 BUG 反馈] NotificationIconAreaController类名更改 Apr 4, 2022
@luckyzyx
Copy link
Author

luckyzyx commented Apr 4, 2022

com.oplusos.systemui.statusbar.phone.OplusNotificationIconAreaController
-->
com.android.systemui.statusbar.phone.NotificationIconAreaController
updateIconsForLayout

@fankes
Copy link
Owner

fankes commented Apr 4, 2022

前面那个方法是原生的,后面的是coloros自己实现的,之前的类不生效,不知道做了啥手脚,于是hook后面的,综上,没必要改

@fankes fankes closed this as completed Apr 4, 2022
@fankes fankes added the duplicate This issue or pull request already exists label Apr 4, 2022
@fankes
Copy link
Owner

fankes commented Apr 4, 2022

另外,这个是旧版本的 bug,预计今晚修复完成

@luckyzyx
Copy link
Author

luckyzyx commented Apr 4, 2022

抱歉,我应该找错类了,233,我这边有两个类
com.android.systemui.statusbar.phone.NotificationIconAreaController
com.oplusos.systemui.statusbar.policy.OplusNotificationIconAreaController
下面这个应该才是,哈哈

@fankes fankes reopened this Apr 4, 2022
@fankes
Copy link
Owner

fankes commented Apr 4, 2022

不是 com.oplusos.systemui.statusbar.policy.OplusNotificationIconAreaController
com.oplusos.systemui.statusbar.phone.OplusNotificationIconAreaController

@fankes
Copy link
Owner

fankes commented Apr 4, 2022

你把你的 SystemUI.apk 丢上来看看?

@fankes fankes added wontfix This will not be worked on and removed duplicate This issue or pull request already exists labels Apr 4, 2022
@fankes fankes changed the title [问题与 BUG 反馈] NotificationIconAreaController类名更改 [问题与 BUG 反馈] Android 11 版本的 ColorOS 适配 Apr 4, 2022
@luckyzyx
Copy link
Author

luckyzyx commented Apr 4, 2022

我看了下旧版的是phone,我更新系统后搜到的确实是policy
蓝奏云链接

@fankes
Copy link
Owner

fankes commented Apr 4, 2022

我看了下旧版的是phone,我更新系统后搜到的确实是policy 蓝奏云链接

收到,等我看看

@fankes
Copy link
Owner

fankes commented Apr 4, 2022

抱歉,我应该找错类了,233,我这边有两个类 com.android.systemui.statusbar.phone.NotificationIconAreaController com.oplusos.systemui.statusbar.policy.OplusNotificationIconAreaController 下面这个应该才是,哈哈

你是对的,我已经收集了三个类名了,不是改类名就完事了,里面的内容也不一样,等我修吧

@luckyzyx
Copy link
Author

luckyzyx commented Apr 4, 2022

抱歉,我应该找错类了,233,我这边有两个类 com.android.systemui.statusbar.phone.NotificationIconAreaController com.oplusos.systemui.statusbar.policy.OplusNotificationIconAreaController 下面这个应该才是,哈哈

你是对的,我已经收集了三个类名了,不是改类名就完事了,里面的内容也不一样,等我修吧

收到,晚安

@fankes
Copy link
Owner

fankes commented Apr 4, 2022

抱歉,我应该找错类了,233,我这边有两个类 com.android.systemui.statusbar.phone.NotificationIconAreaController com.oplusos.systemui.statusbar.policy.OplusNotificationIconAreaController 下面这个应该才是,哈哈

你是对的,我已经收集了三个类名了,不是改类名就完事了,里面的内容也不一样,等我修吧

收到,晚安

啊这,晚安

@fankes
Copy link
Owner

fankes commented Apr 4, 2022

新版本已发,问题已修复

@fankes fankes closed this as completed Apr 4, 2022
@fankes fankes added fixed The bug was fixed and removed wontfix This will not be worked on labels Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed The bug was fixed
Projects
None yet
Development

No branches or pull requests

2 participants