169 lines
3.5 KiB
Smali
169 lines
3.5 KiB
Smali
.class public Le/h/a/c/j;
|
|
.super Ljava/lang/Object;
|
|
.source "AppMeasurementEventLogger.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/lang/reflect/Method;
|
|
|
|
.field public final b:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/Object;Ljava/lang/reflect/Method;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Le/h/a/c/j;->b:Ljava/lang/Object;
|
|
|
|
iput-object p2, p0, Le/h/a/c/j;->a:Ljava/lang/reflect/Method;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;)Le/h/a/c/j;
|
|
.locals 7
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "com.google.android.gms.measurement.AppMeasurement"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-object v1, v0
|
|
|
|
:goto_0
|
|
if-nez v1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
:try_start_1
|
|
const-string v4, "getInstance"
|
|
|
|
new-array v5, v3, [Ljava/lang/Class;
|
|
|
|
const-class v6, Landroid/content/Context;
|
|
|
|
aput-object v6, v5, v2
|
|
|
|
invoke-virtual {v1, v4, v5}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v4
|
|
|
|
new-array v5, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p0, v5, v2
|
|
|
|
invoke-virtual {v4, v1, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-object p0, v0
|
|
|
|
:goto_1
|
|
if-nez p0, :cond_1
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
:try_start_2
|
|
const-string v4, "logEventInternal"
|
|
|
|
const/4 v5, 0x3
|
|
|
|
new-array v5, v5, [Ljava/lang/Class;
|
|
|
|
const-class v6, Ljava/lang/String;
|
|
|
|
aput-object v6, v5, v2
|
|
|
|
const-class v2, Ljava/lang/String;
|
|
|
|
aput-object v2, v5, v3
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const-class v3, Landroid/os/Bundle;
|
|
|
|
aput-object v3, v5, v2
|
|
|
|
invoke-virtual {v1, v4, v5}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v1
|
|
:try_end_2
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
goto :goto_2
|
|
|
|
:catch_2
|
|
move-object v1, v0
|
|
|
|
:goto_2
|
|
if-nez v1, :cond_2
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
new-instance v0, Le/h/a/c/j;
|
|
|
|
invoke-direct {v0, p0, v1}, Le/h/a/c/j;-><init>(Ljava/lang/Object;Ljava/lang/reflect/Method;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)V
|
|
.locals 4
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Le/h/a/c/j;->a:Ljava/lang/reflect/Method;
|
|
|
|
iget-object v1, p0, Le/h/a/c/j;->b:Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x3
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object p1, v2, v3
|
|
|
|
const/4 p1, 0x1
|
|
|
|
aput-object p2, v2, p1
|
|
|
|
const/4 p1, 0x2
|
|
|
|
aput-object p3, v2, p1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
return-void
|
|
.end method
|