protected static String a() {
   String str = null;
   try {
     Info advertisingIdInfo =
         AdvertisingIdClient.getAdvertisingIdInfo(Chartboost.sharedChartboost().getContext());
   } catch (IOException e) {
     String str2 = str;
   } catch (GooglePlayServicesRepairableException e2) {
     str2 = str;
   } catch (GooglePlayServicesNotAvailableException e3) {
     str2 = str;
   }
   if (advertisingIdInfo == null) {
     c.a(a.c);
     return str;
   } else {
     if (advertisingIdInfo.isLimitAdTrackingEnabled()) {
       c.a(a.e);
     } else {
       c.a(a.d);
     }
     try {
       UUID fromString = UUID.fromString(advertisingIdInfo.getId());
       ByteBuffer wrap = ByteBuffer.wrap(new byte[16]);
       wrap.putLong(fromString.getMostSignificantBits());
       wrap.putLong(fromString.getLeastSignificantBits());
       return b.b(wrap.array());
     } catch (IllegalArgumentException e4) {
       CBLogging.a("CBIdentityAdv", "Exception raised retrieveAdvertisingID", e4);
       return advertisingIdInfo.getId().replace("-", AdTrackerConstants.BLANK);
     }
   }
 }
예제 #2
0
파일: zzam.java 프로젝트: gusfl/Tinder-repo
 public void run() {
   try {
     AdvertisingIdClient advertisingIdClient = new AdvertisingIdClient(this.zznx);
     advertisingIdClient.start();
     synchronized (zzam.class) {
       if (zzam.zznq == null) {
         zzam.zznq = advertisingIdClient;
       } else {
         advertisingIdClient.finish();
       }
     }
   } catch (GooglePlayServicesNotAvailableException e) {
     zzam.zzns = true;
   } catch (IOException e2) {
   } catch (GooglePlayServicesRepairableException e3) {
   }
   zzam.zznr.countDown();
 }
 @Override
 protected String doInBackground(Context... contexts) {
   String result = null;
   Context context = contexts[0];
   if (context != null) {
     Info adInfo = null;
     try {
       adInfo = AdvertisingIdClient.getAdvertisingIdInfo(context);
       if (adInfo != null) {
         result = adInfo.getId();
       }
     } catch (Exception e) {
       Log.e("Pubnative", "Error retrieving androidAdvertisingID: " + e.toString());
     }
   }
   return result;
 }
예제 #4
0
파일: zzam.java 프로젝트: gusfl/Tinder-repo
 zza zzY() throws IOException {
   synchronized (zzam.class) {
     try {
       zza com_google_android_gms_internal_zzam_zza;
       if (!zznr.await(2, TimeUnit.SECONDS)) {
         com_google_android_gms_internal_zzam_zza = new zza(this, null, false);
         return com_google_android_gms_internal_zzam_zza;
       } else if (zznq == null) {
         com_google_android_gms_internal_zzam_zza = new zza(this, null, false);
         return com_google_android_gms_internal_zzam_zza;
       } else {
         Info info = zznq.getInfo();
         return new zza(this, zzk(info.getId()), info.isLimitAdTrackingEnabled());
       }
     } catch (InterruptedException e) {
       return new zza(this, null, false);
     }
   }
 }