Skip to content

Commit afbec81

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 66d83d4 + cb0d33a commit afbec81

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed
2.25 MB
Binary file not shown.
2.05 MB
Binary file not shown.

Android/app/src/main/java/cn/xjiangwei/RobotHelper/GamePackage/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class Main {
3232
*/
3333
public void start() {
3434
sleep(5000); //点击开始后等待5秒后再执行,因为状态栏收起有动画时间,建议保留这行代码
35-
35+
MLog.setDebug(true);
3636
//Robot.setExecType(Robot.ExecTypeXposed); //使用xposed权限执行模拟操作,建议优先使用此方式
3737
//Robot.setExecType(Robot.ExecTypeAccessibillty); //使用安卓无障碍接口执行模拟操作
3838
//Robot.setExecType(Robot.ExecTypeROOT) //使用root权限执行模拟操作(实验阶段,仅在oneplus 7pro测试过,欢迎提bug)

Android/app/src/main/java/cn/xjiangwei/RobotHelper/Tools/InputImp/RootInput.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,7 @@ public static RootInput getInstance() {
878878
// 将sendevent移动到可执行位置
879879
private void initBinFile() {
880880
File tmp = new File(MainApplication.getInstance().getCacheDir(), "sendevent");
881+
// todo 这里可以自动识别cpu架构,然后自动切换
881882
FileUtils.copyAsset(MainApplication.getInstance(), "sendevent/arm64/sendevent", tmp.getAbsolutePath());
882883
ShellUtils.execCommand("chmod 777 " + tmp.getAbsolutePath(), true);
883884
sendeventPath = tmp.getAbsolutePath();

Android/app/src/main/java/cn/xjiangwei/RobotHelper/Tools/MLog.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111

1212
public class MLog {
1313

14-
private static final boolean debug = false;
14+
public static void setDebug(boolean debug) {
15+
MLog.debug = debug;
16+
}
17+
18+
private static boolean debug = false;
1519

1620
private static String Tag = "RobotHelper";
1721

0 commit comments

Comments
 (0)