Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/jre_modules_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def test_tls_and_ec_crypto_are_in_the_jre(self):
# Android's EC KeyPairGenerator, KeyAgreement and Signature algorithms need it as well.
self.assertIn("jdk.crypto.ec", modules())

def test_extended_charsets_are_in_the_jre(self):
# Android has GB2312, Big5, Shift_JIS ... built in; SKYBOX's startup asks for GB2312 by name.
self.assertIn("jdk.charsets", modules())


if __name__ == "__main__":
sys.exit(unittest.main())
5 changes: 4 additions & 1 deletion tools/dex/make_jre.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
# JSSE offers no ECDHE group, no ECDHE suite and no ECDSA signature, so Google, Firebase and most
# CDN servers answer every HTTPS ClientHello with handshake_failure (issue 168). Dev runs use the
# full JDK, so only the shipped JRE showed it.
# jdk.charsets: the extended charsets (GB2312, GBK, Big5, Shift_JIS, EUC-KR, ...). Android always has
# them, and apps ask for them by name: SKYBOX's native startup calls String.getBytes("GB2312") and
# died with UnsupportedEncodingException on the base-only JRE.
# No java.sql or java.net.http.
MODULES = "java.base,java.logging,java.xml,java.desktop,jdk.crypto.ec,jdk.unsupported"
MODULES = "java.base,java.logging,java.xml,java.desktop,jdk.charsets,jdk.crypto.ec,jdk.unsupported"


def main():
Expand Down
Loading