mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 00:07:38 +00:00
Do not close the whole application in case of error
This commit is contained in:
parent
a5b573eaaa
commit
61abe5b948
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user