24 lines
628 B
Java
24 lines
628 B
Java
import java.io.File;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
class Launcher {
|
|
public static void main(String[] args) {
|
|
System.out.println("why android-sdk, why");
|
|
if (args.length > 0) {
|
|
File in = new File(args[0]);
|
|
File out = new File(args[1]);
|
|
align(in, out);
|
|
} else {
|
|
System.out.println("Usage: java -jar ZipAlign.jar <in.apk> <out.apk>");
|
|
}
|
|
}
|
|
private static void align(File apkPath, File output) {
|
|
try {
|
|
new ZipAlign.ZipAligner(apkPath, output).run();
|
|
} catch (Exception exception) {
|
|
throw new RuntimeException(exception);
|
|
}
|
|
}
|
|
}
|