Skip to content

Commit 83d6254

Browse files
authored
Create FakeNonDefaultIcon.java
1 parent 71c038c commit 83d6254

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* This file is part of HyperCeiler.
3+
4+
* HyperCeiler is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Affero General Public License as
6+
* published by the Free Software Foundation, either version 3 of the
7+
* License.
8+
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Affero General Public License for more details.
13+
14+
* You should have received a copy of the GNU Affero General Public License
15+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+
* Copyright (C) 2023-2024 HyperCeiler Contributions
18+
*/
19+
package com.sevtinge.hyperceiler.module.hook.home.title;
20+
21+
import com.sevtinge.hyperceiler.module.base.BaseHook;
22+
23+
public class FakeNonDefaultIcon extends BaseHook {
24+
@Override
25+
public void init() {
26+
findAndHookMethod("com.miui.home.launcher.DeviceConfig", "isDefaultIcon", new MethodHook() {
27+
@Override
28+
protected void before(MethodHookParam param) throws Throwable {
29+
param.setResult(false);
30+
}
31+
});
32+
}
33+
}

0 commit comments

Comments
 (0)