From 438cd12185c74243233d0e93b6fabd8d7e8f7e2b Mon Sep 17 00:00:00 2001 From: Boulay Mathias Date: Sun, 13 Aug 2023 23:14:39 +0200 Subject: [PATCH] Refactor: use patch instead of fork --- clonejdk.sh | 2 +- patches/jdk8u_android.diff | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/clonejdk.sh b/clonejdk.sh index df106ce..7d740c0 100755 --- a/clonejdk.sh +++ b/clonejdk.sh @@ -7,5 +7,5 @@ git clone --depth 1 --branch ios https://github.com/PojavLauncherTeam/openjdk-mu else # Use aarch32 repo because it also has aarch64 -git clone --depth 1 https://github.com/PojavLauncherTeam/jdk8u openjdk +git clone --depth 1 https://github.com/openjdk/jdk8u openjdk fi diff --git a/patches/jdk8u_android.diff b/patches/jdk8u_android.diff index 1a16655..f21c694 100644 --- a/patches/jdk8u_android.diff +++ b/patches/jdk8u_android.diff @@ -60872,3 +60872,23 @@ index 5948302713..76755e98aa 100644 len = strlen(buf); p = strrchr(buf, '/'); + +diff --git a/jdk/src/share/classes/sun/security/util/ManifestEntryVerifier.java b/jdk/src/share/classes/sun/security/util/ManifestEntryVerifier.java +index 303c96d788..aa555cc286 100644 +--- a/jdk/src/share/classes/sun/security/util/ManifestEntryVerifier.java ++++ b/jdk/src/share/classes/sun/security/util/ManifestEntryVerifier.java +@@ -75,2 +75,14 @@ public class ManifestEntryVerifier { + ++ /** ++ * Create a new ManifestEntryVerifier object. ++ */ ++ public ManifestEntryVerifier(Manifest man) ++ { ++ createdDigests = new HashMap(11); ++ digests = new ArrayList(); ++ manifestHashes = new ArrayList(); ++ this.manifestFileName = "default_name"; ++ this.man = man; ++ } ++ + /**