SafeUpdateReceiver.smali
.class public Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;
.super Landroid/content/BroadcastReceiver;
.source "SafeUpdateReceiver.java"
# static fields
.field private static a:Z
.field private static b:J
.field private static c:I
# direct methods
.method static constructor <clinit>()V
.registers 2
.prologue
.line 42
const-wide/32 v0, 0x927c0
sput-wide v0, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;->b:J
.line 43
const/4 v0, 0x3
sput v0, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;->c:I
.line 45
return-void
.end method
.method public constructor <init>()V
.registers 1
.prologue
.line 28
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
return-void
.end method
.method private a(Landroid/content/Context;Landroid/content/Intent;)V
.registers 10
.prologue
const/4 v6, 0x1
const/4 v2, 0x0
.line 64
sget v3, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;->c:I
move v1, v2
.line 65
:goto_5
if-ge v1, v3, :cond_11
.line 66
invoke-static {p1}, Ldxoptimizer/ue;->a(Landroid/content/Context;)Ldxoptimizer/ue;
move-result-object v0
invoke-virtual {v0}, Ldxoptimizer/ue;->f()Ldxoptimizer/ud;
move-result-object v0
.line 67
if-nez v0, :cond_12
.line 105
:cond_11
:goto_11
return-void
.line 69
:cond_12
invoke-static {p1, v2}, Ldxoptimizer/cdt;->a(Landroid/content/Context;I)I
move-result v4
.line 72
iget v5, v0, Ldxoptimizer/ud;->c:I
if-ge v4, v5, :cond_11
.line 76
iget v0, v0, Ldxoptimizer/ud;->m:I
if-ne v0, v6, :cond_11
.line 78
invoke-static {}, Ldxoptimizer/cep;->a()Z
move-result v0
.line 80
if-eqz v0, :cond_11
.line 82
const-string v0, "extra-filename"
invoke-static {p2, v0}, Ldxoptimizer/cgc;->b(Landroid/content/Intent;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 83
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
if-nez v4, :cond_11
.line 84
new-instance v4, Ljava/io/File;
invoke-direct {v4, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v4}, Ljava/io/File;->exists()Z
move-result v4
.line 86
if-eqz v4, :cond_11
.line 88
invoke-direct {p0, p1}, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;->a(Landroid/content/Context;)Z
move-result v4
.line 90
if-nez v4, :cond_50
.line 91
const-string v1, "sau"
const-string v2, "nw_b_i"
.line 92
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
.line 91
invoke-static {v1, v2, v3}, Ldxoptimizer/cgh;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Number;)V
.line 93
invoke-static {v0}, Ldxoptimizer/cep;->e(Ljava/lang/String;)Z
goto :goto_11
.line 97
:cond_50
:try_start_50
sget-wide v4, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;->b:J
invoke-static {v4, v5}, Ljava/lang/Thread;->sleep(J)V
:try_end_55
.catch Ljava/lang/InterruptedException; {:try_start_50 .. :try_end_55} :catch_59
.line 65
:goto_55
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_5
.line 98
:catch_59
move-exception v0
.line 99
invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V
goto :goto_55
.end method
.method static synthetic a(Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;Landroid/content/Context;Landroid/content/Intent;)V
.registers 3
.prologue
.line 28
invoke-direct {p0, p1, p2}, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;->a(Landroid/content/Context;Landroid/content/Intent;)V
return-void
.end method
.method private a(Landroid/content/Context;)Z
.registers 6
.prologue
const/4 v1, 0x0
.line 108
const-string v0, "activity"
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/ActivityManager;
.line 111
invoke-static {v0}, Ldxoptimizer/cfb;->a(Landroid/app/ActivityManager;)Ljava/util/List;
move-result-object v0
.line 113
if-nez v0, :cond_11
move v0, v1
.line 120
:goto_10
return v0
.line 116
:cond_11
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_15
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2f
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/ActivityManager$RunningAppProcessInfo;
.line 117
if-eqz v0, :cond_15
const-string v3, "cn.opda.a.phonoalbumshoushou"
iget-object v0, v0, Landroid/app/ActivityManager$RunningAppProcessInfo;->processName:Ljava/lang/String;
invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_15
.line 118
const/4 v0, 0x1
goto :goto_10
:cond_2f
move v0, v1
.line 120
goto :goto_10
.end method
.method static synthetic a(Z)Z
.registers 1
.prologue
.line 28
sput-boolean p0, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;->a:Z
return p0
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.registers 5
.prologue
.line 49
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object v0
.line 51
sget-object v1, Ldxoptimizer/uc;->c:Ljava/lang/String;
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_20
sget-boolean v0, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;->a:Z
if-nez v0, :cond_20
.line 52
const/4 v0, 0x1
sput-boolean v0, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;->a:Z
.line 53
new-instance v0, Ljava/lang/Thread;
new-instance v1, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver$1;
invoke-direct {v1, p0, p1, p2}, Lcom/dianxinos/optimizer/update/SafeUpdateReceiver$1;-><init>(Lcom/dianxinos/optimizer/update/SafeUpdateReceiver;Landroid/content/Context;Landroid/content/Intent;)V
invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V
.line 59
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
.line 61
:cond_20
return-void
.end method