d.g.c.o.g.a
/* renamed from: d.g.c.o.g.a */ public final class C2484a extends LoopBasedJavaScriptEngine { /* renamed from: a */ public final File f4084a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public C2484a(Context context, File file, Map<String, ? extends Object> map) { super(context, map); C2943j.m3908e(context, "context"); C2943j.m3908e(file, "projectDir"); C2943j.m3908e(map, "engineArgs"); C2943j.m3908e(context, "context"); C2943j.m3908e(map, "engineArgs"); this.f4084a = file; } }
有file, map
hook看看是啥
com.stardust.autojs.inrt.App@a475030 /data/user/0/com.example.script1631687221234/files/project "<instance: java.util.Map, $className: h.m.g>" undefined ----------init 堆栈 开始---------- Backtrace: d.g.c.o.g.a.<init>(Native Method) d.g.c.o.h.d$a.createEngine(:5) com.stardust.autojs.engine.ScriptEngineManager.createEngine() com.stardust.autojs.engine.ScriptEngineManager.createEngineOfSource() com.stardust.autojs.engine.ScriptEngineManager.createEngineOfSourceOrThrow() com.stardust.autojs.execution.RunnableScriptExecution.execute() com.stardust.autojs.execution.RunnableScriptExecution.run() java.lang.Thread.run(Thread.java:761) ----------init 堆栈 结束----------
没啥重要的东西
org.mozilla.javascript.CompileContext
package org.mozilla.javascript; import java.io.File; import java.io.IOException; import p015d.p019b.p022b.p046h.C1542f; import p015d.p019b.p047c.p048a.C1556a; import p186h.p195q.p197c.C2939f; import p186h.p195q.p197c.C2943j; import p186h.p203v.C2998k; public final class CompileContext extends Context { public static final Companion Companion = new Companion(null); public static final class Companion { private Companion() { } public /* synthetic */ Companion(C2939f fVar) { this(); } private final String generateClassName(String str) { return str.length() == 0 ? "" : C1556a.m2202w("org.autojs.autojspro.gen._", C1542f.m2035L0(str)); } private final String generateSourceName(File file, File file2) { try { String canonicalPath = file.getCanonicalPath(); String canonicalPath2 = file2.getCanonicalPath(); C2943j.m3907d(canonicalPath2, "srcPath"); C2943j.m3907d(canonicalPath, "projectPath"); if (!C2998k.m3935h(canonicalPath2, canonicalPath, false, 2)) { return ""; } String substring = canonicalPath2.substring(canonicalPath.length() + 1); C2943j.m3907d(substring, "(this as java.lang.String).substring(startIndex)"); return substring; } catch (IOException e) { e.printStackTrace(); return ""; } } public final String generateClassName(File file, File file2) { C2943j.m3908e(file, "projectDir"); C2943j.m3908e(file2, "srcFile"); return generateClassName(generateSourceName(file, file2)); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public CompileContext(ContextFactory contextFactory) { super(contextFactory); C2943j.m3908e(contextFactory, "factory"); } }
hook方法generateSourceName
/data/user/0/com.example.script1631687221234/files/project /data/user/0/com.example.script1631687221234/files/project/main.js main.js ----------generateSourceName 堆栈 开始---------- Backtrace: org.mozilla.javascript.CompileContext$Companion.generateSourceName(Native Method) org.mozilla.javascript.CompileContext$Companion.generateClassName() d.g.c.o.g.a.doExecution(:2) com.stardust.autojs.engine.JavaScriptEngine.execute() com.stardust.autojs.engine.LoopBasedJavaScriptEngine.access$001() d.g.c.n.c.run(:2) android.os.Handler.handleCallback(Handler.java:751) android.os.Handler.dispatchMessage(Handler.java:95) android.os.Looper.loop(Looper.java:154) com.stardust.autojs.engine.LoopBasedJavaScriptEngine.execute() com.stardust.autojs.engine.LoopBasedJavaScriptEngine.execute() com.stardust.autojs.execution.LoopedBasedJavaScriptExecution.doExecution() com.stardust.autojs.execution.RunnableScriptExecution.execute() com.stardust.autojs.execution.RunnableScriptExecution.execute() com.stardust.autojs.execution.RunnableScriptExecution.run() java.lang.Thread.run(Thread.java:761) ----------generateSourceName 堆栈 结束----------
未完待续