Skip to content

Commit

Permalink
新增: 在引导式访问中禁用快捷窗口按钮三个点 (#529)
Browse files Browse the repository at this point in the history
* 避免进入引导式访问时systemui崩溃

* 移除快捷窗口三个点

* 使方法安全

---------

Co-authored-by: nxibjz <[email protected]>
Co-authored-by: HChen <[email protected]>
  • Loading branch information
3 people authored Apr 9, 2024
1 parent 6ec4571 commit 498847b
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,18 @@ protected void before(MethodHookParam param) {
}
);

safeFindAndHookMethod("com.android.wm.shell.miuimultiwinswitch.miuiwindowdecor.MiuiBaseWindowDecoration",
"shouldHideCaption",
new MethodHook() {
@Override
protected void after(MethodHookParam param) {
Context context = (Context) XposedHelpers.getObjectField(param.thisObject, "mContext");
isLock = getLockApp(context) != -1;
param.setResult(isLock);
}
}
);

safeFindAndHookMethod("com.android.systemui.shared.system.ActivityManagerWrapper",
"isLockTaskKioskModeActive", new MethodHook() {
@Override
Expand Down

0 comments on commit 498847b

Please sign in to comment.