mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-01-08 19:34:05 +01:00
One more fix for native lib loader
This commit is contained in:
parent
b33d5f0786
commit
6e386c5884
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ public class NativeLoader {
|
||||||
}
|
}
|
||||||
out.close();
|
out.close();
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT >= 9) {
|
||||||
|
destLocalFile.setReadable(true, false);
|
||||||
|
destLocalFile.setExecutable(true, false);
|
||||||
|
destLocalFile.setWritable(true);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
System.load(destLocalFile.getAbsolutePath());
|
System.load(destLocalFile.getAbsolutePath());
|
||||||
nativeLoaded = true;
|
nativeLoaded = true;
|
||||||
|
|
Loading…
Reference in a new issue