granularity level: instruction
.class public final synthetic Lh1/v;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Ljava/lang/Runnable;
.field public final synthetic a:Landroid/content/Context;
.field public final synthetic b:Z
.field public final synthetic c:Lo0/i;
.method public synthetic constructor <init>(Landroid/content/Context;ZLo0/i;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lh1/v;->a:Landroid/content/Context;
iput-boolean p2, p0, Lh1/v;->b:Z
iput-object p3, p0, Lh1/v;->c:Lo0/i;
return-void
.end method
.method public final run()V
.locals 8
iget-object v0, p0, Lh1/v;->a:Landroid/content/Context;
iget-boolean v1, p0, Lh1/v;->b:Z
iget-object v2, p0, Lh1/v;->c:Lo0/i;
const/4 v3, 0x0
:try_start_0
invoke-static {}, Landroid/os/Binder;->getCallingUid()I
move-result v4
invoke-virtual {v0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object v5
iget v5, v5, Landroid/content/pm/ApplicationInfo;->uid:I
const/4 v6, 0x0
const/4 v7, 0x1
if-ne v4, v5, :cond_0
const/4 v4, 0x1
goto :goto_0
:cond_0
const/4 v4, 0x0
:goto_0
if-nez v4, :cond_1
const-string v1, "FirebaseMessaging"
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "error configuring notification delegate for package "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v0
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_1
:cond_1
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v4
if-nez v4, :cond_2
move-object v4, v0
:cond_2
const-string v5, "com.google.firebase.messaging"
invoke-virtual {v4, v5, v6}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v4
invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v4
const-string v5, "proxy_notification_initialized"
invoke-interface {v4, v5, v7}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->apply()V
const-class v4, Landroid/app/NotificationManager;
invoke-static {v0, v4}, Lf/e;->a(Landroid/content/Context;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/NotificationManager;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const-string v4, "com.google.android.gms"
if-eqz v1, :cond_3
:try_start_1
invoke-static {v0}, Lc/f;->e(Landroid/app/NotificationManager;)V
goto :goto_1
:cond_3
invoke-static {v0}, Lc/f;->a(Landroid/app/NotificationManager;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_4
invoke-static {v0}, Lc/f;->f(Landroid/app/NotificationManager;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_1
:cond_4
invoke-virtual {v2, v3}, Lo0/i;->c(Ljava/lang/Object;)V
return-void
:catchall_0
move-exception v0
invoke-virtual {v2, v3}, Lo0/i;->c(Ljava/lang/Object;)V
throw v0
.end method