Files
rr3-apk/smali_classes4/com/singular/sdk/internal/ApiCustomUserId$OnSetCustomUserIdCallback.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

97 lines
2.2 KiB
Smali

.class public Lcom/singular/sdk/internal/ApiCustomUserId$OnSetCustomUserIdCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/singular/sdk/internal/Api$OnApiCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/singular/sdk/internal/ApiCustomUserId;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "OnSetCustomUserIdCallback"
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/singular/sdk/internal/ApiCustomUserId;
# direct methods
.method public constructor <init>(Lcom/singular/sdk/internal/ApiCustomUserId;)V
.locals 0
iput-object p1, p0, Lcom/singular/sdk/internal/ApiCustomUserId$OnSetCustomUserIdCallback;->this$0:Lcom/singular/sdk/internal/ApiCustomUserId;
.line 34
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public handle(Lcom/singular/sdk/internal/SingularInstance;ILjava/lang/String;)Z
.locals 1
const/16 p1, 0xc8
const/4 v0, 0x0
if-eq p2, p1, :cond_0
return v0
.line 44
:cond_0
:try_start_0
new-instance p1, Lorg/json/JSONObject;
invoke-direct {p1, p3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
const-string p2, "status"
const-string p3, ""
.line 46
invoke-virtual {p1, p2, p3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string p2, "ok"
.line 47
invoke-virtual {p1, p2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result p1
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
if-nez p1, :cond_1
return v0
:cond_1
const/4 p1, 0x1
return p1
:catch_0
move-exception p1
.line 53
invoke-static {}, Lcom/singular/sdk/internal/ApiCustomUserId;->access$000()Lcom/singular/sdk/internal/SingularLog;
move-result-object p2
const-string p3, "error in handle()"
invoke-virtual {p2, p3, p1}, Lcom/singular/sdk/internal/SingularLog;->error(Ljava/lang/String;Ljava/lang/Throwable;)I
return v0
.end method