mirror of
https://github.com/TonyJiangWJ/Auto.js.git
synced 2026-06-21 21:01:43 +08:00
feat(autojs): loadJar(), loadDex() supports relative path
This commit is contained in:
parent
c3f5c109be
commit
c0094e4445
@ -325,6 +325,7 @@ public class ScriptRuntime {
|
||||
}
|
||||
|
||||
public void loadJar(String path) {
|
||||
path = files.path(path);
|
||||
try {
|
||||
((AndroidClassLoader) ContextFactory.getGlobal().getApplicationClassLoader()).loadJar(new File(path));
|
||||
} catch (IOException e) {
|
||||
@ -333,6 +334,7 @@ public class ScriptRuntime {
|
||||
}
|
||||
|
||||
public void loadDex(String path){
|
||||
path = files.path(path);
|
||||
try {
|
||||
((AndroidClassLoader) ContextFactory.getGlobal().getApplicationClassLoader()).loadDex(new File(path));
|
||||
} catch (IOException e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user