-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
放弃kotlin,改用java,
- Loading branch information
Showing
3 changed files
with
26 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package cc.aoeiuv020.xposed.hook; | ||
|
||
import java.util.Collections; | ||
|
||
import de.robv.android.xposed.IXposedHookZygoteInit; | ||
import de.robv.android.xposed.XC_MethodReplacement; | ||
import de.robv.android.xposed.XposedBridge; | ||
import de.robv.android.xposed.XposedHelpers; | ||
|
||
/** | ||
* Created by AoEiuV020 on 2022.01.06-03:25:32. | ||
*/ | ||
@SuppressWarnings("RedundantThrows") | ||
public class MainHook implements IXposedHookZygoteInit { | ||
@Override | ||
public void initZygote(StartupParam startupParam) throws Throwable { | ||
XposedBridge.log("initZygote: " + startupParam.modulePath); | ||
XposedHelpers.findAndHookMethod( | ||
"android.view.accessibility.AccessibilityManager", | ||
null, | ||
"getEnabledAccessibilityServiceList", | ||
int.class, | ||
XC_MethodReplacement.returnConstant(Collections.emptyList()) | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.