XploitSPY/app/factory/decompiled/smali/b/a/f/a.smali

180 lines
3.6 KiB
Smali
Raw Normal View History

2020-03-24 03:54:23 +08:00
.class public Lb/a/f/a;
.super Ljava/lang/Object;
2020-01-11 23:35:37 +08:00
.source ""
2020-03-24 03:54:23 +08:00
# static fields
.field private static final a:Ljava/util/logging/Logger;
2020-01-11 23:35:37 +08:00
# direct methods
2020-03-24 03:54:23 +08:00
.method static constructor <clinit>()V
2020-01-11 23:35:37 +08:00
.locals 1
2020-03-24 03:54:23 +08:00
const-class v0, Lb/a/f/a;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
2020-01-11 23:35:37 +08:00
move-result-object v0
2020-03-24 03:54:23 +08:00
invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
2020-01-11 23:35:37 +08:00
move-result-object v0
2020-03-24 03:54:23 +08:00
sput-object v0, Lb/a/f/a;->a:Ljava/util/logging/Logger;
2020-01-11 23:35:37 +08:00
return-void
.end method
2020-03-24 03:54:23 +08:00
.method private constructor <init>()V
.locals 0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-01-11 23:35:37 +08:00
return-void
.end method
2020-03-24 03:54:23 +08:00
.method public static a(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
.locals 0
2020-03-24 03:54:23 +08:00
invoke-static {p0}, Lb/a/f/a;->b(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return p0
2020-01-11 23:35:37 +08:00
.end method
2020-03-24 03:54:23 +08:00
.method private static b(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
.locals 5
const/4 v0, 0x0
2020-03-24 03:54:23 +08:00
if-nez p0, :cond_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return v0
2020-01-11 23:35:37 +08:00
:cond_0
2020-03-24 03:54:23 +08:00
instance-of v1, p0, [B
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const/4 v2, 0x1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v1, :cond_1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return v2
2020-01-11 23:35:37 +08:00
:cond_1
2020-03-24 03:54:23 +08:00
instance-of v1, p0, Lorg/json/JSONArray;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v1, :cond_4
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
check-cast p0, Lorg/json/JSONArray;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-virtual {p0}, Lorg/json/JSONArray;->length()I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const/4 v3, 0x0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:goto_0
if-ge v3, v1, :cond_6
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:try_start_0
invoke-virtual {p0, v3}, Lorg/json/JSONArray;->isNull(I)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v4
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v4, :cond_2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const/4 v4, 0x0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
goto :goto_1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:cond_2
invoke-virtual {p0, v3}, Lorg/json/JSONArray;->get(I)Ljava/lang/Object;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v4
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:goto_1
invoke-static {v4}, Lb/a/f/a;->b(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v4
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v4, :cond_3
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return v2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:cond_3
add-int/lit8 v3, v3, 0x1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
goto :goto_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:catch_0
move-exception p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
sget-object v1, Lb/a/f/a;->a:Ljava/util/logging/Logger;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
sget-object v2, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const-string v3, "An error occured while retrieving data from JSONArray"
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:goto_2
invoke-virtual {v1, v2, v3, p0}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:cond_4
instance-of v1, p0, Lorg/json/JSONObject;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v1, :cond_6
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
check-cast p0, Lorg/json/JSONObject;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-virtual {p0}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;
2020-01-11 23:35:37 +08:00
move-result-object v1
2020-03-24 03:54:23 +08:00
:cond_5
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v3
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v3, :cond_6
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v3
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
check-cast v3, Ljava/lang/String;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:try_start_1
invoke-virtual {p0, v3}, Lorg/json/JSONObject;->get(Ljava/lang/String;)Ljava/lang/Object;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v3
:try_end_1
.catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-static {v3}, Lb/a/f/a;->b(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v3
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v3, :cond_5
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return v2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:catch_1
move-exception p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
sget-object v1, Lb/a/f/a;->a:Ljava/util/logging/Logger;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
sget-object v2, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const-string v3, "An error occured while retrieving data from JSONObject"
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
goto :goto_2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:cond_6
return v0
2020-01-11 23:35:37 +08:00
.end method