Change so path

pull/137/head
FongMi 2 years ago
parent 4d30915b4e
commit 1f79a095a3
  1. 2
      app/src/main/java/com/fongmi/android/tv/player/source/Force.java
  2. 3
      app/src/main/java/com/fongmi/android/tv/player/source/JianPian.java

@ -35,7 +35,7 @@ public class Force {
}
private void init(String url) throws Exception {
File file = FileUtil.getCacheFile(Util.so(url));
File file = FileUtil.getFilesFile(Util.so(url));
String path = Github.get().getReleasePath("/other/jniLibs/" + file.getName());
if (!file.exists()) FileUtil.write(file, OkHttp.newCall(path).execute().body().bytes());
App.get().bindService(Util.intent(App.get(), url, file), mConn, Context.BIND_AUTO_CREATE);

@ -28,8 +28,7 @@ public class JianPian {
private void init() throws Exception {
if (p2p != null) return;
String name = "libp2p-jp-" + BuildConfig.FLAVOR_abi + ".so";
File file = FileUtil.getCacheFile(name);
File file = FileUtil.getFilesFile("libp2p-jp-" + BuildConfig.FLAVOR_abi + ".so");
String path = Github.get().getReleasePath("/other/jniLibs/" + file.getName());
if (!file.exists()) FileUtil.write(file, OkHttp.newCall(path).execute().body().bytes());
p2p = new P2PClass(App.get(), file.getAbsolutePath());

Loading…
Cancel
Save