From 4f206fd9186f8a717e59e311f63b7802637c6cc5 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 6 Jul 2019 23:04:24 -0700 Subject: [PATCH] Fix compile errors --- signing/src/main/java/com/topjohnwu/signing/SignBoot.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/signing/src/main/java/com/topjohnwu/signing/SignBoot.java b/signing/src/main/java/com/topjohnwu/signing/SignBoot.java index c500c7a2a..ce1494ff5 100644 --- a/signing/src/main/java/com/topjohnwu/signing/SignBoot.java +++ b/signing/src/main/java/com/topjohnwu/signing/SignBoot.java @@ -30,6 +30,9 @@ import java.util.Arrays; public class SignBoot { + private static final int BOOT_IMAGE_HEADER_V1_RECOVERY_DTBO_SIZE_OFFSET = 1632; + private static final int BOOT_IMAGE_HEADER_V2_DTB_SIZE_OFFSET = 1648; + private static class PushBackRWStream extends FilterInputStream { private OutputStream out; private int pos = 0; @@ -199,8 +202,6 @@ public class SignBoot { private DEROctetString signature; private PublicKey publicKey; private static final int FORMAT_VERSION = 1; - private static final int BOOT_IMAGE_HEADER_V1_RECOVERY_DTBO_SIZE_OFFSET = 1632; - private static final int BOOT_IMAGE_HEADER_V2_DTB_SIZE_OFFSET = 1648; /** * Initializes the object for signing an image file