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));
|
inputJar = new JarMap(new JarInputStream(inputStream));
|
||||||
if (signWholeFile) {
|
if (signWholeFile) {
|
||||||
if (!"RSA".equalsIgnoreCase(privateKey.getAlgorithm())) {
|
if (!"RSA".equalsIgnoreCase(privateKey.getAlgorithm())) {
|
||||||
System.err.println("Cannot sign OTA packages with non-RSA keys");
|
throw new IOException("Cannot sign OTA packages with non-RSA keys");
|
||||||
System.exit(1);
|
|
||||||
}
|
}
|
||||||
signWholeFile(inputJar, context.getAssets().open(PUBLIC_KEY_NAME),
|
signWholeFile(inputJar, context.getAssets().open(PUBLIC_KEY_NAME),
|
||||||
publicKey, privateKey, outputStream);
|
publicKey, privateKey, outputStream);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user