前言
jar
包转成dex
文件,frida
可以直接加载,但是这样会缺少依赖包
就需要自己重新使用maven
打包,顺便把依赖包一起打进jar
包
maven 配置
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
在 pom.xml
文件的 build.plugins
添加以上配置
然后重新打包即可, 在 target
目录会有个 jar-with-dependencies.jar
的文件,这里面就是依赖包