I'm finding a way to use Runtime.exec() in Linux. I have an aapt Linux version and trying to get information of apk file with aapt. I tried:
rt.exec(new String[] {"bash", "-c","." + new File(".").getCanonicalPath() + "dist/lib/aapt d badging \"" + files + "\""});
but it seems wrong. It doesn't return result. Normal command in Terminal that worked:
$ ./home/codeblue/NetbeansProjects/APKTools/dist/lib/aapt d badging "Zing Mp3.apk"
Anyone please helps :(