1749 lines
42 KiB
Smali
1749 lines
42 KiB
Smali
.class public final Lcom/facebook/internal/NativeProtocol;
|
|
.super Ljava/lang/Object;
|
|
.source "NativeProtocol.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/facebook/internal/NativeProtocol$f;,
|
|
Lcom/facebook/internal/NativeProtocol$a;,
|
|
Lcom/facebook/internal/NativeProtocol$b;,
|
|
Lcom/facebook/internal/NativeProtocol$g;,
|
|
Lcom/facebook/internal/NativeProtocol$d;,
|
|
Lcom/facebook/internal/NativeProtocol$c;,
|
|
Lcom/facebook/internal/NativeProtocol$e;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final a:Ljava/lang/String; = "com.facebook.internal.n"
|
|
|
|
.field private static final b:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/facebook/internal/NativeProtocol$e;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final c:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/facebook/internal/NativeProtocol$e;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final d:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/List<",
|
|
"Lcom/facebook/internal/NativeProtocol$e;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final e:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field private static final f:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
.line 364
|
|
invoke-static {}, Lcom/facebook/internal/NativeProtocol;->e()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/facebook/internal/NativeProtocol;->b:Ljava/util/List;
|
|
|
|
.line 366
|
|
invoke-static {}, Lcom/facebook/internal/NativeProtocol;->f()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/facebook/internal/NativeProtocol;->c:Ljava/util/List;
|
|
|
|
.line 368
|
|
invoke-static {}, Lcom/facebook/internal/NativeProtocol;->g()Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/facebook/internal/NativeProtocol;->d:Ljava/util/Map;
|
|
|
|
.line 369
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
sput-object v0, Lcom/facebook/internal/NativeProtocol;->e:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/16 v0, 0xd
|
|
|
|
.line 579
|
|
new-array v0, v0, [Ljava/lang/Integer;
|
|
|
|
const v2, 0x133c6b1
|
|
|
|
.line 581
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const v1, 0x1339f47
|
|
|
|
.line 582
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x13354a2
|
|
|
|
.line 583
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x1335433
|
|
|
|
.line 584
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x3
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x13353e4
|
|
|
|
.line 585
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x4
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x13353c9
|
|
|
|
.line 586
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x5
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x133529d
|
|
|
|
.line 587
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x6
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x1335124
|
|
|
|
.line 588
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x7
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x13350ac
|
|
|
|
.line 589
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v2, 0x8
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x1332d23
|
|
|
|
.line 590
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v2, 0x9
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x1332b3a
|
|
|
|
.line 591
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v2, 0xa
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x1332ac6
|
|
|
|
.line 592
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v2, 0xb
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const v1, 0x133060d
|
|
|
|
.line 593
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v2, 0xc
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
.line 580
|
|
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/facebook/internal/NativeProtocol;->f:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 57
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a()I
|
|
.locals 2
|
|
|
|
.line 575
|
|
sget-object v0, Lcom/facebook/internal/NativeProtocol;->f:Ljava/util/List;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Intent;)I
|
|
.locals 2
|
|
|
|
const-string v0, "com.facebook.platform.protocol.PROTOCOL_VERSION"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 713
|
|
invoke-virtual {p0, v0, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/util/TreeSet;I[I)I
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/TreeSet<",
|
|
"Ljava/lang/Integer;",
|
|
">;I[I)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 950
|
|
array-length v0, p2
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
.line 952
|
|
invoke-virtual {p0}, Ljava/util/TreeSet;->descendingIterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
move v2, v0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 955
|
|
:cond_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 956
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v3
|
|
|
|
.line 959
|
|
invoke-static {v0, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
if-ltz v2, :cond_1
|
|
|
|
.line 962
|
|
aget v4, p2, v2
|
|
|
|
if-le v4, v3, :cond_1
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-gez v2, :cond_2
|
|
|
|
return v1
|
|
|
|
.line 975
|
|
:cond_2
|
|
aget v4, p2, v2
|
|
|
|
if-ne v4, v3, :cond_0
|
|
|
|
.line 977
|
|
rem-int/lit8 v2, v2, 0x2
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
.line 979
|
|
invoke-static {v0, p1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v1
|
|
|
|
:cond_3
|
|
return v1
|
|
|
|
:cond_4
|
|
return v1
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;)Landroid/content/Intent;
|
|
.locals 4
|
|
|
|
.line 700
|
|
sget-object v0, Lcom/facebook/internal/NativeProtocol;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/facebook/internal/NativeProtocol$e;
|
|
|
|
.line 701
|
|
new-instance v2, Landroid/content/Intent;
|
|
|
|
const-string v3, "com.facebook.platform.PLATFORM_SERVICE"
|
|
|
|
invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 702
|
|
invoke-virtual {v1}, Lcom/facebook/internal/NativeProtocol$e;->a()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "android.intent.category.DEFAULT"
|
|
|
|
.line 703
|
|
invoke-virtual {v2, v3}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object v2
|
|
|
|
.line 704
|
|
invoke-static {p0, v2, v1}, Lcom/facebook/internal/NativeProtocol;->b(Landroid/content/Context;Landroid/content/Intent;Lcom/facebook/internal/NativeProtocol$e;)Landroid/content/Intent;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static a(Landroid/content/Context;Landroid/content/Intent;Lcom/facebook/internal/NativeProtocol$e;)Landroid/content/Intent;
|
|
.locals 2
|
|
|
|
const/4 p2, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-object p2
|
|
|
|
.line 415
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, p1, v1}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return-object p2
|
|
|
|
.line 420
|
|
:cond_1
|
|
iget-object v0, v0, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
|
|
|
|
iget-object v0, v0, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;
|
|
|
|
invoke-static {p0, v0}, Lcom/facebook/internal/FacebookSignatureValidator;->a(Landroid/content/Context;Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_2
|
|
|
|
return-object p2
|
|
|
|
:cond_2
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/Collection<",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Ljava/lang/String;",
|
|
"ZZ",
|
|
"Lcom/facebook/login/DefaultAudience;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Landroid/content/Intent;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 459
|
|
new-instance v9, Lcom/facebook/internal/NativeProtocol$b;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {v9, v0}, Lcom/facebook/internal/NativeProtocol$b;-><init>(Lcom/facebook/internal/NativeProtocol$1;)V
|
|
|
|
move-object v0, v9
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move-object v3, p3
|
|
|
|
move v4, p4
|
|
|
|
move v5, p5
|
|
|
|
move-object/from16 v6, p6
|
|
|
|
move-object/from16 v7, p7
|
|
|
|
move-object/from16 v8, p8
|
|
|
|
.line 460
|
|
invoke-static/range {v0 .. v8}, Lcom/facebook/internal/NativeProtocol;->a(Lcom/facebook/internal/NativeProtocol$e;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v1, p0
|
|
|
|
.line 470
|
|
invoke-static {v1, v0, v9}, Lcom/facebook/internal/NativeProtocol;->a(Landroid/content/Context;Landroid/content/Intent;Lcom/facebook/internal/NativeProtocol$e;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Intent;Landroid/os/Bundle;Lcom/facebook/FacebookException;)Landroid/content/Intent;
|
|
.locals 3
|
|
|
|
.line 676
|
|
invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->b(Landroid/content/Intent;)Ljava/util/UUID;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 681
|
|
:cond_0
|
|
new-instance v1, Landroid/content/Intent;
|
|
|
|
invoke-direct {v1}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.facebook.platform.protocol.PROTOCOL_VERSION"
|
|
|
|
.line 682
|
|
invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->a(Landroid/content/Intent;)I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {v1, v2, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
.line 684
|
|
new-instance p0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {p0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v2, "action_id"
|
|
|
|
.line 685
|
|
invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v2, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
const-string v0, "error"
|
|
|
|
.line 688
|
|
invoke-static {p2}, Lcom/facebook/internal/NativeProtocol;->a(Lcom/facebook/FacebookException;)Landroid/os/Bundle;
|
|
|
|
move-result-object p2
|
|
|
|
.line 687
|
|
invoke-virtual {p0, v0, p2}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
:cond_1
|
|
const-string p2, "com.facebook.platform.protocol.BRIDGE_ARGS"
|
|
|
|
.line 690
|
|
invoke-virtual {v1, p2, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
const-string p0, "com.facebook.platform.protocol.RESULT_ARGS"
|
|
|
|
.line 693
|
|
invoke-virtual {v1, p0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
|
|
|
|
:cond_2
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private static a(Lcom/facebook/internal/NativeProtocol$e;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/internal/NativeProtocol$e;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/Collection<",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Ljava/lang/String;",
|
|
"ZZ",
|
|
"Lcom/facebook/login/DefaultAudience;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Landroid/content/Intent;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 486
|
|
invoke-virtual {p0}, Lcom/facebook/internal/NativeProtocol$e;->b()Ljava/lang/String;
|
|
|
|
move-result-object p4
|
|
|
|
if-nez p4, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 492
|
|
:cond_0
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
.line 493
|
|
invoke-virtual {p0}, Lcom/facebook/internal/NativeProtocol$e;->a()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0, p4}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p4, "client_id"
|
|
|
|
.line 494
|
|
invoke-virtual {p0, p4, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "facebook_sdk_version"
|
|
|
|
.line 496
|
|
invoke-static {}, Lcom/facebook/FacebookSdk;->h()Ljava/lang/String;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p0, p1, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 498
|
|
invoke-static {p2}, Lcom/facebook/internal/Utility;->a(Ljava/util/Collection;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
const-string p1, "scope"
|
|
|
|
const-string p4, ","
|
|
|
|
.line 500
|
|
invoke-static {p4, p2}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
.line 499
|
|
invoke-virtual {p0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 502
|
|
:cond_1
|
|
invoke-static {p3}, Lcom/facebook/internal/Utility;->a(Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
const-string p1, "e2e"
|
|
|
|
.line 503
|
|
invoke-virtual {p0, p1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
:cond_2
|
|
const-string p1, "state"
|
|
|
|
.line 506
|
|
invoke-virtual {p0, p1, p7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p1, "response_type"
|
|
|
|
const-string p2, "token,signed_request"
|
|
|
|
.line 507
|
|
invoke-virtual {p0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p1, "return_scopes"
|
|
|
|
const-string p2, "true"
|
|
|
|
.line 510
|
|
invoke-virtual {p0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
if-eqz p5, :cond_3
|
|
|
|
const-string p1, "default_audience"
|
|
|
|
.line 516
|
|
invoke-virtual {p6}, Lcom/facebook/login/DefaultAudience;->a()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
.line 514
|
|
invoke-virtual {p0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
:cond_3
|
|
const-string p1, "legacy_override"
|
|
|
|
.line 522
|
|
invoke-static {}, Lcom/facebook/FacebookSdk;->g()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
.line 520
|
|
invoke-virtual {p0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p1, "auth_type"
|
|
|
|
.line 524
|
|
invoke-virtual {p0, p1, p8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static a(Lcom/facebook/FacebookException;)Landroid/os/Bundle;
|
|
.locals 3
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 819
|
|
:cond_0
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v1, "error_description"
|
|
|
|
.line 820
|
|
invoke-virtual {p0}, Lcom/facebook/FacebookException;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 821
|
|
instance-of p0, p0, Lcom/facebook/FacebookOperationCanceledException;
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
const-string p0, "error_type"
|
|
|
|
const-string v1, "UserCanceled"
|
|
|
|
.line 822
|
|
invoke-virtual {v0, p0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static a(Landroid/os/Bundle;)Lcom/facebook/FacebookException;
|
|
.locals 2
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string v0, "error_type"
|
|
|
|
.line 796
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-string v0, "com.facebook.platform.status.ERROR_TYPE"
|
|
|
|
.line 798
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_1
|
|
const-string v1, "error_description"
|
|
|
|
.line 801
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
const-string v1, "com.facebook.platform.status.ERROR_DESCRIPTION"
|
|
|
|
.line 803
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_2
|
|
if-eqz v0, :cond_3
|
|
|
|
const-string p0, "UserCanceled"
|
|
|
|
.line 806
|
|
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
.line 807
|
|
new-instance p0, Lcom/facebook/FacebookOperationCanceledException;
|
|
|
|
invoke-direct {p0, v1}, Lcom/facebook/FacebookOperationCanceledException;-><init>(Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
|
|
.line 811
|
|
:cond_3
|
|
new-instance p0, Lcom/facebook/FacebookException;
|
|
|
|
invoke-direct {p0, v1}, Lcom/facebook/FacebookException;-><init>(Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static a(Ljava/util/List;[I)Lcom/facebook/internal/NativeProtocol$f;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/facebook/internal/NativeProtocol$e;",
|
|
">;[I)",
|
|
"Lcom/facebook/internal/NativeProtocol$f;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 845
|
|
invoke-static {}, Lcom/facebook/internal/NativeProtocol;->b()V
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
.line 848
|
|
invoke-static {}, Lcom/facebook/internal/NativeProtocol$f;->a()Lcom/facebook/internal/NativeProtocol$f;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 852
|
|
:cond_0
|
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_1
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/facebook/internal/NativeProtocol$e;
|
|
|
|
.line 855
|
|
invoke-virtual {v0}, Lcom/facebook/internal/NativeProtocol$e;->c()Ljava/util/TreeSet;
|
|
|
|
move-result-object v1
|
|
|
|
.line 856
|
|
invoke-static {}, Lcom/facebook/internal/NativeProtocol;->a()I
|
|
|
|
move-result v2
|
|
|
|
.line 854
|
|
invoke-static {v1, v2, p1}, Lcom/facebook/internal/NativeProtocol;->a(Ljava/util/TreeSet;I[I)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
.line 860
|
|
invoke-static {v0, v1}, Lcom/facebook/internal/NativeProtocol$f;->a(Lcom/facebook/internal/NativeProtocol$e;I)Lcom/facebook/internal/NativeProtocol$f;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 864
|
|
:cond_2
|
|
invoke-static {}, Lcom/facebook/internal/NativeProtocol$f;->a()Lcom/facebook/internal/NativeProtocol$f;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/facebook/internal/NativeProtocol$e;)Ljava/util/TreeSet;
|
|
.locals 0
|
|
|
|
.line 57
|
|
invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->b(Lcom/facebook/internal/NativeProtocol$e;)Ljava/util/TreeSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static a(I)Z
|
|
.locals 2
|
|
|
|
.line 596
|
|
sget-object v0, Lcom/facebook/internal/NativeProtocol;->f:Ljava/util/List;
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const v0, 0x133529d
|
|
|
|
if-lt p0, v0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static b(I)I
|
|
.locals 3
|
|
|
|
.line 830
|
|
sget-object v0, Lcom/facebook/internal/NativeProtocol;->b:Ljava/util/List;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-array v1, v1, [I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput p0, v1, v2
|
|
|
|
invoke-static {v0, v1}, Lcom/facebook/internal/NativeProtocol;->a(Ljava/util/List;[I)Lcom/facebook/internal/NativeProtocol$f;
|
|
|
|
move-result-object p0
|
|
|
|
.line 831
|
|
invoke-virtual {p0}, Lcom/facebook/internal/NativeProtocol$f;->b()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static b(Landroid/content/Context;Landroid/content/Intent;Lcom/facebook/internal/NativeProtocol$e;)Landroid/content/Intent;
|
|
.locals 2
|
|
|
|
const/4 p2, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-object p2
|
|
|
|
.line 434
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, p1, v1}, Landroid/content/pm/PackageManager;->resolveService(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return-object p2
|
|
|
|
.line 439
|
|
:cond_1
|
|
iget-object v0, v0, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;
|
|
|
|
iget-object v0, v0, Landroid/content/pm/ServiceInfo;->packageName:Ljava/lang/String;
|
|
|
|
invoke-static {p0, v0}, Lcom/facebook/internal/FacebookSignatureValidator;->a(Landroid/content/Context;Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_2
|
|
|
|
return-object p2
|
|
|
|
:cond_2
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static b(Landroid/content/Context;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
.locals 11
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/Collection<",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Ljava/lang/String;",
|
|
"ZZ",
|
|
"Lcom/facebook/login/DefaultAudience;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Landroid/content/Intent;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 540
|
|
sget-object v0, Lcom/facebook/internal/NativeProtocol;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/facebook/internal/NativeProtocol$e;
|
|
|
|
move-object v2, v1
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v5, p3
|
|
|
|
move v6, p4
|
|
|
|
move/from16 v7, p5
|
|
|
|
move-object/from16 v8, p6
|
|
|
|
move-object/from16 v9, p7
|
|
|
|
move-object/from16 v10, p8
|
|
|
|
.line 541
|
|
invoke-static/range {v2 .. v10}, Lcom/facebook/internal/NativeProtocol;->a(Lcom/facebook/internal/NativeProtocol$e;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object v2
|
|
|
|
move-object v3, p0
|
|
|
|
.line 551
|
|
invoke-static {v3, v2, v1}, Lcom/facebook/internal/NativeProtocol;->a(Landroid/content/Context;Landroid/content/Intent;Lcom/facebook/internal/NativeProtocol$e;)Landroid/content/Intent;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static b(Lcom/facebook/internal/NativeProtocol$e;)Ljava/util/TreeSet;
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/internal/NativeProtocol$e;",
|
|
")",
|
|
"Ljava/util/TreeSet<",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 888
|
|
new-instance v0, Ljava/util/TreeSet;
|
|
|
|
invoke-direct {v0}, Ljava/util/TreeSet;-><init>()V
|
|
|
|
.line 890
|
|
invoke-static {}, Lcom/facebook/FacebookSdk;->f()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
.line 891
|
|
invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v1, "version"
|
|
|
|
.line 893
|
|
filled-new-array {v1}, [Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
.line 894
|
|
invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->c(Lcom/facebook/internal/NativeProtocol$e;)Landroid/net/Uri;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 900
|
|
:try_start_0
|
|
invoke-static {}, Lcom/facebook/FacebookSdk;->f()Landroid/content/Context;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v5
|
|
|
|
.line 901
|
|
new-instance v6, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/internal/NativeProtocol$e;->a()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v6, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, ".provider.PlatformProvider"
|
|
|
|
invoke-virtual {v6, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
.line 904
|
|
:try_start_1
|
|
invoke-virtual {v5, p0, v6}, Landroid/content/pm/PackageManager;->resolveContentProvider(Ljava/lang/String;I)Landroid/content/pm/ProviderInfo;
|
|
|
|
move-result-object p0
|
|
:try_end_1
|
|
.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 910
|
|
:try_start_2
|
|
sget-object v5, Lcom/facebook/internal/NativeProtocol;->a:Ljava/lang/String;
|
|
|
|
const-string v6, "Failed to query content resolver."
|
|
|
|
invoke-static {v5, v6, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
move-object p0, v1
|
|
|
|
:goto_0
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
.line 914
|
|
:try_start_3
|
|
invoke-virtual/range {v2 .. v7}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
|
|
|
|
move-result-object p0
|
|
:try_end_3
|
|
.catch Ljava/lang/NullPointerException; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catch Ljava/lang/SecurityException; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
move-object v1, p0
|
|
|
|
goto :goto_1
|
|
|
|
.line 916
|
|
:catch_1
|
|
:try_start_4
|
|
sget-object p0, Lcom/facebook/internal/NativeProtocol;->a:Ljava/lang/String;
|
|
|
|
const-string v2, "Failed to query content resolver."
|
|
|
|
invoke-static {p0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:goto_1
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 928
|
|
:goto_2
|
|
invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const-string p0, "version"
|
|
|
|
.line 929
|
|
invoke-interface {v1, p0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
invoke-interface {v1, p0}, Landroid/database/Cursor;->getInt(I)I
|
|
|
|
move-result p0
|
|
|
|
.line 930
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Ljava/util/TreeSet;->add(Ljava/lang/Object;)Z
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 936
|
|
invoke-interface {v1}, Landroid/database/Cursor;->close()V
|
|
|
|
:cond_1
|
|
return-object v0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {v1}, Landroid/database/Cursor;->close()V
|
|
|
|
.line 938
|
|
:cond_2
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static b(Landroid/content/Intent;)Ljava/util/UUID;
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 720
|
|
:cond_0
|
|
invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->a(Landroid/content/Intent;)I
|
|
|
|
move-result v1
|
|
|
|
.line 722
|
|
invoke-static {v1}, Lcom/facebook/internal/NativeProtocol;->a(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const-string v1, "com.facebook.platform.protocol.BRIDGE_ARGS"
|
|
|
|
.line 723
|
|
invoke-virtual {p0, v1}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
const-string v1, "action_id"
|
|
|
|
.line 725
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object p0, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const-string v1, "com.facebook.platform.protocol.CALL_ID"
|
|
|
|
.line 728
|
|
invoke-virtual {p0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
if-eqz p0, :cond_3
|
|
|
|
.line 734
|
|
:try_start_0
|
|
invoke-static {p0}, Ljava/util/UUID;->fromString(Ljava/lang/String;)Ljava/util/UUID;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
:cond_3
|
|
move-object p0, v0
|
|
|
|
:goto_1
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static b()V
|
|
.locals 3
|
|
|
|
.line 868
|
|
sget-object v0, Lcom/facebook/internal/NativeProtocol;->e:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 872
|
|
:cond_0
|
|
invoke-static {}, Lcom/facebook/FacebookSdk;->d()Ljava/util/concurrent/Executor;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/facebook/internal/NativeProtocol$1;
|
|
|
|
invoke-direct {v1}, Lcom/facebook/internal/NativeProtocol$1;-><init>()V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static c(Lcom/facebook/internal/NativeProtocol$e;)Landroid/net/Uri;
|
|
.locals 2
|
|
|
|
.line 989
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "content://"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/internal/NativeProtocol$e;->a()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, ".provider.PlatformProvider/versions"
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static c(Landroid/content/Intent;)Landroid/os/Bundle;
|
|
.locals 1
|
|
|
|
.line 742
|
|
invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->a(Landroid/content/Intent;)I
|
|
|
|
move-result v0
|
|
|
|
.line 743
|
|
invoke-static {v0}, Lcom/facebook/internal/NativeProtocol;->a(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string v0, "com.facebook.platform.protocol.BRIDGE_ARGS"
|
|
|
|
.line 747
|
|
invoke-virtual {p0, v0}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic c()Ljava/util/List;
|
|
.locals 1
|
|
|
|
.line 57
|
|
sget-object v0, Lcom/facebook/internal/NativeProtocol;->b:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static d(Landroid/content/Intent;)Landroid/os/Bundle;
|
|
.locals 1
|
|
|
|
.line 751
|
|
invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->a(Landroid/content/Intent;)I
|
|
|
|
move-result v0
|
|
|
|
.line 752
|
|
invoke-static {v0}, Lcom/facebook/internal/NativeProtocol;->a(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 753
|
|
invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string v0, "com.facebook.platform.protocol.METHOD_ARGS"
|
|
|
|
.line 756
|
|
invoke-virtual {p0, v0}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic d()Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
.locals 1
|
|
|
|
.line 57
|
|
sget-object v0, Lcom/facebook/internal/NativeProtocol;->e:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static e()Ljava/util/List;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lcom/facebook/internal/NativeProtocol$e;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 372
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 376
|
|
new-instance v1, Lcom/facebook/internal/NativeProtocol$c;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v1, v2}, Lcom/facebook/internal/NativeProtocol$c;-><init>(Lcom/facebook/internal/NativeProtocol$1;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 377
|
|
new-instance v1, Lcom/facebook/internal/NativeProtocol$g;
|
|
|
|
invoke-direct {v1, v2}, Lcom/facebook/internal/NativeProtocol$g;-><init>(Lcom/facebook/internal/NativeProtocol$1;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static e(Landroid/content/Intent;)Z
|
|
.locals 1
|
|
|
|
.line 770
|
|
invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->c(Landroid/content/Intent;)Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string p0, "error"
|
|
|
|
.line 772
|
|
invoke-virtual {v0, p0}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const-string v0, "com.facebook.platform.status.ERROR_TYPE"
|
|
|
|
.line 774
|
|
invoke-virtual {p0, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private static f()Ljava/util/List;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lcom/facebook/internal/NativeProtocol$e;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 383
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-static {}, Lcom/facebook/internal/NativeProtocol;->e()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
.line 386
|
|
new-instance v1, Lcom/facebook/internal/NativeProtocol$a;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v1, v2}, Lcom/facebook/internal/NativeProtocol$a;-><init>(Lcom/facebook/internal/NativeProtocol$1;)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-interface {v0, v2, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static g()Ljava/util/Map;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/List<",
|
|
"Lcom/facebook/internal/NativeProtocol$e;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 392
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
.line 394
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 395
|
|
new-instance v2, Lcom/facebook/internal/NativeProtocol$d;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-direct {v2, v3}, Lcom/facebook/internal/NativeProtocol$d;-><init>(Lcom/facebook/internal/NativeProtocol$1;)V
|
|
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
const-string v2, "com.facebook.platform.action.request.OGACTIONPUBLISH_DIALOG"
|
|
|
|
.line 398
|
|
sget-object v3, Lcom/facebook/internal/NativeProtocol;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v2, "com.facebook.platform.action.request.FEED_DIALOG"
|
|
|
|
.line 399
|
|
sget-object v3, Lcom/facebook/internal/NativeProtocol;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v2, "com.facebook.platform.action.request.LIKE_DIALOG"
|
|
|
|
.line 400
|
|
sget-object v3, Lcom/facebook/internal/NativeProtocol;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v2, "com.facebook.platform.action.request.APPINVITES_DIALOG"
|
|
|
|
.line 401
|
|
sget-object v3, Lcom/facebook/internal/NativeProtocol;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v2, "com.facebook.platform.action.request.MESSAGE_DIALOG"
|
|
|
|
.line 402
|
|
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v2, "com.facebook.platform.action.request.OGMESSAGEPUBLISH_DIALOG"
|
|
|
|
.line 403
|
|
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v1, "com.facebook.platform.action.request.CAMERA_EFFECT"
|
|
|
|
.line 404
|
|
sget-object v2, Lcom/facebook/internal/NativeProtocol;->c:Ljava/util/List;
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v1, "com.facebook.platform.action.request.SHARE_STORY"
|
|
|
|
.line 405
|
|
sget-object v2, Lcom/facebook/internal/NativeProtocol;->b:Ljava/util/List;
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
.end method
|