package com.kwad.sdk.core.f.kwai; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.IBinder; import com.kwad.sdk.core.f.a.c; import java.util.concurrent.LinkedBlockingQueue; public final class c { private ServiceConnection aXT = new ServiceConnection() { /* class com.kwad.sdk.core.f.kwai.c.AnonymousClass1 */ public final void onServiceConnected(ComponentName componentName, IBinder iBinder) { try { c.this.aXV.put(iBinder); } catch (Exception unused) { } } public final void onServiceDisconnected(ComponentName componentName) { } }; private final LinkedBlockingQueue<IBinder> aXV = new LinkedBlockingQueue<>(1); private Context mContext; public c(Context context) { this.mContext = context; } public final String getOAID() { Context context; String str = ""; try { Intent intent = new Intent(); intent.setClassName("com.zui.deviceidservice", "com.zui.deviceidservice.DeviceidService"); if (this.mContext.bindService(intent, this.aXT, 1)) { try { str = new c.a(this.aXV.take()).getOaid(); context = this.mContext; } catch (Exception unused) { context = this.mContext; } catch (Throwable th) { this.mContext.unbindService(this.aXT); throw th; } context.unbindService(this.aXT); } } catch (Exception unused2) { } return str; } }