>我已经将apk文件转换为jimple 使用以下命令的烟灰表示中间表示:
java -Xmx2g -jar soot-trunk.jar soot.Main -w -allow-phantom-refs -android-jars /home/jyoti/Android/adt-bundle-linux-x86_64-20140702/sdk/platforms/ -src-prec apk -f jimple -process-dir Onlytelephony.apk
现在我想做逆转。我想使用烟灰将 jimple 文件转换为单个 apk。为此,我使用以下命令:
java -Xmx2g -jar soot-trunk.jar soot.Main -w -allow-phantom-refs -android-jars /home/jyoti/Android/adt-bundle-linux-x86_64-20140702/sdk/platforms/ -src-prec jimple -f dex -process-dir jimple_Onlytelephony/
但是这个命令给了我例外,如下所示:
[Thread-2] ERROR heros.solver.CountingThreadPoolExecutor - Worker
thread execution failed: null java.lang.NullPointerException at
soot.toolkits.graph.UnitGraph.<init (UnitGraph.java:76) at
soot.toolkits.graph.ExceptionalUnitGraph.<init (ExceptionalUnitGraph.java:158)
at
soot.jimple.toolkits.scalar.UnreachableCodeEliminator.internalTransform(UnreachableCodeEliminator.java:79)
at soot.BodyTransformer.transform(BodyTransformer.java:51) at
soot.Transform.apply(Transform.java:105) at
soot.JimpleBodyPack.applyPhaseOptions(JimpleBodyPack.java:61) at
soot.JimpleBodyPack.internalApply(JimpleBodyPack.java:95) at
soot.Pack.apply(Pack.java:125) at
soot.jimple.JimpleMethodSource.getBody(JimpleMethodSource.java:49) at
soot.SootMethod.getBodyFromMethodSource(SootMethod.java:91) at
soot.SootMethod.retrieveActiveBody(SootMethod.java:322) at
soot.PackManager$3.run(PackManager.java:1223) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
java.util.concurrent.RejectedExecutionException: Task
soot.PackManager$3@2e5e3fd3 rejected from
heros.solver.CountingThreadPoolExecutor@2db04d6d[Shutting down, pool
size = 3, active threads = 3, queued tasks = 0, completed tasks = 3]
at
java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048)
at
java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)
at
java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
at
heros.solver.CountingThreadPoolExecutor.execute(CountingThreadPoolExecutor.java:51)
at soot.PackManager.retrieveAllBodies(PackManager.java:1219) at
soot.PackManager.runPacksNormally(PackManager.java:463) at
soot.PackManager.runPacks(PackManager.java:396) at
soot.Main.run(Main.java:271) at soot.Main.main(Main.java:147)
如何使用烟灰将金普尔转换为 dex?
你能在烟灰邮件列表中问这个问题吗?无论如何,这看起来很奇怪。我什至不明白为什么在这种情况下烟灰指的是英雄。不应该。