diff --git a/README.md b/README.md index 130789865..f25b94fc8 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ * Allow loading Glide typing library * not included in the app, as there is no compatible open source library * can be extracted from GApps packages ("_swypelibs_"), or downloaded [here](https://github.com/erkserkserks/openboard/tree/master/app/src/main/jniLibs) + * if you are concerned about security implications of loading user-provides libraries, please use the _nouserlib_ build variant, which removes this option. If HeliBoard is installed as system app, and _swypelibs_ are available for the system, they will be used. * Multilingual typing * Load external dictionaries * get them [here](https://codeberg.org/Helium314/aosp-dictionaries#dictionaries), or in the [experimental](https://codeberg.org/Helium314/aosp-dictionaries#experimental-dictionaries) section (quality may vary) diff --git a/app/src/main/java/helium314/keyboard/latin/utils/JniUtils.java b/app/src/main/java/helium314/keyboard/latin/utils/JniUtils.java index f531033e6..3eb99db97 100644 --- a/app/src/main/java/helium314/keyboard/latin/utils/JniUtils.java +++ b/app/src/main/java/helium314/keyboard/latin/utils/JniUtils.java @@ -66,7 +66,9 @@ public static String expectedDefaultChecksum() { // if device is locked, this will throw an IllegalStateException wantedChecksum = PreferenceManager.getDefaultSharedPreferences(app).getString(Settings.PREF_LIBRARY_CHECKSUM, wantedChecksum); } - final String checksum = ChecksumCalculator.INSTANCE.checksum(new FileInputStream(userSuppliedLibrary)); + final FileInputStream libStream = new FileInputStream(userSuppliedLibrary); + final String checksum = ChecksumCalculator.INSTANCE.checksum(libStream); + libStream.close(); if (TextUtils.equals(wantedChecksum, checksum)) { // try loading the library System.load(userSuppliedLibrary.getAbsolutePath()); diff --git a/images/feature.png b/images/feature.png deleted file mode 100644 index 75f1efdd3..000000000 Binary files a/images/feature.png and /dev/null differ diff --git a/images/feature.xcf b/images/feature.xcf deleted file mode 100644 index a1e2b0364..000000000 Binary files a/images/feature.xcf and /dev/null differ diff --git a/images/matrix_qr.png b/images/matrix_qr.png deleted file mode 100644 index 527f51a43..000000000 Binary files a/images/matrix_qr.png and /dev/null differ diff --git a/images/open_board_final.png b/images/open_board_final.png deleted file mode 100644 index 1d22dabc1..000000000 Binary files a/images/open_board_final.png and /dev/null differ diff --git a/images/open_board_final.psd b/images/open_board_final.psd deleted file mode 100644 index 1026af719..000000000 Binary files a/images/open_board_final.psd and /dev/null differ