File tree Expand file tree Collapse file tree
app/src/main/java/com/sevtinge/hyperceiler/module/hook/home/title Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments