43 lines
1.3 KiB
Java
43 lines
1.3 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
import java.security.KeyStoreException;
|
|
import java.security.NoSuchAlgorithmException;
|
|
import java.security.cert.CertificateException;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class SQx {
|
|
private static volatile CyF b;
|
|
|
|
private SQx() {
|
|
}
|
|
|
|
public static CyF a(Context context) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException {
|
|
InputStream inputStream;
|
|
if (context != null) {
|
|
if (context != null && gHQ.e == null) {
|
|
gHQ.e = context.getApplicationContext();
|
|
}
|
|
if (b == null) {
|
|
synchronized (SQx.class) {
|
|
if (b == null) {
|
|
try {
|
|
inputStream = C15165git.a(context);
|
|
} catch (RuntimeException unused) {
|
|
inputStream = null;
|
|
}
|
|
if (inputStream == null) {
|
|
inputStream = context.getAssets().open("hmsrootcas.bks");
|
|
}
|
|
b = new CyF(inputStream, "");
|
|
}
|
|
}
|
|
}
|
|
return b;
|
|
}
|
|
throw new NullPointerException("context is null");
|
|
}
|
|
}
|