from subprocess import Popen,DEVNULL from tempfile import gettempdir from tkinter.filedialog import askopenfilename Popen(rf'java\bin\java.exe -Xms512m -Xmx2048m -cp lib/antlr-3.5.2.jar;lib/antlr-runtime-3.5.2.jar;lib/antlr4-4.9.3.jar;lib/antlr4-runtime-4.9.3.jar;lib/asm-9.5.jar;lib/asm-analysis-9.5.jar;lib/asm-commons-9.5.jar;lib/asm-tree-9.5.jar;lib/asm-util-9.5.jar;lib/d2j-base-cmd-v2.4.jar;lib/d2j-jasmin-v2.4.jar;lib/d2j-smali-v2.4.jar;lib/dex-ir-v2.4.jar;lib/dex-reader-api-v2.4.jar;lib/dex-reader-v2.4.jar;lib/dex-tools-v2.4.jar;lib/dex-translator-v2.4.jar;lib/dex-writer-v2.4.jar;lib/dx-30.0.2.jar;lib/icu4j-69.1.jar;lib/javax.json-1.0.4.jar;lib/org.abego.treelayout.core-1.0.3.jar;lib/ST4-4.3.1.jar com.googlecode.dex2jar.tools.Dex2jarCmd -o {gettempdir()}/apk_decompiler/jarfile.jar -f {askopenfilename(filetypes=[("APK Files", "*.apk")])}'.split(" "), shell=True, stdout=DEVNULL, stderr=DEVNULL).communicate() Popen(rf"java\bin\java.exe -jar lib/jd-gui.jar {gettempdir()}/apk_decompiler/jarfile.jar".split(" "), shell=True, stdout=DEVNULL, stderr=DEVNULL).communicate()