Files
rr3-apk/smali_classes3/com/google/protobuf/AbstractMessageLite.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

381 lines
9.9 KiB
Smali

.class public abstract Lcom/google/protobuf/AbstractMessageLite;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/protobuf/MessageLite;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/protobuf/AbstractMessageLite$Builder;,
Lcom/google/protobuf/AbstractMessageLite$InternalOneOfEnum;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<MessageType:",
"Lcom/google/protobuf/AbstractMessageLite<",
"TMessageType;TBuilderType;>;BuilderType:",
"Lcom/google/protobuf/AbstractMessageLite$Builder<",
"TMessageType;TBuilderType;>;>",
"Ljava/lang/Object;",
"Lcom/google/protobuf/MessageLite;"
}
.end annotation
# instance fields
.field protected memoizedHashCode:I
# direct methods
.method public constructor <init>()V
.locals 1
.line 49
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lcom/google/protobuf/AbstractMessageLite;->memoizedHashCode:I
return-void
.end method
.method public static addAll(Ljava/lang/Iterable;Ljava/util/Collection;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Iterable<",
"TT;>;",
"Ljava/util/Collection<",
"-TT;>;)V"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 142
check-cast p1, Ljava/util/List;
invoke-static {p0, p1}, Lcom/google/protobuf/AbstractMessageLite$Builder;->addAll(Ljava/lang/Iterable;Ljava/util/List;)V
return-void
.end method
.method public static addAll(Ljava/lang/Iterable;Ljava/util/List;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Iterable<",
"TT;>;",
"Ljava/util/List<",
"-TT;>;)V"
}
.end annotation
.line 146
invoke-static {p0, p1}, Lcom/google/protobuf/AbstractMessageLite$Builder;->addAll(Ljava/lang/Iterable;Ljava/util/List;)V
return-void
.end method
.method public static checkByteStringIsUtf8(Lcom/google/protobuf/ByteString;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalArgumentException;
}
.end annotation
.line 134
invoke-virtual {p0}, Lcom/google/protobuf/ByteString;->isValidUtf8()Z
move-result p0
if-eqz p0, :cond_0
return-void
.line 135
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Byte string is not UTF-8."
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method private getSerializingExceptionMessage(Ljava/lang/String;)Ljava/lang/String;
.locals 2
.line 125
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Serializing "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 126
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " to a "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, " threw an IOException (should never happen)."
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
# virtual methods
.method public getMemoizedSerializedSize()I
.locals 1
.line 102
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw v0
.end method
.method public getSerializedSize(Lcom/google/protobuf/Schema;)I
.locals 2
.line 111
invoke-virtual {p0}, Lcom/google/protobuf/AbstractMessageLite;->getMemoizedSerializedSize()I
move-result v0
const/4 v1, -0x1
if-ne v0, v1, :cond_0
.line 113
invoke-interface {p1, p0}, Lcom/google/protobuf/Schema;->getSerializedSize(Ljava/lang/Object;)I
move-result v0
.line 114
invoke-virtual {p0, v0}, Lcom/google/protobuf/AbstractMessageLite;->setMemoizedSerializedSize(I)V
:cond_0
return v0
.end method
.method public newUninitializedMessageException()Lcom/google/protobuf/UninitializedMessageException;
.locals 1
.line 121
new-instance v0, Lcom/google/protobuf/UninitializedMessageException;
invoke-direct {v0, p0}, Lcom/google/protobuf/UninitializedMessageException;-><init>(Lcom/google/protobuf/MessageLite;)V
return-object v0
.end method
.method public setMemoizedSerializedSize(I)V
.locals 0
.line 106
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
.end method
.method public toByteArray()[B
.locals 3
.line 69
:try_start_0
invoke-interface {p0}, Lcom/google/protobuf/MessageLite;->getSerializedSize()I
move-result v0
new-array v0, v0, [B
.line 70
invoke-static {v0}, Lcom/google/protobuf/CodedOutputStream;->newInstance([B)Lcom/google/protobuf/CodedOutputStream;
move-result-object v1
.line 71
invoke-interface {p0, v1}, Lcom/google/protobuf/MessageLite;->writeTo(Lcom/google/protobuf/CodedOutputStream;)V
.line 72
invoke-virtual {v1}, Lcom/google/protobuf/CodedOutputStream;->checkNoSpaceLeft()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
.line 75
new-instance v1, Ljava/lang/RuntimeException;
const-string v2, "byte array"
invoke-direct {p0, v2}, Lcom/google/protobuf/AbstractMessageLite;->getSerializingExceptionMessage(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method public toByteString()Lcom/google/protobuf/ByteString;
.locals 3
.line 58
:try_start_0
invoke-interface {p0}, Lcom/google/protobuf/MessageLite;->getSerializedSize()I
move-result v0
invoke-static {v0}, Lcom/google/protobuf/ByteString;->newCodedBuilder(I)Lcom/google/protobuf/ByteString$CodedBuilder;
move-result-object v0
.line 59
invoke-virtual {v0}, Lcom/google/protobuf/ByteString$CodedBuilder;->getCodedOutput()Lcom/google/protobuf/CodedOutputStream;
move-result-object v1
invoke-interface {p0, v1}, Lcom/google/protobuf/MessageLite;->writeTo(Lcom/google/protobuf/CodedOutputStream;)V
.line 60
invoke-virtual {v0}, Lcom/google/protobuf/ByteString$CodedBuilder;->build()Lcom/google/protobuf/ByteString;
move-result-object v0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
.line 62
new-instance v1, Ljava/lang/RuntimeException;
const-string v2, "ByteString"
invoke-direct {p0, v2}, Lcom/google/protobuf/AbstractMessageLite;->getSerializingExceptionMessage(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method public writeDelimitedTo(Ljava/io/OutputStream;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 89
invoke-interface {p0}, Lcom/google/protobuf/MessageLite;->getSerializedSize()I
move-result v0
.line 92
invoke-static {v0}, Lcom/google/protobuf/CodedOutputStream;->computeUInt32SizeNoTag(I)I
move-result v1
add-int/2addr v1, v0
.line 91
invoke-static {v1}, Lcom/google/protobuf/CodedOutputStream;->computePreferredBufferSize(I)I
move-result v1
.line 93
invoke-static {p1, v1}, Lcom/google/protobuf/CodedOutputStream;->newInstance(Ljava/io/OutputStream;I)Lcom/google/protobuf/CodedOutputStream;
move-result-object p1
.line 94
invoke-virtual {p1, v0}, Lcom/google/protobuf/CodedOutputStream;->writeUInt32NoTag(I)V
.line 95
invoke-interface {p0, p1}, Lcom/google/protobuf/MessageLite;->writeTo(Lcom/google/protobuf/CodedOutputStream;)V
.line 96
invoke-virtual {p1}, Lcom/google/protobuf/CodedOutputStream;->flush()V
return-void
.end method
.method public writeTo(Ljava/io/OutputStream;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 81
invoke-interface {p0}, Lcom/google/protobuf/MessageLite;->getSerializedSize()I
move-result v0
invoke-static {v0}, Lcom/google/protobuf/CodedOutputStream;->computePreferredBufferSize(I)I
move-result v0
.line 82
invoke-static {p1, v0}, Lcom/google/protobuf/CodedOutputStream;->newInstance(Ljava/io/OutputStream;I)Lcom/google/protobuf/CodedOutputStream;
move-result-object p1
.line 83
invoke-interface {p0, p1}, Lcom/google/protobuf/MessageLite;->writeTo(Lcom/google/protobuf/CodedOutputStream;)V
.line 84
invoke-virtual {p1}, Lcom/google/protobuf/CodedOutputStream;->flush()V
return-void
.end method