package com.mstar.android.samba;

import android.util.Log;

/* JADX INFO: loaded from: classes.dex */
public class SambaNative {
    private static final String TAG = "SambaNative";

    public SambaNative() {
        try {
            System.loadLibrary("nbtscan");
        } catch (Exception unused) {
            Log.d(TAG, "Failed to load libnbtscan.so while initializing com.mstar.android.samba; exception was ");
        }
        try {
            System.loadLibrary("samba_jni");
        } catch (Exception unused2) {
            Log.d(TAG, "Failed to load libsamba_jni.so while initializing com.mstar.android.samba; exception was ");
        }
        nativeInit();
    }

    public static native void nativeInit();

    public static native int nativeStartSambaScan(String str);

    public static native String nativeWaitForEvent();
}
