<div dir="ltr">Did you use the latest soot edition?<div>Maybe you can use the latest soot edition to have a try.</div><div>Your command is right.<br><br>在 2016年9月19日星期一 UTC+8下午5:38:26,Jyoti Gajrani写道:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><p style="font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;line-height:19.5px">I have converted a apk file to jimple Intermediate representation using soot below command without any error:</p><p style="font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;line-height:19.5px"><strong>java -Xmx2g -jar soot-trunk.jar soot.Main -w -allow-phantom-refs -android-jars /home/jyoti/Android/adt-<wbr>bundle-linux-x86_64-20140702/<wbr>sdk/platforms/ -src-prec apk -f jimple -process-dir Onlytelephony.apk</strong></p><p style="font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;line-height:19.5px"><strong><br></strong></p><p style="font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;line-height:19.5px">Now I want to do reverse. I want to convert jimple files to single apk using soot. For this i am using following command:</p><p style="font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;line-height:19.5px"><strong><br></strong></p><p style="font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;line-height:19.5px"><strong>java -Xmx2g -jar soot-trunk.jar soot.Main -w -allow-phantom-refs -android-jars /home/jyoti/Android/adt-<wbr>bundle-linux-x86_64-20140702/<wbr>sdk/platforms/ -src-prec jimple -f dex -process-dir jimple_Onlytelephony/</strong></p><p style="font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;line-height:19.5px">But this command give me exceptions as follows:</p><p style="font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;line-height:19.5px">[Thread-2] ERROR heros.solver.<wbr>CountingThreadPoolExecutor - Worker thread execution failed: null java.lang.NullPointerException at soot.toolkits.graph.UnitGraph.<wbr>(UnitGraph.java:76) at soot.toolkits.graph.<wbr>ExceptionalUnitGraph.(<wbr>ExceptionalUnitGraph.java:158) at soot.jimple.toolkits.scalar.<wbr>UnreachableCodeEliminator.<wbr>internalTransform(<wbr>UnreachableCodeEliminator.<wbr>java:79) at soot.BodyTransformer.<wbr>transform(BodyTransformer.<wbr>java:51) at soot.Transform.apply(<wbr>Transform.java:105) at soot.JimpleBodyPack.<wbr>applyPhaseOptions(<wbr>JimpleBodyPack.java:61) at soot.JimpleBodyPack.<wbr>internalApply(JimpleBodyPack.<wbr>java:95) at soot.Pack.apply(Pack.java:125) at soot.jimple.<wbr>JimpleMethodSource.getBody(<wbr>JimpleMethodSource.java:49) at soot.SootMethod.<wbr>getBodyFromMethodSource(<wbr>SootMethod.java:91) at soot.SootMethod.<wbr>retrieveActiveBody(SootMethod.<wbr>java:322) at soot.PackManager$3.run(<wbr>PackManager.java:1223) at java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1145) at java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.<wbr>java:745) java.util.concurrent.<wbr>RejectedExecutionException: Task soot.PackManager$3@2e5e3fd3 rejected from heros.solver.<wbr>CountingThreadPoolExecutor@<wbr>2db04d6d[Shutting down, pool size = 3, active threads = 3, queued tasks = 0, completed tasks = 3] at java.util.concurrent.<wbr>ThreadPoolExecutor$<wbr>AbortPolicy.rejectedExecution(<wbr>ThreadPoolExecutor.java:2048) at java.util.concurrent.<wbr>ThreadPoolExecutor.reject(<wbr>ThreadPoolExecutor.java:821) at java.util.concurrent.<wbr>ThreadPoolExecutor.execute(<wbr>ThreadPoolExecutor.java:1372) at heros.solver.<wbr>CountingThreadPoolExecutor.<wbr>execute(<wbr>CountingThreadPoolExecutor.<wbr>java:51) at soot.PackManager.<wbr>retrieveAllBodies(PackManager.<wbr>java:1219) at soot.PackManager.<wbr>runPacksNormally(PackManager.<wbr>java:463) at soot.PackManager.runPacks(<wbr>PackManager.java:396) at soot.Main.run(Main.java:271) at soot.Main.main(Main.java:147)</p><p style="font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;line-height:19.5px">How can I convert Jimple to dex using soot?</p></div></blockquote></div></div>