Commit 61abe5b9 authored by tonymanou's avatar tonymanou Committed by topjohnwu

Do not close the whole application in case of error

parent a5b573ea
......@@ -172,8 +172,7 @@ public class ZipUtils {
inputJar = new JarMap(new JarInputStream(inputStream));
if (signWholeFile) {
if (!"RSA".equalsIgnoreCase(privateKey.getAlgorithm())) {
System.err.println("Cannot sign OTA packages with non-RSA keys");
System.exit(1);
throw new IOException("Cannot sign OTA packages with non-RSA keys");
}
signWholeFile(inputJar, context.getAssets().open(PUBLIC_KEY_NAME),
publicKey, privateKey, outputStream);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment