final Pair<String, Boolean> zzCw() { checkOnWorkerThread(); long l = getClock().elapsedRealtime(); if ((this.zzbnx != null) && (l < this.zzbnz)) { return new Pair(this.zzbnx, Boolean.valueOf(this.zzbny)); } this.zzbnz = (l + zzc.zzBG()); AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(true); try { AdvertisingIdClient.Info localInfo = AdvertisingIdClient.getAdvertisingIdInfo(getContext()); this.zzbnx = localInfo.zzpp; this.zzbny = localInfo.zzpq; AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(false); return new Pair(this.zzbnx, Boolean.valueOf(this.zzbny)); } catch (Throwable localThrowable) { for (;;) { zzBh().zzbnd.zzm("Unable to get advertising id", localThrowable); this.zzbnx = ""; } } }
private Info n() { Info info = null; try { info = AdvertisingIdClient.getAdvertisingIdInfo(hn.a().c()); } catch (Exception e) { ib.b(a, "GOOGLE PLAY SERVICES ERROR: " + e.getMessage()); ib.b(a, "There is a problem with the Google Play Services library, which is required for Android Advertising ID support. The Google Play Services library should be integrated in any app shipping in the Play Store that uses analytics or advertising."); } return info; }
private zza zzZ() throws IOException { try { if (!zznX.await(2L, TimeUnit.SECONDS)) { zza localzza1 = new zza(null, false); return localzza1; } } catch (InterruptedException localInterruptedException) { return new zza(null, false); } try { if (zznW == null) { zza localzza2 = new zza(null, false); return localzza2; } } finally {} AdvertisingIdClient.Info localInfo = zznW.getInfo(); return new zza(zzk(localInfo.zzpp), localInfo.zzpq); }
public final boolean zzb(String paramString, boolean paramBoolean) { if (this.zzoW == null) { return false; } AdvertisingIdClient.Info localInfo = new AdvertisingIdClient.Info(paramString, paramBoolean); this.zzoW.zznt = localInfo; this.zzoX = true; return true; }
public final void onAdvertisingIdInfoChanged(AdvertisingIdClient.Info paramInfo) { Object[] arrayOfObject = new Object[2]; arrayOfObject[0] = Integer.valueOf(paramInfo.zzpp.hashCode()); arrayOfObject[1] = Boolean.valueOf(paramInfo.zzpq); FinskyLog.d("AdId change: id (hash)=%d limit=%b", arrayOfObject); }
a f(Context paramContext) { AdvertisingIdClient.Info localInfo; try { localInfo = AdvertisingIdClient.getAdvertisingIdInfo(paramContext); } catch (GooglePlayServicesRepairableException localGooglePlayServicesRepairableException) { throw new IOException(localGooglePlayServicesRepairableException); } String str1 = localInfo.getId(); String str2 = str1; if ((str1 != null) && (str2.matches("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"))) { byte[] arrayOfByte = new byte[16]; int i = 0; for (int j = 0; j < str2.length(); j += 2) { if ((j == 8) || (j == 13) || (j == 18) || (j == 23)) j++; arrayOfByte[i] = ((byte)((Character.digit(str2.charAt(j), 16) << 4) + Character.digit(str2.charAt(j + 1), 16))); i++; } str2 = this.dw.a(arrayOfByte, true); } return new a(str2, localInfo.isLimitAdTrackingEnabled()); }
public static Future<Boolean> getTrackingEnabled() { FutureTask<Boolean> future = new FutureTask<Boolean>(new Callable<Boolean>() { public Boolean call() throws Exception { try { Info adInfo = AdvertisingIdClient.getAdvertisingIdInfo(Growthbeat.getInstance().getContext()); return !adInfo.isLimitAdTrackingEnabled(); } catch (Throwable e) { return null; } } }); Growthbeat.getInstance().getExecutor().execute(future); return future; }
public static Future<String> getAdvertisingId() { FutureTask<String> future = new FutureTask<String>(new Callable<String>() { public String call() throws Exception { try { Info adInfo = AdvertisingIdClient.getAdvertisingIdInfo(Growthbeat.getInstance().getContext()); return adInfo.getId(); } catch (Throwable e) { return null; } } }); Growthbeat.getInstance().getExecutor().execute(future); return future; }