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


package com.mbridge.msdk.optimize.a.a;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import com.mbridge.msdk.optimize.a.b.b;

/* compiled from: LenovoDeviceHelper */
public final class b {
    com.mbridge.msdk.optimize.a.b.b a;
    ServiceConnection b = new ServiceConnection() {
        /* class com.mbridge.msdk.optimize.a.a.b.AnonymousClass1 */

        public final void onServiceDisconnected(ComponentName componentName) {
        }

        public final void onServiceConnected(ComponentName componentName, IBinder iBinder) {
            try {
                b.this.a = new b.a.C0225a(iBinder);
            } catch (Throwable th) {
                th.printStackTrace();
            }
        }
    };
    private Context c;

    public b(Context context) {
        this.c = context;
    }

    public final void a(com.mbridge.msdk.optimize.a.b bVar) {
        com.mbridge.msdk.optimize.a.b.b bVar2;
        try {
            this.c.getPackageName();
            Intent intent = new Intent();
            intent.setClassName("com.zui.deviceidservice", "com.zui.deviceidservice.DeviceidService");
            if (this.c.bindService(intent, this.b, 1) && (bVar2 = this.a) != null) {
                String a2 = bVar2.a();
                if (bVar != null) {
                    bVar.a(a2, false);
                }
            }
        } catch (Throwable th) {
            th.printStackTrace();
        }
    }
}