VersionReplaceUtils.smali
.class public Lcom/cleanmaster/hpsharelib/base/util/system/VersionReplaceUtils;
.super Ljava/lang/Object;
.source "VersionReplaceUtils.java"
# static fields
.field private static final SPILIT:Ljava/lang/String; = "-"
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static IsPreInstalledLower42()Z
.registers 1
.prologue
.line 36
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
.line 37
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPreInstalledLower42()Z
move-result v0
return v0
.end method
.method public static IsPreVerionNull()Z
.registers 1
.prologue
.line 31
invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPreInstAppVersionCode()I
move-result v0
if-nez v0, :cond_c
const/4 v0, 0x1
:goto_b
return v0
:cond_c
const/4 v0, 0x0
goto :goto_b
.end method
.method public static getFirstInstallVersionStartTime()J
.registers 2
.prologue
.line 16
invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getFirstInstallVersionAndStartTime()Ljava/lang/String;
move-result-object v0
.line 18
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_13
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 26
:goto_12
return-wide v0
.line 21
:cond_13
:try_start_13
const-string v1, "-"
invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v0
.line 22
const/4 v1, 0x1
aget-object v0, v0, v1
invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
:try_end_1f
.catch Ljava/lang/Exception; {:try_start_13 .. :try_end_1f} :catch_21
move-result-wide v0
goto :goto_12
.line 23
:catch_21
move-exception v0
.line 26
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
goto :goto_12
.end method
.method public static isPreVersion42To50(Landroid/content/Context;)Z
.registers 3
.prologue
.line 41
invoke-static {p0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPreInstAppVersionCode()I
move-result v0
.line 42
const v1, 0x2656740
if-lt v0, v1, :cond_14
const v1, 0x2faf080
if-ge v0, v1, :cond_14
.line 43
const/4 v0, 0x1
.line 45
:goto_13
return v0
:cond_14
const/4 v0, 0x0
goto :goto_13
.end method