Skip to content

Commit d16f0bc

Browse files
committed
enable APK decoding
1 parent 9a2ca62 commit d16f0bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/edu/uniandes/tsdl/mutapk/helper/APKToolWrapper.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ public static String openAPK(String path, String extraPath) throws IOException,
1414
// Creates folder for decoded app
1515
// System.out.println(decodedPath);
1616
File tempFolder = new File(decodedPath+File.separator+"temp");
17-
// if(tempFolder.exists()) {
18-
// tempFolder.delete();
19-
// }
20-
// tempFolder.mkdirs();
17+
if(tempFolder.exists()) {
18+
tempFolder.delete();
19+
}
20+
tempFolder.mkdirs();
2121
System.out.println("> Processing your APK... ");
22-
// Process ps = Runtime.getRuntime().exec(new String[]{"java","-jar",Paths.get(decodedPath,extraPath,"apktool.jar").toAbsolutePath().toString(),"d",Paths.get(decodedPath,path).toAbsolutePath().toString(),"-o",Paths.get(decodedPath,"temp").toAbsolutePath().toString(),"-f"});
23-
// ps.waitFor();
22+
Process ps = Runtime.getRuntime().exec(new String[]{"java","-jar",Paths.get(decodedPath,extraPath,"apktool.jar").toAbsolutePath().toString(),"d",Paths.get(decodedPath,path).toAbsolutePath().toString(),"-o",Paths.get(decodedPath,"temp").toAbsolutePath().toString(),"-f"});
23+
ps.waitFor();
2424
System.out.println("> Wow... that was an amazing APK to proccess!!! :D");
2525
System.out.println("");
2626
return tempFolder.getAbsolutePath();

0 commit comments

Comments
 (0)