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

Works abnormally on flyme10 #13

Closed
EX3124 opened this issue Jul 30, 2023 · 1 comment
Closed

Works abnormally on flyme10 #13

EX3124 opened this issue Jul 30, 2023 · 1 comment

Comments

@EX3124
Copy link
Contributor

EX3124 commented Jul 30, 2023

English(Google Translate)
In flyme10, com.flyme.systemuiex is used to take screenshots, and the code for detecting window status is also included.
Search the keyword containsSecureLayers in com.flyme.systemuiex to find the code shown in the picture, delete the selected part in the picture, and then cooperate with the module to take a normal screenshot
so use
XposedHelpers.findAndHookMethod("android.view.SurfaceControl$ScreenshotHardwareBuffer", lpparam.classLoader, "containsSecureLayers", XC_MethodReplacement.returnConstant(false));
And add com.flyme.systemuiex to the scope to take a normal screenshot

中文
在flyme10中,使用了com.flyme.systemuiex来进行截图,检测窗口状态的代码也在其中.
在com.flyme.systemuiex中搜索关键字containsSecureLayers即可找到如图所示的代码,将图中选中的部分删掉,再配合模块就能正常截图了
所以使用
XposedHelpers.findAndHookMethod("android.view.SurfaceControl$ScreenshotHardwareBuffer", lpparam.classLoader, "containsSecureLayers", XC_MethodReplacement.returnConstant(false));
并在作用域中加上com.flyme.systemuiex即可正常截图

S30731-00005207_bin mt plus

@yujincheng08
Copy link
Member

欢迎 PR

@EX3124 EX3124 closed this as completed Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants