This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 推送安全模式测试 * test * 是船新的安全模式! * 更改计数 * Update MainActivity.java * 新增 系统界面-锁屏-允许使用三方应用锁屏时使用人脸及指纹识别 * Update AllowThirdLockScreenUseFace.java * Update SystemUI.java * Update AllowThirdLockScreenUseFace.java * 同步 * test * 同步 * test * Update MultiActionSettings.java * 优化AlertDialog布局 * 安全模式线同步上游 * 更新Shell执行 * 同步上游 * 完善安全模式核心逻辑 * 完善安全模式核心逻辑 * update theme * 完善安全模式 * 同步上游 * 更新检查的作用域 --------- Co-authored-by: 绀漓丨Sevtinge <[email protected]> Co-authored-by: MoralNorm <[email protected]>
- Loading branch information
1 parent
898ecd6
commit 8ec6705
Showing
18 changed files
with
896 additions
and
47 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
2 changes: 2 additions & 0 deletions
2
app/src/main/java/com/sevtinge/hyperceiler/module/app/Demo.java
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package com.sevtinge.hyperceiler.module.app; | ||
|
||
import com.sevtinge.hyperceiler.module.base.BaseModule; | ||
import com.sevtinge.hyperceiler.module.hook.demo.CrashDemo; | ||
import com.sevtinge.hyperceiler.module.hook.demo.ToastTest; | ||
|
||
public class Demo extends BaseModule { | ||
@Override | ||
public void handleLoadPackage() { | ||
initHook(new ToastTest(), true); | ||
initHook(new CrashDemo(), true); | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
app/src/main/java/com/sevtinge/hyperceiler/module/hook/demo/CrashDemo.java
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,21 @@ | ||
package com.sevtinge.hyperceiler.module.hook.demo; | ||
|
||
import com.sevtinge.hyperceiler.module.base.BaseHook; | ||
|
||
import de.robv.android.xposed.XposedHelpers; | ||
|
||
public class CrashDemo extends BaseHook { | ||
@Override | ||
public void init() throws NoSuchMethodException { | ||
XposedHelpers.findAndHookMethod("com.hchen.demo.MainActivity", lpparam.classLoader, | ||
"crash", int.class, new MethodHook() { | ||
@Override | ||
protected void before(MethodHookParam param) throws Throwable { | ||
int o = (int) param.args[0]; | ||
param.args[0] = 0; | ||
logE(TAG, "int: " + o); | ||
} | ||
} | ||
); | ||
} | ||
} |
Oops, something went wrong.