271 lines
6.3 KiB
Smali
271 lines
6.3 KiB
Smali
.class public abstract Lcom/google/firebase/iid/zzc;
|
|
.super Landroid/app/Service;
|
|
|
|
|
|
# instance fields
|
|
.field private final lock:Ljava/lang/Object;
|
|
|
|
.field final zzt:Ljava/util/concurrent/ExecutorService;
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private zzu:Landroid/os/Binder;
|
|
|
|
.field private zzv:I
|
|
|
|
.field private zzw:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 5
|
|
|
|
invoke-direct {p0}, Landroid/app/Service;-><init>()V
|
|
|
|
invoke-static {}, Lcom/google/android/gms/internal/e/a;->mx()Lcom/google/android/gms/internal/e/b;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/google/android/gms/common/util/a/a;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
const-string v4, "Firebase-"
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v2, Ljava/lang/String;
|
|
|
|
invoke-direct {v2, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
invoke-direct {v1, v2}, Lcom/google/android/gms/common/util/a/a;-><init>(Ljava/lang/String;)V
|
|
|
|
sget v2, Lcom/google/android/gms/internal/e/e;->aif:I
|
|
|
|
invoke-interface {v0, v1}, Lcom/google/android/gms/internal/e/b;->a(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/iid/zzc;->zzt:Ljava/util/concurrent/ExecutorService;
|
|
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/iid/zzc;->lock:Ljava/lang/Object;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/google/firebase/iid/zzc;->zzw:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final zza(Landroid/content/Intent;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-static {p1}, Landroidx/legacy/content/WakefulBroadcastReceiver;->completeWakefulIntent(Landroid/content/Intent;)Z
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/google/firebase/iid/zzc;->lock:Ljava/lang/Object;
|
|
|
|
monitor-enter p1
|
|
|
|
:try_start_0
|
|
iget v0, p0, Lcom/google/firebase/iid/zzc;->zzw:I
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
iput v0, p0, Lcom/google/firebase/iid/zzc;->zzw:I
|
|
|
|
iget v0, p0, Lcom/google/firebase/iid/zzc;->zzw:I
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget v0, p0, Lcom/google/firebase/iid/zzc;->zzv:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/firebase/iid/zzc;->stopSelfResult(I)Z
|
|
|
|
:cond_1
|
|
monitor-exit p1
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method static synthetic zza(Lcom/google/firebase/iid/zzc;Landroid/content/Intent;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/firebase/iid/zzc;->zza(Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final declared-synchronized onBind(Landroid/content/Intent;)Landroid/os/IBinder;
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
const-string p1, "EnhancedIntentService"
|
|
|
|
const/4 v0, 0x3
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-string p1, "EnhancedIntentService"
|
|
|
|
const-string v0, "Service received bind request"
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/google/firebase/iid/zzc;->zzu:Landroid/os/Binder;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
new-instance p1, Lcom/google/firebase/iid/ah;
|
|
|
|
invoke-direct {p1, p0}, Lcom/google/firebase/iid/ah;-><init>(Lcom/google/firebase/iid/zzc;)V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/iid/zzc;->zzu:Landroid/os/Binder;
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Lcom/google/firebase/iid/zzc;->zzu:Landroid/os/Binder;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final onStartCommand(Landroid/content/Intent;II)I
|
|
.locals 1
|
|
|
|
iget-object p2, p0, Lcom/google/firebase/iid/zzc;->lock:Ljava/lang/Object;
|
|
|
|
monitor-enter p2
|
|
|
|
:try_start_0
|
|
iput p3, p0, Lcom/google/firebase/iid/zzc;->zzv:I
|
|
|
|
iget p3, p0, Lcom/google/firebase/iid/zzc;->zzw:I
|
|
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
iput p3, p0, Lcom/google/firebase/iid/zzc;->zzw:I
|
|
|
|
monitor-exit p2
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/firebase/iid/zzc;->zzb(Landroid/content/Intent;)Landroid/content/Intent;
|
|
|
|
move-result-object p2
|
|
|
|
const/4 p3, 0x2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/firebase/iid/zzc;->zza(Landroid/content/Intent;)V
|
|
|
|
return p3
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p2}, Lcom/google/firebase/iid/zzc;->zzc(Landroid/content/Intent;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/firebase/iid/zzc;->zza(Landroid/content/Intent;)V
|
|
|
|
return p3
|
|
|
|
:cond_1
|
|
iget-object p3, p0, Lcom/google/firebase/iid/zzc;->zzt:Ljava/util/concurrent/ExecutorService;
|
|
|
|
new-instance v0, Lcom/google/firebase/iid/ac;
|
|
|
|
invoke-direct {v0, p0, p2, p1}, Lcom/google/firebase/iid/ac;-><init>(Lcom/google/firebase/iid/zzc;Landroid/content/Intent;Landroid/content/Intent;)V
|
|
|
|
invoke-interface {p3, v0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
|
|
|
|
const/4 p1, 0x3
|
|
|
|
return p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
:try_start_1
|
|
monitor-exit p2
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method protected zzb(Landroid/content/Intent;)Landroid/content/Intent;
|
|
.locals 0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public zzc(Landroid/content/Intent;)Z
|
|
.locals 0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public abstract zzd(Landroid/content/Intent;)V
|
|
.end method
|