翰林优商.apk(点击下载) / e.java


package com.sjm.sjmsdk.core.oaidhelper;

import android.content.Context;
import android.util.Log;

public class e {
    private final Context a;

    public e(Context context) {
        this.a = context;
    }

    public String a() {
        String str;
        Exception e;
        try {
            Class<?> cls = Class.forName("com.android.id.impl.IdProviderImpl");
            Object newInstance = cls.newInstance();
            str = (String) cls.getMethod("getOAID", Context.class).invoke(newInstance, this.a);
            try {
                Log.d("MiDeviceIDHelper", "getOAID oaid:" + str);
            } catch (Exception e2) {
                e = e2;
            }
        } catch (Exception e3) {
            str = "";
            e = e3;
            Log.d("MiDeviceIDHelper", "getOAID fail");
            e.printStackTrace();
            return str;
        }
        return str;
    }
}