mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-08 07:37:41 +00:00
update readme, remove old images
and properly close stream
This commit is contained in:
parent
daa20a1c2c
commit
161409a73e
7 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
* Allow loading Glide typing library
|
* Allow loading Glide typing library
|
||||||
* not included in the app, as there is no compatible open source 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)
|
* 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
|
* Multilingual typing
|
||||||
* Load external dictionaries
|
* 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)
|
* 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)
|
||||||
|
|
|
@ -66,7 +66,9 @@ public final class JniUtils {
|
||||||
// if device is locked, this will throw an IllegalStateException
|
// if device is locked, this will throw an IllegalStateException
|
||||||
wantedChecksum = PreferenceManager.getDefaultSharedPreferences(app).getString(Settings.PREF_LIBRARY_CHECKSUM, wantedChecksum);
|
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)) {
|
if (TextUtils.equals(wantedChecksum, checksum)) {
|
||||||
// try loading the library
|
// try loading the library
|
||||||
System.load(userSuppliedLibrary.getAbsolutePath());
|
System.load(userSuppliedLibrary.getAbsolutePath());
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 72 KiB |
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 23 KiB |
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue