2020-11-12 02:11:44 +00:00
|
|
|
.class public Lf/c/a/c1;
|
|
|
|
.super Ljava/lang/Object;
|
2020-11-16 01:00:50 +00:00
|
|
|
.source "InstallReferrerHuawei.java"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public a:Lf/c/a/w0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public b:Landroid/content/Context;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public final c:Lf/c/a/d1;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public final d:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Lf/c/a/d1;)V
|
|
|
|
.locals 1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {}, Lf/c/a/a0;->a()Lf/c/a/w0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object v0, p0, Lf/c/a/c1;->a:Lf/c/a/w0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lf/c/a/c1;->b:Landroid/content/Context;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p2, p0, Lf/c/a/c1;->c:Lf/c/a/d1;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const/4 p2, 0x1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-direct {p1, p2}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lf/c/a/c1;->d:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public a()V
|
|
|
|
.locals 17
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-object/from16 v1, p0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v0, v1, Lf/c/a/c1;->d:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const/4 v2, 0x0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
if-nez v0, :cond_0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v0, v1, Lf/c/a/c1;->a:Lf/c/a/w0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const-string v3, "Should not try to read Install referrer Huawei"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-interface {v0, v3, v2}, Lf/c/a/w0;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
return-void
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v0, v1, Lf/c/a/c1;->b:Landroid/content/Context;
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const-string v3, "com.huawei.appmarket.commondata"
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {v0, v3}, Lf/c/a/e2;->F(Landroid/content/Context;Ljava/lang/String;)Z
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result v0
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
if-nez v0, :cond_1
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
return-void
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const-string v0, "content://com.huawei.appmarket.commondata/item/5"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v4, v1, Lf/c/a/c1;->b:Landroid/content/Context;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {v4}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v4
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const/4 v10, 0x1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
new-array v8, v10, [Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v5, v1, Lf/c/a/c1;->b:Landroid/content/Context;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {v5}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v5
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
aput-object v5, v8, v2
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const/4 v6, 0x0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const/4 v7, 0x0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const/4 v9, 0x0
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-object v5, v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
:try_start_0
|
|
|
|
invoke-virtual/range {v4 .. v9}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v3
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const/4 v4, 0x2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
if-eqz v3, :cond_2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-interface {v3}, Landroid/database/Cursor;->moveToFirst()Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result v5
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
if-eqz v5, :cond_2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
move-result-object v12
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-interface {v3, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v0
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v5
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v6, v1, Lf/c/a/c1;->a:Lf/c/a/w0;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const-string v7, "InstallReferrerHuawei reads referrer[%s] clickTime[%s] installTime[%s]"
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const/4 v8, 0x3
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
new-array v8, v8, [Ljava/lang/Object;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
aput-object v12, v8, v2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
aput-object v0, v8, v10
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
aput-object v5, v8, v4
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-interface {v6, v7, v8}, Lf/c/a/w0;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-wide v13
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {v5}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-wide v15
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v11, v1, Lf/c/a/c1;->c:Lf/c/a/d1;
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-interface/range {v11 .. v16}, Lf/c/a/d1;->a(Ljava/lang/String;JJ)V
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
goto :goto_0
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
:cond_2
|
|
|
|
iget-object v5, v1, Lf/c/a/c1;->a:Lf/c/a/w0;
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const-string v6, "InstallReferrerHuawei fail to read referrer for package [%s] and content uri [%s]"
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
new-array v4, v4, [Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v7, v1, Lf/c/a/c1;->b:Landroid/content/Context;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {v7}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v7
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
aput-object v7, v4, v2
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v0
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
aput-object v0, v4, v10
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-interface {v5, v6, v4}, Lf/c/a/w0;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
:try_end_0
|
2020-11-16 01:00:50 +00:00
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
2020-11-12 02:11:44 +00:00
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
:goto_0
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
|
|
|
|
goto :goto_1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:catchall_0
|
2020-11-16 01:00:50 +00:00
|
|
|
move-exception v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:catch_0
|
2020-11-16 01:00:50 +00:00
|
|
|
move-exception v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
:try_start_1
|
|
|
|
iget-object v4, v1, Lf/c/a/c1;->a:Lf/c/a/w0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const-string v5, "InstallReferrerHuawei error [%s]"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
new-array v6, v10, [Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v0
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
aput-object v0, v6, v2
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-interface {v4, v5, v6}, Lf/c/a/w0;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
if-eqz v3, :cond_3
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-interface {v3}, Landroid/database/Cursor;->close()V
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
:cond_3
|
|
|
|
iget-object v0, v1, Lf/c/a/c1;->d:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
return-void
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
:goto_2
|
|
|
|
if-eqz v3, :cond_4
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-interface {v3}, Landroid/database/Cursor;->close()V
|
2020-11-14 03:19:56 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
:cond_4
|
|
|
|
throw v0
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|