Changes of com.discord v1325
This commit is contained in:
parent
d9d9f382c9
commit
3cb9e1231d
28086 changed files with 4880345 additions and 0 deletions
14
com.discord/smali/f/e/b/a/a$a.smali
Normal file
14
com.discord/smali/f/e/b/a/a$a.smali
Normal file
|
@ -0,0 +1,14 @@
|
|||
.class public synthetic Lf/e/b/a/a$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "InstallReferrerClientImpl.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lf/e/b/a/a;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1009
|
||||
name = null
|
||||
.end annotation
|
108
com.discord/smali/f/e/b/a/a$b.smali
Normal file
108
com.discord/smali/f/e/b/a/a$b.smali
Normal file
|
@ -0,0 +1,108 @@
|
|||
.class public final Lf/e/b/a/a$b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "InstallReferrerClientImpl.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroid/content/ServiceConnection;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lf/e/b/a/a;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x11
|
||||
name = "b"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Lf/e/b/a/b;
|
||||
|
||||
.field public final synthetic e:Lf/e/b/a/a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lf/e/b/a/a;Lf/e/b/a/b;Lf/e/b/a/a$a;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lf/e/b/a/a$b;->e:Lf/e/b/a/a;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
if-eqz p2, :cond_0
|
||||
|
||||
iput-object p2, p0, Lf/e/b/a/a$b;->d:Lf/e/b/a/b;
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
new-instance p1, Ljava/lang/RuntimeException;
|
||||
|
||||
const-string p2, "Please specify a listener to know when setup is done."
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
|
||||
.locals 1
|
||||
|
||||
const-string p1, "InstallReferrerClient"
|
||||
|
||||
const-string v0, "Install Referrer service connected."
|
||||
|
||||
invoke-static {p1, v0}, Lt/a/b/b/a;->L(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
iget-object p1, p0, Lf/e/b/a/a$b;->e:Lf/e/b/a/a;
|
||||
|
||||
invoke-static {p2}, Lf/h/a/d/a/a$a;->g(Landroid/os/IBinder;)Lf/h/a/d/a/a;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
iput-object p2, p1, Lf/e/b/a/a;->c:Lf/h/a/d/a/a;
|
||||
|
||||
iget-object p1, p0, Lf/e/b/a/a$b;->e:Lf/e/b/a/a;
|
||||
|
||||
const/4 p2, 0x2
|
||||
|
||||
iput p2, p1, Lf/e/b/a/a;->a:I
|
||||
|
||||
iget-object p1, p0, Lf/e/b/a/a$b;->d:Lf/e/b/a/b;
|
||||
|
||||
const/4 p2, 0x0
|
||||
|
||||
invoke-interface {p1, p2}, Lf/e/b/a/b;->onInstallReferrerSetupFinished(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onServiceDisconnected(Landroid/content/ComponentName;)V
|
||||
.locals 1
|
||||
|
||||
const-string p1, "InstallReferrerClient"
|
||||
|
||||
const-string v0, "Install Referrer service disconnected."
|
||||
|
||||
invoke-static {p1, v0}, Lt/a/b/b/a;->M(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
iget-object p1, p0, Lf/e/b/a/a$b;->e:Lf/e/b/a/a;
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
iput-object v0, p1, Lf/e/b/a/a;->c:Lf/h/a/d/a/a;
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
iput v0, p1, Lf/e/b/a/a;->a:I
|
||||
|
||||
iget-object p1, p0, Lf/e/b/a/a$b;->d:Lf/e/b/a/b;
|
||||
|
||||
invoke-interface {p1}, Lf/e/b/a/b;->onInstallReferrerServiceDisconnected()V
|
||||
|
||||
return-void
|
||||
.end method
|
342
com.discord/smali/f/e/b/a/a.smali
Normal file
342
com.discord/smali/f/e/b/a/a.smali
Normal file
|
@ -0,0 +1,342 @@
|
|||
.class public Lf/e/b/a/a;
|
||||
.super Lcom/android/installreferrer/api/InstallReferrerClient;
|
||||
.source "InstallReferrerClientImpl.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lf/e/b/a/a$b;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public a:I
|
||||
|
||||
.field public final b:Landroid/content/Context;
|
||||
|
||||
.field public c:Lf/h/a/d/a/a;
|
||||
|
||||
.field public d:Landroid/content/ServiceConnection;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroid/content/Context;)V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/android/installreferrer/api/InstallReferrerClient;-><init>()V
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
iput v0, p0, Lf/e/b/a/a;->a:I
|
||||
|
||||
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iput-object p1, p0, Lf/e/b/a/a;->b:Landroid/content/Context;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()Lf/e/b/a/c;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Landroid/os/RemoteException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Lf/e/b/a/a;->c()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
new-instance v0, Landroid/os/Bundle;
|
||||
|
||||
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
||||
|
||||
iget-object v1, p0, Lf/e/b/a/a;->b:Landroid/content/Context;
|
||||
|
||||
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
const-string v2, "package_name"
|
||||
|
||||
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
:try_start_0
|
||||
new-instance v1, Lf/e/b/a/c;
|
||||
|
||||
iget-object v2, p0, Lf/e/b/a/a;->c:Lf/h/a/d/a/a;
|
||||
|
||||
invoke-interface {v2, v0}, Lf/h/a/d/a/a;->q(Landroid/os/Bundle;)Landroid/os/Bundle;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {v1, v0}, Lf/e/b/a/c;-><init>(Landroid/os/Bundle;)V
|
||||
:try_end_0
|
||||
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
return-object v1
|
||||
|
||||
:catch_0
|
||||
move-exception v0
|
||||
|
||||
const-string v1, "InstallReferrerClient"
|
||||
|
||||
const-string v2, "RemoteException getting install referrer information"
|
||||
|
||||
invoke-static {v1, v2}, Lt/a/b/b/a;->M(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
iput v1, p0, Lf/e/b/a/a;->a:I
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v1, "Service not connected. Please start a connection before using the service."
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public b(Lf/e/b/a/b;)V
|
||||
.locals 8
|
||||
|
||||
invoke-virtual {p0}, Lf/e/b/a/a;->c()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const-string v2, "InstallReferrerClient"
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const-string v0, "Service connection is valid. No need to re-initialize."
|
||||
|
||||
invoke-static {v2, v0}, Lt/a/b/b/a;->L(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
invoke-interface {p1, v1}, Lf/e/b/a/b;->onInstallReferrerSetupFinished(I)V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
iget v0, p0, Lf/e/b/a/a;->a:I
|
||||
|
||||
const/4 v3, 0x3
|
||||
|
||||
const/4 v4, 0x1
|
||||
|
||||
if-ne v0, v4, :cond_1
|
||||
|
||||
const-string v0, "Client is already in the process of connecting to the service."
|
||||
|
||||
invoke-static {v2, v0}, Lt/a/b/b/a;->M(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
invoke-interface {p1, v3}, Lf/e/b/a/b;->onInstallReferrerSetupFinished(I)V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
if-ne v0, v3, :cond_2
|
||||
|
||||
const-string v0, "Client was already closed and can\'t be reused. Please create another instance."
|
||||
|
||||
invoke-static {v2, v0}, Lt/a/b/b/a;->M(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
invoke-interface {p1, v3}, Lf/e/b/a/b;->onInstallReferrerSetupFinished(I)V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_2
|
||||
const-string v0, "Starting install referrer service setup."
|
||||
|
||||
invoke-static {v2, v0}, Lt/a/b/b/a;->L(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/content/Intent;
|
||||
|
||||
const-string v3, "com.google.android.finsky.BIND_GET_INSTALL_REFERRER_SERVICE"
|
||||
|
||||
invoke-direct {v0, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
||||
|
||||
new-instance v3, Landroid/content/ComponentName;
|
||||
|
||||
const-string v5, "com.android.vending"
|
||||
|
||||
const-string v6, "com.google.android.finsky.externalreferrer.GetInstallReferrerService"
|
||||
|
||||
invoke-direct {v3, v5, v6}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {v0, v3}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
|
||||
|
||||
iget-object v3, p0, Lf/e/b/a/a;->b:Landroid/content/Context;
|
||||
|
||||
invoke-virtual {v3}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
invoke-virtual {v3, v0, v1}, Landroid/content/pm/PackageManager;->queryIntentServices(Landroid/content/Intent;I)Ljava/util/List;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
const/4 v6, 0x2
|
||||
|
||||
if-eqz v3, :cond_6
|
||||
|
||||
invoke-interface {v3}, Ljava/util/List;->isEmpty()Z
|
||||
|
||||
move-result v7
|
||||
|
||||
if-nez v7, :cond_6
|
||||
|
||||
invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
check-cast v3, Landroid/content/pm/ResolveInfo;
|
||||
|
||||
iget-object v3, v3, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;
|
||||
|
||||
if-eqz v3, :cond_6
|
||||
|
||||
iget-object v7, v3, Landroid/content/pm/ServiceInfo;->packageName:Ljava/lang/String;
|
||||
|
||||
iget-object v3, v3, Landroid/content/pm/ServiceInfo;->name:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v5, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v7
|
||||
|
||||
if-eqz v7, :cond_5
|
||||
|
||||
if-eqz v3, :cond_5
|
||||
|
||||
iget-object v3, p0, Lf/e/b/a/a;->b:Landroid/content/Context;
|
||||
|
||||
invoke-virtual {v3}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
const/16 v7, 0x80
|
||||
|
||||
:try_start_0
|
||||
invoke-virtual {v3, v5, v7}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
iget v3, v3, Landroid/content/pm/PackageInfo;->versionCode:I
|
||||
:try_end_0
|
||||
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
const v5, 0x4d17ab4
|
||||
|
||||
if-lt v3, v5, :cond_3
|
||||
|
||||
const/4 v3, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
:cond_3
|
||||
const/4 v3, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v3, :cond_5
|
||||
|
||||
new-instance v3, Landroid/content/Intent;
|
||||
|
||||
invoke-direct {v3, v0}, Landroid/content/Intent;-><init>(Landroid/content/Intent;)V
|
||||
|
||||
new-instance v0, Lf/e/b/a/a$b;
|
||||
|
||||
const/4 v5, 0x0
|
||||
|
||||
invoke-direct {v0, p0, p1, v5}, Lf/e/b/a/a$b;-><init>(Lf/e/b/a/a;Lf/e/b/a/b;Lf/e/b/a/a$a;)V
|
||||
|
||||
iput-object v0, p0, Lf/e/b/a/a;->d:Landroid/content/ServiceConnection;
|
||||
|
||||
iget-object v5, p0, Lf/e/b/a/a;->b:Landroid/content/Context;
|
||||
|
||||
invoke-virtual {v5, v3, v0, v4}, Landroid/content/Context;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_4
|
||||
|
||||
const-string p1, "Service was bonded successfully."
|
||||
|
||||
invoke-static {v2, p1}, Lt/a/b/b/a;->L(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_4
|
||||
const-string v0, "Connection to service is blocked."
|
||||
|
||||
invoke-static {v2, v0}, Lt/a/b/b/a;->M(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
iput v1, p0, Lf/e/b/a/a;->a:I
|
||||
|
||||
invoke-interface {p1, v4}, Lf/e/b/a/b;->onInstallReferrerSetupFinished(I)V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_5
|
||||
const-string v0, "Play Store missing or incompatible. Version 8.3.73 or later required."
|
||||
|
||||
invoke-static {v2, v0}, Lt/a/b/b/a;->M(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
iput v1, p0, Lf/e/b/a/a;->a:I
|
||||
|
||||
invoke-interface {p1, v6}, Lf/e/b/a/b;->onInstallReferrerSetupFinished(I)V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_6
|
||||
iput v1, p0, Lf/e/b/a/a;->a:I
|
||||
|
||||
const-string v0, "Install Referrer service unavailable on device."
|
||||
|
||||
invoke-static {v2, v0}, Lt/a/b/b/a;->L(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
invoke-interface {p1, v6}, Lf/e/b/a/b;->onInstallReferrerSetupFinished(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public c()Z
|
||||
.locals 2
|
||||
|
||||
iget v0, p0, Lf/e/b/a/a;->a:I
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
if-ne v0, v1, :cond_0
|
||||
|
||||
iget-object v0, p0, Lf/e/b/a/a;->c:Lf/h/a/d/a/a;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
iget-object v0, p0, Lf/e/b/a/a;->d:Landroid/content/ServiceConnection;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
return v0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
return v0
|
||||
.end method
|
11
com.discord/smali/f/e/b/a/b.smali
Normal file
11
com.discord/smali/f/e/b/a/b.smali
Normal file
|
@ -0,0 +1,11 @@
|
|||
.class public interface abstract Lf/e/b/a/b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "InstallReferrerStateListener.java"
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract onInstallReferrerServiceDisconnected()V
|
||||
.end method
|
||||
|
||||
.method public abstract onInstallReferrerSetupFinished(I)V
|
||||
.end method
|
19
com.discord/smali/f/e/b/a/c.smali
Normal file
19
com.discord/smali/f/e/b/a/c.smali
Normal file
|
@ -0,0 +1,19 @@
|
|||
.class public Lf/e/b/a/c;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ReferrerDetails.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Landroid/os/Bundle;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroid/os/Bundle;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lf/e/b/a/c;->a:Landroid/os/Bundle;
|
||||
|
||||
return-void
|
||||
.end method
|
Loading…
Add table
Add a link
Reference in a new issue