zzati.java 11.9 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510
package com.google.android.gms.internal;

import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.Uri;
import android.net.Uri.Builder;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.Size;
import android.text.TextUtils;
import com.google.android.gms.common.internal.zzac;
import com.google.android.gms.common.zze;
import hy;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class zzati
  extends hy
{
  static final String a = String.valueOf(zze.GOOGLE_PLAY_SERVICES_VERSION_CODE / 1000).replaceAll("(\\d+)(\\d)(\\d\\d)", "$1.$2.$3");
  private Boolean b;
  
  zzati(zzaue paramzzaue)
  {
    super(paramzzaue);
  }
  
  @Nullable
  private Boolean a(@Size(min=1L) String paramString)
  {
    Boolean localBoolean = null;
    zzac.zzdr(paramString);
    ApplicationInfo localApplicationInfo;
    try
    {
      if (getContext().getPackageManager() == null)
      {
        zzKl().zzLY().log("Failed to load metadata: PackageManager is null");
        return null;
      }
      localApplicationInfo = zzadg.zzbi(getContext()).getApplicationInfo(getContext().getPackageName(), 128);
      if (localApplicationInfo == null)
      {
        zzKl().zzLY().log("Failed to load metadata: ApplicationInfo is null");
        return null;
      }
    }
    catch (PackageManager.NameNotFoundException paramString)
    {
      zzKl().zzLY().zzj("Failed to load metadata: Package name not found", paramString);
      return null;
    }
    if (localApplicationInfo.metaData == null)
    {
      zzKl().zzLY().log("Failed to load metadata: Metadata bundle is null");
      return null;
    }
    if (localApplicationInfo.metaData.containsKey(paramString))
    {
      boolean bool = localApplicationInfo.metaData.getBoolean(paramString);
      localBoolean = Boolean.valueOf(bool);
    }
    return localBoolean;
  }
  
  static String a()
  {
    return (String)zzats.zzbrO.get();
  }
  
  static int b()
  {
    return 40;
  }
  
  static int c()
  {
    return 100;
  }
  
  static int d()
  {
    return 256;
  }
  
  static int e()
  {
    return 500;
  }
  
  static int f()
  {
    return 25;
  }
  
  static int g()
  {
    return 1000;
  }
  
  static int h()
  {
    return 25;
  }
  
  static int i()
  {
    return 1000;
  }
  
  static long j()
  {
    return 15552000000L;
  }
  
  static long k()
  {
    return 15552000000L;
  }
  
  static long l()
  {
    return 3600000L;
  }
  
  static long m()
  {
    return 60000L;
  }
  
  static long n()
  {
    return 61000L;
  }
  
  static long o()
  {
    return ((Long)zzats.zzbsu.get()).longValue();
  }
  
  static String p()
  {
    return "google_app_measurement_local.db";
  }
  
  public int zzKL()
  {
    return 25;
  }
  
  public int zzKM()
  {
    return 40;
  }
  
  public int zzKN()
  {
    return 24;
  }
  
  public int zzKR()
  {
    return 36;
  }
  
  public int zzKS()
  {
    return 2048;
  }
  
  public long zzKU()
  {
    return ((Integer)zzats.zzbrY.get()).intValue();
  }
  
  public long zzKV()
  {
    return ((Integer)zzats.zzbsa.get()).intValue();
  }
  
  public long zzKv()
  {
    return 10298L;
  }
  
  public long zzLA()
  {
    return Math.max(0L, ((Long)zzats.zzbsp.get()).longValue());
  }
  
  public int zzLB()
  {
    return Math.min(20, Math.max(0, ((Integer)zzats.zzbsq.get()).intValue()));
  }
  
  public String zzLC()
  {
    try
    {
      String str = (String)Class.forName("android.os.SystemProperties").getMethod("get", new Class[] { String.class, String.class }).invoke(null, new Object[] { "debug.firebase.analytics.app", "" });
      return str;
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      zzKl().zzLY().zzj("Could not find SystemProperties class", localClassNotFoundException);
      return "";
    }
    catch (NoSuchMethodException localNoSuchMethodException)
    {
      for (;;)
      {
        zzKl().zzLY().zzj("Could not find SystemProperties.get() method", localNoSuchMethodException);
      }
    }
    catch (IllegalAccessException localIllegalAccessException)
    {
      for (;;)
      {
        zzKl().zzLY().zzj("Could not access SystemProperties.get()", localIllegalAccessException);
      }
    }
    catch (InvocationTargetException localInvocationTargetException)
    {
      for (;;)
      {
        zzKl().zzLY().zzj("SystemProperties.get() threw an exception", localInvocationTargetException);
      }
    }
  }
  
  public boolean zzLg()
  {
    return false;
  }
  
  public boolean zzLh()
  {
    Boolean localBoolean = a("firebase_analytics_collection_deactivated");
    return (localBoolean != null) && (localBoolean.booleanValue());
  }
  
  public Boolean zzLi()
  {
    return a("firebase_analytics_collection_enabled");
  }
  
  public long zzLj()
  {
    return ((Long)zzats.zzbsr.get()).longValue();
  }
  
  public long zzLk()
  {
    return ((Long)zzats.zzbsm.get()).longValue();
  }
  
  public long zzLl()
  {
    return ((Long)zzats.zzbsn.get()).longValue();
  }
  
  public long zzLm()
  {
    return 1000L;
  }
  
  public int zzLn()
  {
    return Math.max(0, ((Integer)zzats.zzbrW.get()).intValue());
  }
  
  public int zzLo()
  {
    return Math.max(1, ((Integer)zzats.zzbrX.get()).intValue());
  }
  
  public int zzLp()
  {
    return 100000;
  }
  
  public String zzLq()
  {
    return (String)zzats.zzbse.get();
  }
  
  public long zzLr()
  {
    return ((Long)zzats.zzbrR.get()).longValue();
  }
  
  public long zzLs()
  {
    return Math.max(0L, ((Long)zzats.zzbsf.get()).longValue());
  }
  
  public long zzLt()
  {
    return Math.max(0L, ((Long)zzats.zzbsh.get()).longValue());
  }
  
  public long zzLu()
  {
    return Math.max(0L, ((Long)zzats.zzbsi.get()).longValue());
  }
  
  public long zzLv()
  {
    return Math.max(0L, ((Long)zzats.zzbsj.get()).longValue());
  }
  
  public long zzLw()
  {
    return Math.max(0L, ((Long)zzats.zzbsk.get()).longValue());
  }
  
  public long zzLx()
  {
    return Math.max(0L, ((Long)zzats.zzbsl.get()).longValue());
  }
  
  public long zzLy()
  {
    return ((Long)zzats.zzbsg.get()).longValue();
  }
  
  public long zzLz()
  {
    return Math.max(0L, ((Long)zzats.zzbso.get()).longValue());
  }
  
  public String zzP(String paramString1, String paramString2)
  {
    Uri.Builder localBuilder1 = new Uri.Builder();
    Uri.Builder localBuilder2 = localBuilder1.scheme((String)zzats.zzbrS.get()).encodedAuthority((String)zzats.zzbrT.get());
    paramString1 = String.valueOf(paramString1);
    if (paramString1.length() != 0) {}
    for (paramString1 = "config/app/".concat(paramString1);; paramString1 = new String("config/app/"))
    {
      localBuilder2.path(paramString1).appendQueryParameter("app_instance_id", paramString2).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", "10298");
      return localBuilder1.build().toString();
    }
  }
  
  public long zza(String paramString, zzats.zza<Long> paramzza)
  {
    if (paramString == null) {
      return ((Long)paramzza.get()).longValue();
    }
    paramString = zzKi().a(paramString, paramzza.getKey());
    if (TextUtils.isEmpty(paramString)) {
      return ((Long)paramzza.get()).longValue();
    }
    try
    {
      long l = ((Long)paramzza.get(Long.valueOf(Long.valueOf(paramString).longValue()))).longValue();
      return l;
    }
    catch (NumberFormatException paramString) {}
    return ((Long)paramzza.get()).longValue();
  }
  
  public int zzb(String paramString, zzats.zza<Integer> paramzza)
  {
    if (paramString == null) {
      return ((Integer)paramzza.get()).intValue();
    }
    paramString = zzKi().a(paramString, paramzza.getKey());
    if (TextUtils.isEmpty(paramString)) {
      return ((Integer)paramzza.get()).intValue();
    }
    try
    {
      int i = ((Integer)paramzza.get(Integer.valueOf(Integer.valueOf(paramString).intValue()))).intValue();
      return i;
    }
    catch (NumberFormatException paramString) {}
    return ((Integer)paramzza.get()).intValue();
  }
  
  public int zzfj(@Size(min=1L) String paramString)
  {
    return Math.max(0, Math.min(1000000, zzb(paramString, zzats.zzbrZ)));
  }
  
  public int zzfk(@Size(min=1L) String paramString)
  {
    return zzb(paramString, zzats.zzbsb);
  }
  
  public int zzfl(@Size(min=1L) String paramString)
  {
    return zzb(paramString, zzats.zzbsc);
  }
  
  public int zzfq(String paramString)
  {
    return zzb(paramString, zzats.zzbrU);
  }
  
  public int zzfr(String paramString)
  {
    return Math.max(0, zzb(paramString, zzats.zzbrV));
  }
  
  public int zzfs(String paramString)
  {
    return Math.max(0, Math.min(1000000, zzb(paramString, zzats.zzbsd)));
  }
  
  /* Error */
  public boolean zzoW()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 538	com/google/android/gms/internal/zzati:b	Ljava/lang/Boolean;
    //   4: ifnonnull +84 -> 88
    //   7: aload_0
    //   8: monitorenter
    //   9: aload_0
    //   10: getfield 538	com/google/android/gms/internal/zzati:b	Ljava/lang/Boolean;
    //   13: ifnonnull +73 -> 86
    //   16: aload_0
    //   17: invokevirtual 55	com/google/android/gms/internal/zzati:getContext	()Landroid/content/Context;
    //   20: invokevirtual 541	android/content/Context:getApplicationInfo	()Landroid/content/pm/ApplicationInfo;
    //   23: astore_3
    //   24: invokestatic 546	com/google/android/gms/common/util/zzu:zzzr	()Ljava/lang/String;
    //   27: astore_2
    //   28: aload_3
    //   29: ifnull +30 -> 59
    //   32: aload_3
    //   33: getfield 549	android/content/pm/ApplicationInfo:processName	Ljava/lang/String;
    //   36: astore_3
    //   37: aload_3
    //   38: ifnull +58 -> 96
    //   41: aload_3
    //   42: aload_2
    //   43: invokevirtual 553	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   46: ifeq +50 -> 96
    //   49: iconst_1
    //   50: istore_1
    //   51: aload_0
    //   52: iload_1
    //   53: invokestatic 125	java/lang/Boolean:valueOf	(Z)Ljava/lang/Boolean;
    //   56: putfield 538	com/google/android/gms/internal/zzati:b	Ljava/lang/Boolean;
    //   59: aload_0
    //   60: getfield 538	com/google/android/gms/internal/zzati:b	Ljava/lang/Boolean;
    //   63: ifnonnull +23 -> 86
    //   66: aload_0
    //   67: getstatic 556	java/lang/Boolean:TRUE	Ljava/lang/Boolean;
    //   70: putfield 538	com/google/android/gms/internal/zzati:b	Ljava/lang/Boolean;
    //   73: aload_0
    //   74: invokevirtual 65	com/google/android/gms/internal/zzati:zzKl	()Lcom/google/android/gms/internal/zzatx;
    //   77: invokevirtual 71	com/google/android/gms/internal/zzatx:zzLY	()Lcom/google/android/gms/internal/zzatx$zza;
    //   80: ldc_w 558
    //   83: invokevirtual 79	com/google/android/gms/internal/zzatx$zza:log	(Ljava/lang/String;)V
    //   86: aload_0
    //   87: monitorexit
    //   88: aload_0
    //   89: getfield 538	com/google/android/gms/internal/zzati:b	Ljava/lang/Boolean;
    //   92: invokevirtual 336	java/lang/Boolean:booleanValue	()Z
    //   95: ireturn
    //   96: iconst_0
    //   97: istore_1
    //   98: goto -47 -> 51
    //   101: astore_2
    //   102: aload_0
    //   103: monitorexit
    //   104: aload_2
    //   105: athrow
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	106	0	this	zzati
    //   50	48	1	bool	boolean
    //   27	16	2	str	String
    //   101	4	2	localObject1	Object
    //   23	19	3	localObject2	Object
    // Exception table:
    //   from	to	target	type
    //   9	28	101	finally
    //   32	37	101	finally
    //   41	49	101	finally
    //   51	59	101	finally
    //   59	86	101	finally
    //   86	88	101	finally
    //   102	104	101	finally
  }
  
  public String zzpv()
  {
    return "google_app_measurement.db";
  }
  
  public long zzpz()
  {
    return Math.max(0L, ((Long)zzats.zzbrQ.get()).longValue());
  }
  
  public boolean zzwR()
  {
    return zzaba.zzwR();
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzati.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */