package com.tencent.open.web.security; import android.content.Context; import com.tencent.connect.auth.AuthAgent; import com.tencent.open.a.f; import com.tencent.open.utils.d; import java.io.File; /* compiled from: ProGuard */ /* loaded from: classes.dex */ public class JniInterface { public static boolean isJniOk = false; public static native boolean BackSpaceChar(boolean z, int i); public static native boolean clearAllPWD(); public static native String getPWDKeyToMD5(String str); public static native boolean insetTextToArray(int i, String str, int i2); public static void loadSo() { if (isJniOk) { return; } try { Context a = d.a(); if (a != null) { if (new File(a.getFilesDir().toString() + "/" + AuthAgent.g).exists()) { System.load(a.getFilesDir().toString() + "/" + AuthAgent.g); isJniOk = true; f.c("openSDK_LOG.JniInterface", "-->load lib success:" + AuthAgent.g); } else { f.c("openSDK_LOG.JniInterface", "-->fail, because so is not exists:" + AuthAgent.g); } } else { f.c("openSDK_LOG.JniInterface", "-->load lib fail, because context is null:" + AuthAgent.g); } } catch (Throwable th) { f.b("openSDK_LOG.JniInterface", "-->load lib error:" + AuthAgent.g, th); } } }