XploitSPY/app/factory/decompiled/smali/b/a/f/a.smali
2020-03-24 01:31:46 +05:30

180 lines
3.6 KiB
Smali

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