beu.smali
.class public Ldxoptimizer/beu;
.super Ljava/lang/Object;
.source "IconChangeUtils.java"
# static fields
.field private static final a:[I
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 54
const/4 v0, 0x2
new-array v0, v0, [I
fill-array-data v0, :array_a
sput-object v0, Ldxoptimizer/beu;->a:[I
return-void
nop
:array_a
.array-data 4
0x2
0x6
.end array-data
.end method
.method public static a(Landroid/content/Context;)V
.registers 3
.prologue
.line 58
invoke-static {}, Ldxoptimizer/cbr;->a()Ldxoptimizer/cbr;
move-result-object v0
new-instance v1, Ldxoptimizer/bet;
invoke-direct {v1, p0}, Ldxoptimizer/bet;-><init>(Landroid/content/Context;)V
invoke-virtual {v0, v1}, Ldxoptimizer/cbr;->a(Ldxoptimizer/cbr$a;)V
.line 59
return-void
.end method
.method public static a(Landroid/content/Context;Lcom/dianxinos/optimizer/server/RecommendInfo;)V
.registers 16
.prologue
const-wide/32 v12, 0x36ee80
const/4 v10, 0x1
.line 282
if-nez p1, :cond_7
.line 348
:cond_6
:goto_6
return-void
.line 285
:cond_7
iget-object v0, p1, Lcom/dianxinos/optimizer/server/RecommendInfo;->content:Ljava/lang/String;
.line 286
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_6
.line 290
:try_start_f
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
.line 291
const-string v0, "icon_change_start_time"
invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
move-result v0
.line 292
invoke-static {p0}, Ldxoptimizer/ber;->e(Landroid/content/Context;)I
move-result v2
int-to-long v2, v2
.line 293
const-string v4, "icon_change_end_time"
invoke-virtual {v1, v4}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
move-result v4
.line 294
invoke-static {p0}, Ldxoptimizer/ber;->f(Landroid/content/Context;)I
move-result v5
int-to-long v6, v5
.line 295
int-to-long v8, v0
cmp-long v2, v2, v8
if-nez v2, :cond_34
int-to-long v2, v4
cmp-long v2, v6, v2
if-eqz v2, :cond_6
.line 298
:cond_34
invoke-static {p0, v0}, Ldxoptimizer/ber;->a(Landroid/content/Context;I)V
.line 299
invoke-static {p0, v4}, Ldxoptimizer/ber;->b(Landroid/content/Context;I)V
.line 300
invoke-static {p0}, Ldxoptimizer/ber;->d(Landroid/content/Context;)Z
move-result v2
if-nez v2, :cond_9d
.line 301
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ldxoptimizer/bew;->a(Ljava/lang/String;)J
move-result-wide v2
sget-object v0, Ldxoptimizer/beu;->a:[I
const/4 v4, 0x0
aget v0, v0, v4
int-to-long v4, v0
mul-long/2addr v4, v12
add-long/2addr v2, v4
.line 303
invoke-static {p0, v2, v3}, Ldxoptimizer/bes;->a(Landroid/content/Context;J)V
.line 304
const-string v0, "icon_badge"
const-string v2, "ic_cmgs"
const/4 v3, 0x1
.line 306
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
.line 304
invoke-static {v0, v2, v3}, Ldxoptimizer/cgh;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Number;)V
.line 322
:goto_5f
const-string v0, "icon_change_restart_launcher"
invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getBoolean(Ljava/lang/String;)Z
move-result v0
.line 323
invoke-static {p0, v0}, Ldxoptimizer/ber;->f(Landroid/content/Context;Z)V
.line 324
const-string v0, "icon_change_has_target_intent"
invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getBoolean(Ljava/lang/String;)Z
move-result v0
.line 325
if-eqz v0, :cond_6
.line 328
const-string v0, "badge_intent_data"
invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v0
.line 329
if-eqz v0, :cond_6
.line 332
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v1
.line 333
const-string v2, "badge_intent_type"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
move-result v0
.line 335
invoke-static {p0, v1}, Ldxoptimizer/ber;->c(Landroid/content/Context;Ljava/lang/String;)V
.line 336
invoke-static {p0, v0}, Ldxoptimizer/ber;->c(Landroid/content/Context;I)V
.line 338
const-string v0, "bcig"
invoke-static {p0, v0}, Ldxoptimizer/bew;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 340
const-string v1, "icon_badge"
const/4 v2, 0x1
.line 342
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
.line 340
invoke-static {v1, v0, v2}, Ldxoptimizer/cgh;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Number;)V
goto/16 :goto_6
.line 343
:catch_9a
move-exception v0
goto/16 :goto_6
.line 308
:cond_9d
invoke-static {p0}, Ldxoptimizer/beu;->k(Landroid/content/Context;)I
move-result v2
.line 309
if-ne v2, v10, :cond_c3
.line 310
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ldxoptimizer/bew;->a(Ljava/lang/String;)J
move-result-wide v2
sget-object v0, Ldxoptimizer/beu;->a:[I
const/4 v4, 0x0
aget v0, v0, v4
int-to-long v4, v0
mul-long/2addr v4, v12
add-long/2addr v2, v4
.line 312
invoke-static {p0, v2, v3}, Ldxoptimizer/bes;->a(Landroid/content/Context;J)V
.line 318
:cond_b6
:goto_b6
const-string v0, "icon_badge"
const-string v2, "ic_cmgs"
const/4 v3, 0x1
.line 320
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
.line 318
invoke-static {v0, v2, v3}, Ldxoptimizer/cgh;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Number;)V
goto :goto_5f
.line 313
:cond_c3
const/4 v0, 0x2
if-ne v2, v0, :cond_b6
.line 314
invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ldxoptimizer/bew;->a(Ljava/lang/String;)J
move-result-wide v2
sget-object v0, Ldxoptimizer/beu;->a:[I
const/4 v4, 0x0
aget v0, v0, v4
int-to-long v4, v0
mul-long/2addr v4, v12
add-long/2addr v2, v4
.line 316
invoke-static {p0, v2, v3}, Ldxoptimizer/bes;->a(Landroid/content/Context;J)V
:try_end_d9
.catch Lorg/json/JSONException; {:try_start_f .. :try_end_d9} :catch_9a
goto :goto_b6
.end method
.method public static a(Landroid/content/Context;Z)V
.registers 2
.prologue
.line 148
invoke-static {p0, p1}, Ldxoptimizer/ber;->a(Landroid/content/Context;Z)V
.line 149
return-void
.end method
.method private static a()Z
.registers 6
.prologue
const/4 v0, 0x1
const/4 v1, 0x0
.line 417
sget-object v2, Ldxoptimizer/beu;->a:[I
aget v3, v2, v1
.line 418
sget-object v2, Ldxoptimizer/beu;->a:[I
aget v4, v2, v0
.line 421
:try_start_a
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
move-result-object v2
.line 422
const/16 v5, 0xb
invoke-virtual {v2, v5}, Ljava/util/Calendar;->get(I)I
:try_end_13
.catch Ljava/lang/Exception; {:try_start_a .. :try_end_13} :catch_19
move-result v2
.line 428
:goto_14
if-lt v2, v3, :cond_1c
if-ge v2, v4, :cond_1c
.line 432
:goto_18
return v0
.line 423
:catch_19
move-exception v2
move v2, v1
goto :goto_14
:cond_1c
move v0, v1
.line 428
goto :goto_18
.end method
.method private static a(Landroid/content/Context;I)Z
.registers 3
.prologue
.line 140
invoke-static {p0}, Ldxoptimizer/beu;->g(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_b
.line 141
invoke-static {p0, p1}, Ldxoptimizer/beu;->b(Landroid/content/Context;I)Z
move-result v0
.line 143
:goto_a
return v0
:cond_b
const/4 v0, 0x0
goto :goto_a
.end method
.method public static b(Landroid/content/Context;)V
.registers 11
.prologue
.line 62
const-string v0, "power"
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/os/PowerManager;
.line 63
if-eqz v0, :cond_10
invoke-virtual {v0}, Landroid/os/PowerManager;->isScreenOn()Z
move-result v0
if-eqz v0, :cond_6c
.line 65
:cond_10
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v8
.line 66
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
move-result-object v0
.line 67
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I
move-result v1
const/4 v2, 0x2
invoke-virtual {v0, v2}, Ljava/util/Calendar;->get(I)I
move-result v2
const/4 v3, 0x5
.line 68
invoke-virtual {v0, v3}, Ljava/util/Calendar;->get(I)I
move-result v3
const/4 v4, 0x2
const/4 v5, 0x0
const/4 v6, 0x0
.line 67
invoke-virtual/range {v0 .. v6}, Ljava/util/Calendar;->set(IIIIII)V
.line 70
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
move-result-object v1
.line 71
const/4 v2, 0x1
invoke-virtual {v1, v2}, Ljava/util/Calendar;->get(I)I
move-result v2
const/4 v3, 0x2
invoke-virtual {v1, v3}, Ljava/util/Calendar;->get(I)I
move-result v3
const/4 v4, 0x5
.line 72
invoke-virtual {v1, v4}, Ljava/util/Calendar;->get(I)I
move-result v4
const/4 v5, 0x6
const/4 v6, 0x0
const/4 v7, 0x0
.line 71
invoke-virtual/range {v1 .. v7}, Ljava/util/Calendar;->set(IIIIII)V
.line 75
invoke-virtual {v0}, Ljava/util/Calendar;->getTimeInMillis()J
move-result-wide v2
cmp-long v2, v8, v2
if-lez v2, :cond_67
.line 76
invoke-virtual {v1}, Ljava/util/Calendar;->getTimeInMillis()J
move-result-wide v2
cmp-long v1, v8, v2
if-gez v1, :cond_5e
.line 77
const-wide/32 v0, 0x36ee80
add-long/2addr v0, v8
.line 84
:goto_5a
invoke-static {p0, v0, v1}, Ldxoptimizer/bes;->a(Landroid/content/Context;J)V
.line 102
:cond_5d
:goto_5d
return-void
.line 79
:cond_5e
invoke-virtual {v0}, Ljava/util/Calendar;->getTimeInMillis()J
move-result-wide v0
const-wide/32 v2, 0x5265c00
add-long/2addr v0, v2
goto :goto_5a
.line 82
:cond_67
invoke-virtual {v0}, Ljava/util/Calendar;->getTimeInMillis()J
move-result-wide v0
goto :goto_5a
.line 88
:cond_6c
const/4 v0, 0x0
invoke-static {p0, v0}, Ldxoptimizer/ber;->c(Landroid/content/Context;Z)V
.line 89
invoke-static {p0}, Ldxoptimizer/beu;->e(Landroid/content/Context;)V
.line 92
invoke-static {p0}, Ldxoptimizer/ber;->l(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
.line 93
invoke-static {p0}, Ldxoptimizer/ber;->m(Landroid/content/Context;)I
move-result v1
.line 94
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_5d
const/4 v2, -0x1
if-eq v1, v2, :cond_5d
.line 95
const-string v2, ""
invoke-static {p0, v2}, Ldxoptimizer/ber;->c(Landroid/content/Context;Ljava/lang/String;)V
.line 96
const/4 v2, -0x1
invoke-static {p0, v2}, Ldxoptimizer/ber;->c(Landroid/content/Context;I)V
.line 97
invoke-static {p0, v0}, Ldxoptimizer/bev;->a(Landroid/content/Context;Ljava/lang/String;)V
.line 98
invoke-static {p0, v1}, Ldxoptimizer/bev;->a(Landroid/content/Context;I)V
.line 99
const/4 v0, 0x0
invoke-static {p0, v0}, Ldxoptimizer/bev;->b(Landroid/content/Context;Z)V
.line 100
const/4 v0, 0x0
invoke-static {p0, v0}, Ldxoptimizer/bev;->c(Landroid/content/Context;Z)V
goto :goto_5d
.end method
.method private static b(Landroid/content/Context;I)Z
.registers 10
.prologue
const/4 v2, 0x0
const/4 v3, 0x1
.line 176
packed-switch p1, :pswitch_data_36
move v0, v2
.line 204
:goto_6
return v0
.line 178
:pswitch_7
const-string v1, "com.dianxinos.optimizer.activity-ORIGINAL"
.line 179
const-string v0, "com.dianxinos.optimizer.activity-CHANGED"
.line 188
:goto_b
const-string v4, "cn.opda.a.phonoalbumshoushou"
.line 189
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v5
.line 191
:try_start_11
new-instance v6, Landroid/content/ComponentName;
invoke-direct {v6, v4, v1}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
const/4 v1, 0x1
const/4 v7, 0x1
invoke-virtual {v5, v6, v1, v7}, Landroid/content/pm/PackageManager;->setComponentEnabledSetting(Landroid/content/ComponentName;II)V
.line 194
new-instance v1, Landroid/content/ComponentName;
invoke-direct {v1, v4, v0}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
const/4 v0, 0x2
const/4 v4, 0x1
invoke-virtual {v5, v1, v0, v4}, Landroid/content/pm/PackageManager;->setComponentEnabledSetting(Landroid/content/ComponentName;II)V
:try_end_25
.catch Ljava/lang/Exception; {:try_start_11 .. :try_end_25} :catch_2c
move v0, v3
.line 204
goto :goto_6
.line 182
:pswitch_27
const-string v0, "com.dianxinos.optimizer.activity-ORIGINAL"
.line 183
const-string v1, "com.dianxinos.optimizer.activity-CHANGED"
goto :goto_b
.line 197
:catch_2c
move-exception v0
.line 198
invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {p0, v0}, Ldxoptimizer/ber;->a(Landroid/content/Context;Ljava/lang/String;)V
move v0, v2
.line 202
goto :goto_6
.line 176
:pswitch_data_36
.packed-switch 0x1
:pswitch_7
:pswitch_27
.end packed-switch
.end method
.method static c(Landroid/content/Context;)Z
.registers 3
.prologue
const/4 v1, 0x0
.line 352
invoke-static {p0}, Ldxoptimizer/ber;->g(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_d
.line 353
invoke-static {p0, v1}, Ldxoptimizer/ber;->d(Landroid/content/Context;Z)V
.line 354
invoke-static {p0}, Ldxoptimizer/beu;->j(Landroid/content/Context;)V
.line 356
:cond_d
invoke-static {p0}, Ldxoptimizer/ber;->i(Landroid/content/Context;)Z
move-result v0
.line 357
if-eqz v0, :cond_18
.line 358
invoke-static {p0, v1}, Ldxoptimizer/ber;->f(Landroid/content/Context;Z)V
.line 359
const/4 v0, 0x1
.line 361
:goto_17
return v0
:cond_18
invoke-static {p0}, Ldxoptimizer/ber;->j(Landroid/content/Context;)Z
move-result v0
goto :goto_17
.end method
.method static d(Landroid/content/Context;)V
.registers 5
.prologue
.line 399
const-string v0, "activity"
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/ActivityManager;
.line 400
new-instance v1, Landroid/content/Intent;
const-string v2, "android.intent.action.MAIN"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 401
const-string v2, "android.intent.category.HOME"
invoke-virtual {v1, v2}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;
.line 402
const-string v2, "android.intent.category.DEFAULT"
invoke-virtual {v1, v2}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;
.line 403
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v2
const/4 v3, 0x0
invoke-virtual {v2, v1, v3}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;
move-result-object v1
.line 407
if-eqz v0, :cond_40
.line 408
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_28
:goto_28
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_40
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/content/pm/ResolveInfo;
.line 409
iget-object v3, v1, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
if-eqz v3, :cond_28
.line 410
iget-object v1, v1, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
iget-object v1, v1, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/app/ActivityManager;->killBackgroundProcesses(Ljava/lang/String;)V
goto :goto_28
.line 414
:cond_40
return-void
.end method
.method private static e(Landroid/content/Context;)V
.registers 10
.prologue
const/4 v8, 0x1
.line 105
invoke-static {}, Ldxoptimizer/beu;->a()Z
move-result v0
if-eqz v0, :cond_61
.line 106
invoke-static {p0}, Ldxoptimizer/ber;->a(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_61
.line 107
invoke-static {p0}, Ldxoptimizer/beu;->f(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_61
.line 108
invoke-static {p0}, Ldxoptimizer/beu;->g(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_61
.line 109
invoke-static {p0}, Ldxoptimizer/beu;->h(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_61
.line 113
invoke-static {p0}, Ldxoptimizer/beu;->i(Landroid/content/Context;)I
move-result v0
.line 114
invoke-static {p0, v0}, Ldxoptimizer/beu;->a(Landroid/content/Context;I)Z
move-result v1
.line 115
if-eqz v1, :cond_61
.line 116
invoke-static {p0, v8}, Ldxoptimizer/ber;->b(Landroid/content/Context;Z)V
.line 118
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
invoke-static {v2, v3}, Ldxoptimizer/cdg;->f(J)J
move-result-wide v2
.line 117
invoke-static {p0, v2, v3}, Ldxoptimizer/ber;->a(Landroid/content/Context;J)V
.line 120
invoke-static {p0}, Ldxoptimizer/ber;->f(Landroid/content/Context;)I
move-result v1
.line 121
invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Ldxoptimizer/bew;->a(Ljava/lang/String;)J
move-result-wide v2
sget-object v1, Ldxoptimizer/beu;->a:[I
const/4 v4, 0x0
aget v1, v1, v4
int-to-long v4, v1
const-wide/32 v6, 0x36ee80
mul-long/2addr v4, v6
add-long/2addr v2, v4
.line 123
if-eq v0, v8, :cond_53
.line 124
invoke-static {p0, v2, v3}, Ldxoptimizer/bes;->a(Landroid/content/Context;J)V
.line 127
:cond_53
const/4 v1, 0x2
if-ne v0, v1, :cond_61
.line 128
const-string v0, "icon_badge"
const-string v1, "ic_gsc"
.line 130
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
.line 128
invoke-static {v0, v1, v2}, Ldxoptimizer/cgh;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Number;)V
.line 137
:cond_61
return-void
.end method
.method private static f(Landroid/content/Context;)Z
.registers 3
.prologue
.line 153
invoke-static {p0}, Ldxoptimizer/ber;->g(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_d
.line 154
const/4 v0, 0x0
invoke-static {p0, v0}, Ldxoptimizer/ber;->d(Landroid/content/Context;Z)V
.line 155
invoke-static {p0}, Ldxoptimizer/beu;->j(Landroid/content/Context;)V
.line 159
:cond_d
invoke-static {p0}, Ldxoptimizer/ber;->k(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
.line 160
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_19
.line 162
const/4 v0, 0x1
.line 170
:goto_18
return v0
.line 164
:cond_19
const-string v1, "&"
invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v0
.line 165
invoke-static {p0, v0}, Ldxoptimizer/beq;->a(Landroid/content/Context;[Ljava/lang/String;)Z
move-result v0
goto :goto_18
.end method
.method private static g(Landroid/content/Context;)Z
.registers 2
.prologue
.line 209
invoke-static {p0}, Ldxoptimizer/ber;->g(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_d
.line 210
const/4 v0, 0x0
invoke-static {p0, v0}, Ldxoptimizer/ber;->d(Landroid/content/Context;Z)V
.line 211
invoke-static {p0}, Ldxoptimizer/beu;->j(Landroid/content/Context;)V
.line 213
:cond_d
invoke-static {p0}, Ldxoptimizer/ber;->h(Landroid/content/Context;)Z
move-result v0
.line 217
return v0
.end method
.method private static h(Landroid/content/Context;)Z
.registers 16
.prologue
const/4 v14, -0x1
const/4 v1, 0x1
.line 222
const/4 v0, 0x0
.line 223
invoke-static {p0}, Ldxoptimizer/beu;->k(Landroid/content/Context;)I
move-result v2
.line 224
invoke-static {p0}, Ldxoptimizer/beu;->i(Landroid/content/Context;)I
move-result v3
.line 225
if-eqz v2, :cond_13
if-eq v2, v14, :cond_13
if-eqz v3, :cond_13
if-eq v2, v3, :cond_3e
.line 228
:cond_13
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
invoke-static {v4, v5}, Ldxoptimizer/cdg;->f(J)J
move-result-wide v4
.line 229
invoke-static {p0}, Ldxoptimizer/ber;->e(Landroid/content/Context;)I
move-result v3
.line 230
invoke-static {p0}, Ldxoptimizer/ber;->f(Landroid/content/Context;)I
move-result v6
.line 231
invoke-static {p0}, Ldxoptimizer/ber;->b(Landroid/content/Context;)J
move-result-wide v8
.line 232
sub-long v10, v4, v8
const-wide/16 v12, 0x1
cmp-long v7, v10, v12
if-ltz v7, :cond_3e
.line 233
int-to-long v10, v3
cmp-long v3, v4, v10
if-ltz v3, :cond_3f
int-to-long v10, v6
cmp-long v3, v10, v4
if-lez v3, :cond_3f
.line 234
if-eqz v2, :cond_3d
if-ne v2, v1, :cond_3e
:cond_3d
move v0, v1
.line 247
:cond_3e
:goto_3e
return v0
.line 237
:cond_3f
const-wide/16 v10, 0x0
cmp-long v3, v8, v10
if-lez v3, :cond_3e
int-to-long v6, v6
cmp-long v3, v4, v6
if-ltz v3, :cond_3e
.line 238
if-eq v2, v14, :cond_4f
const/4 v3, 0x2
if-ne v2, v3, :cond_3e
:cond_4f
move v0, v1
.line 239
goto :goto_3e
.end method
.method private static i(Landroid/content/Context;)I
.registers 15
.prologue
const/4 v1, 0x2
const/4 v0, 0x1
.line 252
const/4 v2, 0x0
.line 253
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
invoke-static {v4, v5}, Ldxoptimizer/cdg;->f(J)J
move-result-wide v4
.line 254
invoke-static {p0}, Ldxoptimizer/ber;->b(Landroid/content/Context;)J
move-result-wide v6
.line 255
invoke-static {p0}, Ldxoptimizer/ber;->e(Landroid/content/Context;)I
move-result v3
.line 256
invoke-static {p0}, Ldxoptimizer/ber;->f(Landroid/content/Context;)I
move-result v8
.line 257
sub-long v10, v4, v6
const-wide/16 v12, 0x1
cmp-long v9, v10, v12
if-ltz v9, :cond_2a
.line 258
int-to-long v10, v3
cmp-long v3, v4, v10
if-ltz v3, :cond_36
int-to-long v10, v8
cmp-long v3, v10, v4
if-lez v3, :cond_36
move v2, v1
.line 264
:cond_2a
:goto_2a
if-nez v2, :cond_48
.line 265
invoke-static {p0}, Ldxoptimizer/beu;->k(Landroid/content/Context;)I
move-result v3
.line 266
if-eqz v3, :cond_34
if-ne v3, v0, :cond_43
:cond_34
move v0, v1
.line 278
:cond_35
:goto_35
return v0
.line 260
:cond_36
const-wide/16 v10, 0x0
cmp-long v3, v6, v10
if-lez v3, :cond_2a
int-to-long v6, v8
cmp-long v3, v4, v6
if-ltz v3, :cond_2a
move v2, v0
.line 261
goto :goto_2a
.line 268
:cond_43
if-eq v3, v1, :cond_35
.line 270
const/4 v1, -0x1
if-eq v3, v1, :cond_35
:cond_48
move v0, v2
.line 278
goto :goto_35
.end method
.method private static j(Landroid/content/Context;)V
.registers 4
.prologue
.line 367
new-instance v0, Ldxoptimizer/ben;
invoke-direct {v0}, Ldxoptimizer/ben;-><init>()V
.line 368
sget-object v1, Landroid/os/Build;->BRAND:Ljava/lang/String;
sget-object v2, Landroid/os/Build;->MODEL:Ljava/lang/String;
invoke-virtual {v0, p0, v1, v2}, Ldxoptimizer/ben;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ldxoptimizer/ben$a;
move-result-object v0
.line 369
if-eqz v0, :cond_1e
.line 370
const/4 v1, 0x1
invoke-static {p0, v1}, Ldxoptimizer/ber;->e(Landroid/content/Context;Z)V
.line 371
iget-boolean v1, v0, Ldxoptimizer/ben$a;->d:Z
invoke-static {p0, v1}, Ldxoptimizer/ber;->g(Landroid/content/Context;Z)V
.line 372
iget-object v0, v0, Ldxoptimizer/ben$a;->e:Ljava/lang/String;
invoke-static {p0, v0}, Ldxoptimizer/ber;->b(Landroid/content/Context;Ljava/lang/String;)V
.line 376
:goto_1d
return-void
.line 374
:cond_1e
const/4 v0, 0x0
invoke-static {p0, v0}, Ldxoptimizer/ber;->e(Landroid/content/Context;Z)V
goto :goto_1d
.end method
.method private static k(Landroid/content/Context;)I
.registers 8
.prologue
const/4 v1, 0x2
const/4 v0, 0x1
.line 379
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v2
.line 380
const-string v3, "cn.opda.a.phonoalbumshoushou"
.line 381
new-instance v4, Landroid/content/ComponentName;
const-string v5, "com.dianxinos.optimizer.activity-ORIGINAL"
invoke-direct {v4, v3, v5}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {v2, v4}, Landroid/content/pm/PackageManager;->getComponentEnabledSetting(Landroid/content/ComponentName;)I
move-result v4
.line 383
new-instance v5, Landroid/content/ComponentName;
const-string v6, "com.dianxinos.optimizer.activity-CHANGED"
invoke-direct {v5, v3, v6}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {v2, v5}, Landroid/content/pm/PackageManager;->getComponentEnabledSetting(Landroid/content/ComponentName;)I
move-result v2
.line 385
if-nez v4, :cond_24
if-nez v2, :cond_24
.line 386
const/4 v0, 0x0
.line 392
:cond_23
:goto_23
return v0
.line 387
:cond_24
if-ne v4, v0, :cond_28
if-eq v2, v1, :cond_23
.line 389
:cond_28
if-ne v4, v1, :cond_2e
if-ne v2, v0, :cond_2e
move v0, v1
.line 390
goto :goto_23
.line 392
:cond_2e
const/4 v0, -0x1
goto :goto_23
.end method