修复部分机型开播异常问题

This commit is contained in:
zlzw 2023-07-04 13:03:19 +08:00
parent 08bc6d554a
commit f417e4ead8
3 changed files with 12 additions and 1 deletions

View File

@ -233,3 +233,6 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode;
-keep class com.yunbao.faceunity.utils.FaceUnityConfig{
public static java.lang.String BUNDLE_FACE_BEAUTIFICATION;
}
-keep class com.faceunity.wrapper.faceunity$LoadConfig*{
private static boolean sLoadedLibrary;
}

View File

@ -18,6 +18,7 @@ import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
@ -104,6 +105,13 @@ public class PluginManager {
File plugins = new File(outDir + File.separator + "lib" + File.separator + abi);
loadSo(plugins, "libfuai");
loadSo(plugins, "libCNamaSDK");
try {
Field field = Class.forName("com.faceunity.wrapper.faceunity$LoadConfig").getDeclaredField("sLoadedLibrary");
field.setAccessible(true);
field.set(null,true);
}catch (Exception e){
e.printStackTrace();
}
}
/**

View File

@ -723,7 +723,7 @@
},
{
"code": 223,
"tw": "馬",
"tw": "馬",
"en": "Mali",
"locale": "ML",
"zh": "马里"