大漢易經書院.apk(点击下载) / b.java


package com.baidu.techain.n;

import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import com.baidu.techain.j.c;

public final class b implements com.baidu.techain.j.b {
    private Context a;
    private a b;

    @Override // com.baidu.techain.j.b
    public final void a(Context context, c cVar) {
        this.a = context;
        a aVar = new a();
        this.b = aVar;
        aVar.c = null;
        aVar.d = null;
        aVar.e = null;
        try {
            aVar.b = Class.forName("com.android.id.impl.IdProviderImpl");
            aVar.a = aVar.b.newInstance();
        } catch (Exception e) {
            Log.d("IdentifierManager", "reflect exception!", e);
        }
        try {
            aVar.c = aVar.b.getMethod("getOAID", Context.class);
        } catch (Exception e2) {
            Log.d("IdentifierManager", "reflect exception!", e2);
        }
        try {
            aVar.d = aVar.b.getMethod("getVAID", Context.class);
        } catch (Exception e3) {
            Log.d("IdentifierManager", "reflect exception!", e3);
        }
        try {
            aVar.e = aVar.b.getMethod("getAAID", Context.class);
        } catch (Exception e4) {
            Log.d("IdentifierManager", "reflect exception!", e4);
        }
    }

    @Override // com.baidu.techain.j.b
    public final String b() {
        a aVar = this.b;
        Context context = this.a;
        if (TextUtils.isEmpty(aVar.f)) {
            aVar.f = aVar.a(context, aVar.c);
        }
        return aVar.f;
    }
}