You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
2.9 KiB
115 lines
2.9 KiB
.class Lcom/viatech/update/UpdateManager$2; |
|
.super Ljava/lang/Object; |
|
.source "UpdateManager.java" |
|
|
|
# interfaces |
|
.implements Ljava/lang/Runnable; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lcom/viatech/update/UpdateManager;->upgradeCheckNetwork()V |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x0 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic this$0:Lcom/viatech/update/UpdateManager; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/viatech/update/UpdateManager;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 165 |
|
iput-object p1, p0, Lcom/viatech/update/UpdateManager$2;->this$0:Lcom/viatech/update/UpdateManager; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public run()V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 168 |
|
iget-object v0, p0, Lcom/viatech/update/UpdateManager$2;->this$0:Lcom/viatech/update/UpdateManager; |
|
|
|
invoke-static {v0}, Lcom/viatech/update/UpdateManager;->access$300(Lcom/viatech/update/UpdateManager;)Landroid/content/Context; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, "connectivity" |
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/net/ConnectivityManager; |
|
|
|
.line 169 |
|
if-eqz v0, :cond_1 |
|
|
|
.line 170 |
|
invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo; |
|
|
|
move-result-object v0 |
|
|
|
.line 171 |
|
if-eqz v0, :cond_0 |
|
|
|
invoke-virtual {v0}, Landroid/net/NetworkInfo;->getType()I |
|
|
|
move-result v1 |
|
|
|
const/4 v2, 0x1 |
|
|
|
if-ne v1, v2, :cond_0 |
|
|
|
invoke-virtual {v0}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State; |
|
|
|
move-result-object v0 |
|
|
|
sget-object v1, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State; |
|
|
|
if-ne v0, v1, :cond_0 |
|
|
|
.line 172 |
|
iget-object v0, p0, Lcom/viatech/update/UpdateManager$2;->this$0:Lcom/viatech/update/UpdateManager; |
|
|
|
iget-object v1, p0, Lcom/viatech/update/UpdateManager$2;->this$0:Lcom/viatech/update/UpdateManager; |
|
|
|
invoke-static {v1}, Lcom/viatech/update/UpdateManager;->access$400(Lcom/viatech/update/UpdateManager;)Lcom/viatech/device/DeviceInfo; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0, v1}, Lcom/viatech/update/UpdateManager;->access$500(Lcom/viatech/update/UpdateManager;Lcom/viatech/device/DeviceInfo;)V |
|
|
|
.line 179 |
|
:cond_0 |
|
:goto_0 |
|
return-void |
|
|
|
.line 177 |
|
:cond_1 |
|
const-string v0, "Vpai_Upgrade" |
|
|
|
const-string v1, "Error: connectivity" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 178 |
|
iget-object v0, p0, Lcom/viatech/update/UpdateManager$2;->this$0:Lcom/viatech/update/UpdateManager; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/update/UpdateManager;->destory()V |
|
|
|
goto :goto_0 |
|
.end method
|
|
|