diff --git a/README.md b/README.md index aeadbc1..26009f4 100644 --- a/README.md +++ b/README.md @@ -17,21 +17,13 @@ make it possible to run android dex file in original Java Virtual Machine. 3. use the jre you modified(**or use jdk in [appdbg-JDK](https://github.com/asmjmp0/appdbg-JDK)**) -4. **exclude temp dir at project root dir.(if it exist)**
-![](assets/idea_highlight_error.png) - - -5. change idea settings +4. change idea settings - set gradle jdk version with the patched jdk ![](assets/gradle0.png) - set gradle java home with the patched jdk in [gradle.properties](gradle.properties) ![](assets/gradle1.png) -6. **io redirect feature powered by java agent [agentJar](agent/build.gradle)** - -7. build test apk by [test-app sub project](test-app) - -8. run test suites in [testSuites](core/src/test/java/suites) +5. run test suites in [testSuites](core/src/test/java/suites) ![](assets/1.png) diff --git a/core/build.gradle b/core/build.gradle index a4fd223..b0d6056 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -25,7 +25,9 @@ repositories { } test{ - if (file("agent/$agent_jar_name").exists() && file("agent/$bootstrap_jar_name").exists()) jvmArgs("-javaagent:agent/$agent_jar_name") + if (file("agent/$agent_jar_name").exists() && file("agent/$bootstrap_jar_name").exists()){ + jvmArgs("-Xverify:none","-javaagent:agent/$agent_jar_name") + } else System.err.println("core/agent/$agent_jar_name or core/agent/$bootstrap_jar_name not exists, please run task [agentJar] in agent/build.gradle file first.") useJUnitPlatform() } @@ -47,7 +49,7 @@ dependencies { implementation 'net.dongliu:apk-parser:2.6.10' compileOnly files('../libs/'+android_lib_name) - testImplementation('org.junit.jupiter:junit-jupiter:5.8.2') + testImplementation('org.junit.jupiter:junit-jupiter:5.9.2') testCompileOnly fileTree(dir:'../libs/tempLibs',includes:['*jar']) testCompileOnly files('../libs/'+android_lib_name)